1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
#!/bin/sh
EAN=/usr/bin/ean13
echo Content-type: text/html
echo
if [ -x $EAN ]; then
if [ $# = 0 ]; then
cat << EOM
<HTML><HEAD><TITLE>EAN13 Barcode Generator</TITLE></HEAD><BODY>
<H1>EAN13 Barcode Generator</H1>
<table border="1" width="95%">
<tr>
<td>To create an EAN13 Barcode, enter a 12 digit number.</td>
<td>Seven digit company code <br>
+ 5 digit part code.<br>
do NOT enter the check digit.</td>
</tr>
<tr>
<td>To create a UPC Barcode, enter a 0 then a 11 digit number.</td>
<td>Zero + Six digit company code<br>
+ 5 digit part code<br>
do NOT enter the check digit.</td>
</table>
<ISINDEX>
EOM
else
echo \<PRE\>
$EAN $* > /home/jwest/public_html/barcodes/$*.xbm
echo \</PRE\>
fi
else
echo Cannot find ean13 on this system.
fi
cat << EOM
<img src="$*.xbm ">
</BODY></HTML>
EOM
|