commit | author | age
|
175a52
|
1 |
<?php
|
JK |
2 |
include('./includes/std.php');
|
|
3 |
|
|
4 |
require_once('includes/generate_html.php');
|
|
5 |
require_once('includes/generate_codabar.php');
|
|
6 |
|
|
7 |
echo GENERATE_STYLE;
|
|
8 |
|
|
9 |
echo '<table cellspacing="0">
|
|
10 |
<tr>';
|
|
11 |
|
|
12 |
$column = 0;
|
|
13 |
$row = 0;
|
|
14 |
for($i=$_POST['from']; $i<$_POST['from']+44; $i++) {
|
|
15 |
$i = trim($i);
|
|
16 |
|
|
17 |
if(!ctype_digit($i) OR empty($i) OR strlen($i)>8) {
|
|
18 |
continue;
|
|
19 |
}
|
|
20 |
|
|
21 |
validate::KOD($i);
|
|
22 |
|
|
23 |
while(true) {
|
|
24 |
if(!$_POST['no_'.$row.'_'.$column]) {
|
|
25 |
break;
|
|
26 |
}
|
|
27 |
else
|
|
28 |
{
|
|
29 |
echo '<td></td>';
|
|
30 |
column($column, $row);
|
|
31 |
continue;
|
|
32 |
}
|
|
33 |
}
|
|
34 |
|
|
35 |
$kod = str_pad($i, 8, '0', STR_PAD_LEFT);
|
|
36 |
|
|
37 |
echo '<td style="padding-left: '.margin($column%4).'mm;">
|
|
38 |
<img src="data:image/gif;base64,'.base64_encode(kod($kod)).'" alt=""><br>'.$kod.'
|
|
39 |
</td>
|
|
40 |
';
|
|
41 |
|
|
42 |
column($column, $row);
|
|
43 |
}
|
|
44 |
|
|
45 |
while(true) {
|
|
46 |
column($column, $row);
|
|
47 |
}
|
|
48 |
|
|
49 |
echo GENERATE_END;
|
|
50 |
?>
|