Hezci tlacitka
[mirrors/SokoMan.git] / assistants / print-labels.inc.php
index 20b70e56ddcaeb8e77e29709303f60afdf62e4a0..b1978bad7be16e404aaccad802ac658db6a72f69 100644 (file)
@@ -13,7 +13,7 @@
                $barcodes = '';
                for($i=0;$i<$count;$i++) $barcodes.=' -b '.escapeshellarg($prefix.$i);
 
-               switch($_POST['print']) {
+               switch(strtolower($_POST['print'])) {
                        case 'pdf':
                                $convert='| ps2pdf -dCompatibility=1.2 - -';
                                header('Content-Type: application/pdf');
@@ -38,6 +38,6 @@
                <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="20" /></td><td></td></tr>
        </table>
-       <input type="submit" name="print" value="ps" />
-       <input type="submit" name="print" value="pdf" />
+       <input type="submit" name="print" value="PS" />
+       <input type="submit" name="print" value="PDF" />
 </form>
This page took 0.175108 seconds and 4 git commands to generate.