added form to print another barcode
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 9 Feb 2012 17:08:38 +0000 (18:08 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 9 Feb 2012 17:08:38 +0000 (18:08 +0100)
labels/spinelabel-print.pl

index 585b06a..da1cd21 100755 (executable)
@@ -116,19 +116,30 @@ $body = $scheme;
 
 # XXX FFZG
 
-$body .= qq|
+my $url = $query->url;
+my $station = $query->param('station');
+
+$body = qq|
 <style type="text/css">
-#printed_label {
-       display: block;
-       border: 1px solid #ccc;
-       position: absolute;
-       top: 0;
-       left: 0;
-}
 #print_button {
        display: none;
 }
+#printed_label {
+       border: 1px solid #aaa;
+}
+body {
+       margin: 1em;
+}
 </style>
+
+<form action="$url" method="post">
+Enter another barcode:
+<input type=text name=barcode autofocus>
+<input type=submit value="Print">
+</form>
+
+<h1>Last printed call number for $barcode on $station</h1>
+
 <img id="printed_label" src="http://printer-zebra.vbz.ffzg.hr/$barcode.png">
 |;