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