commit | author | age
|
175a52
|
1 |
<?php |
JK |
2 |
include('./includes/std.php'); |
|
3 |
|
|
4 |
header('Content-type: text/html; charset=utf-8'); |
|
5 |
|
|
6 |
$cover = ksiazki::okladka_big($_GET['KOD'], $_GET['ISBN']); |
|
7 |
|
|
8 |
if($cover) { |
|
9 |
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
|
10 |
<html> |
|
11 |
<head> |
|
12 |
<title>Okładka</title> |
|
13 |
<script type="text/javascript"> |
|
14 |
function fit() { |
|
15 |
window_width = (window.innerWidth) ? window.innerWidth : document.body.clientWidth; |
|
16 |
window_height = (window.innerHeight) ? window.innerHeight : document.body.clientHeight; |
|
17 |
resize_width = document.getElementsByTagName(\'img\').item(0).width - window_width; |
|
18 |
resize_height = document.getElementsByTagName(\'img\').item(0).height - window_height; |
|
19 |
window.resizeBy(resize_width + 100, resize_height + 100); |
|
20 |
} |
|
21 |
</script> |
|
22 |
</head> |
|
23 |
<body '.(isset($_GET['pop']) ? 'onclick="window.close();" ' : '').'onload="fit();" style="text-align:center;"> |
|
24 |
<p><img src="'.$cover.'" alt="Okładka"></p>'.(isset($_GET['pop']) ? ' |
|
25 |
<p>Kliknij, aby zamknąć.</p>' : '').' |
|
26 |
</body> |
|
27 |
</html>'; |
|
28 |
} |
|
29 |
else |
|
30 |
{ |
|
31 |
echo 'Brak okładki!'; |
|
32 |
} |
|
33 |
?> |