GIT.Harvie.CZ
/
mirrors
/
SokoMan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Preset barcodu
[mirrors/SokoMan.git]
/
assistants
/
print-labels.inc.php
diff --git
a/assistants/print-labels.inc.php
b/assistants/print-labels.inc.php
index ecb55f3b85bfd473874f847870f354a33ea0ca45..aab8eea6dce3263cb2a9312ed6821b752952bdbe 100644
(file)
--- a/
assistants/print-labels.inc.php
+++ b/
assistants/print-labels.inc.php
@@
-13,9
+13,11
@@
$barcodes = '';
for($i=0;$i<$count;$i++) $barcodes.=' -b '.escapeshellarg($prefix.$i);
$barcodes = '';
for($i=0;$i<$count;$i++) $barcodes.=' -b '.escapeshellarg($prefix.$i);
- switch($_POST['print']) {
+ switch(strtolower($_POST['print'])) {
+ case 'debug': case 'dbg':
+ break;
case 'pdf':
case 'pdf':
- $convert='|
convert - pdf:
-';
+ $convert='|
ps2pdf -dCompatibility=1.2 -
-';
header('Content-Type: application/pdf');
break;
default: case 'ps':
header('Content-Type: application/pdf');
break;
default: case 'ps':
@@
-25,19
+27,23
@@
break;
}
error_reporting(0);
break;
}
error_reporting(0);
- system("barcode -e $enctype $geometry $table $barcodes $convert");
+ $cmd="barcode -e $enctype $geometry $table $barcodes $convert";
+ if($_POST['print']=='Debug') die($cmd);
+ system($cmd);
die();
}
?>
<form action="?" method="POST">
die();
}
?>
<form action="?" method="POST">
- <input type="number" name="cols" value="
3
" /> ↔ Sloupců<br />
- <input type="number" name="rows" value="
8
" /> ↕ Řádků<br />
+ <input type="number" name="cols" value="
4
" /> ↔ Sloupců<br />
+ <input type="number" name="rows" value="
13
" /> ↕ Řádků<br />
<input type="number" name="pages" value="1" /> ↵ Stran<br />
<table>
<input type="number" name="pages" value="1" /> ↵ Stran<br />
<table>
- <tr><td></td><td><input type="number" name="top" value="2
5
" /></td><td></td></tr>
+ <tr><td></td><td><input type="number" name="top" value="2
0
" /></td><td></td></tr>
<tr><td><input type="number" name="left" value="2" /></td><td>Okraje</td><td><input type="number" name="right" value="1" /></td></tr>
<tr><td><input type="number" name="left" value="2" /></td><td>Okraje</td><td><input type="number" name="right" value="1" /></td></tr>
- <tr><td></td><td><input type="number" name="bottom" value="2
0
" /></td><td></td></tr>
+ <tr><td></td><td><input type="number" name="bottom" value="2
5
" /></td><td></td></tr>
</table>
</table>
- <input type="submit" name="print" value="ps" />
- <input type="submit" name="print" value="pdf" />
+ <input type="submit" name="print" value="Debug" />
+ <input type="submit" name="print" value="PS" />
+ <input type="submit" name="print" value="PDF" />
</form>
</form>
+Pozor! Každý arch vytiskni jen jednou a radši ho hned po vytištění smaž!
This page took
0.129752 seconds
and
4
git commands to generate.