commit | author | age
|
175a52
|
1 |
<?php |
JK |
2 |
define('GENERATE_STYLE', '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
|
3 |
<html> |
|
4 |
<head> |
|
5 |
<title>System biblioteczny - Wygenerowane etykiety</title> |
|
6 |
<style type="text/css"> |
|
7 |
html, body, table, * { |
|
8 |
margin:0; |
|
9 |
padding:0; |
|
10 |
font-size: 4mm; |
|
11 |
} |
|
12 |
table { |
|
13 |
margin-top:7mm; border:0; |
|
14 |
width: 100%; |
|
15 |
} |
|
16 |
td { |
|
17 |
border: 0; |
|
18 |
text-align: center; |
|
19 |
width: 25%; |
|
20 |
height: 25mm; |
|
21 |
} |
|
22 |
</style> |
|
23 |
</head> |
|
24 |
<body> |
|
25 |
'); |
|
26 |
define('GENERATE_END', ' |
|
27 |
</body> |
|
28 |
</html> |
|
29 |
'); |
|
30 |
|
|
31 |
function column(&$column, &$row) { |
|
32 |
if($column == 3) { |
|
33 |
if($row == 10) { |
|
34 |
$row = 0; |
|
35 |
echo '</tr> </table> </body> </html>'; |
|
36 |
die(); |
|
37 |
} |
|
38 |
else |
|
39 |
{ |
|
40 |
$row++; |
|
41 |
echo '</tr> <tr>'; |
|
42 |
} |
|
43 |
} |
|
44 |
|
|
45 |
$column++; |
|
46 |
if($column == 4) { |
|
47 |
$column = 0; |
|
48 |
} |
|
49 |
} |
|
50 |
|
|
51 |
function margin($i) { |
|
52 |
switch($i) { |
|
53 |
default: |
|
54 |
return 0; |
|
55 |
break; |
|
56 |
case 1: |
|
57 |
return 0; |
|
58 |
break; |
|
59 |
case 2: |
|
60 |
return 0; |
|
61 |
break; |
|
62 |
case 3: |
|
63 |
return 0; |
|
64 |
break; |
|
65 |
} |
|
66 |
} |
|
67 |
?> |