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_code39.php'); |
|
6 |
|
|
7 |
echo GENERATE_STYLE; |
|
8 |
|
|
9 |
echo '<table cellspacing="0"> |
|
10 |
<tr>'; |
|
11 |
|
|
12 |
$column = 0; |
|
13 |
$row = 0; |
|
14 |
foreach(explode("\n", $_POST['kody']) as $i) { |
|
15 |
$i = trim($i); |
|
16 |
|
|
17 |
if(empty($i)) { |
|
18 |
continue; |
|
19 |
} |
|
20 |
|
|
21 |
$i = explode('/', $i); |
|
22 |
validate::MSC($i[0], $i[1], $i[2]); |
|
23 |
$i = $i[0].'/'.$i[1].'/'.$i[2]; |
|
24 |
|
|
25 |
while(true) { |
|
26 |
if(!$_POST['no_'.$row.'_'.$column]) { |
|
27 |
break; |
|
28 |
} |
|
29 |
else |
|
30 |
{ |
|
31 |
echo '<td></td>'; |
|
32 |
column($column, $row); |
|
33 |
continue; |
|
34 |
} |
|
35 |
}; |
|
36 |
|
|
37 |
echo '<td style="padding-left: '.margin($column%4).'mm;"> |
|
38 |
<img src="data:image/gif;base64,'.base64_encode(kod(str_replace('/', '$I', $i))).'" alt=""><br>'.$i.' |
|
39 |
</td> |
|
40 |
'; |
|
41 |
|
|
42 |
column($column, $row); |
|
43 |
} |
|
44 |
|
|
45 |
while($row != 10 OR $column != 3) { |
|
46 |
echo '<td></td>'; |
|
47 |
column($column, $row); |
|
48 |
} |
|
49 |
|
|
50 |
column($column, $row); |
|
51 |
|
|
52 |
echo GENERATE_END; |
|
53 |
?> |