itemParse($upc); } else { echo "<head><title>Edit Item</title></head>"; echo "<BODY onLoad='putFocus(0,0);'>"; echo "<form action=../item/itemMaint_WEFC_Toronto.php method=post>"; /* Original echo "<input name=upc type=text id=upc> Enter <select name=\"ntype\"> <option>UPC</option> <option>SKU</option> <option>Brand Prefix</option> </select> or product name here<br>"; //EL echo "To add a product enter its UPC or PLU<br>"; echo "<input name=submit type=submit value=submit> "; */ echo promptForUPC(); /* 22Feb13 EL Formatting woodshed. echo "Enter the code for, or words from the description of, an existing product:"; echo "<br />"; //echo "Enter "; echo "<input name=upc type=text id=upc>"; echo " <input name=submit type=submit value=Go> "; echo " is a "; echo "<select name=\"ntype\"> <option value='UPC'>UPC or PLU</option> <option>SKU</option> <option>Brand Prefix</option> </select>"; //echo " or product name here: "; echo "<br />"; echo "To add a product enter its UPC or PLU or Vendor SKU.";
if ($row["discount"] == 0) { echo " checked"; } echo "></td><td align=center><input type=checkbox value=1 name=inUse"; if ($row["inUse"] == 1) { echo " checked"; } echo "></td><td align=center><input type=text value=\"" . $row["deposit"] . "\" name=deposit size='5'"; echo "></td></tr>"; if ($dept == $firstDeptNo) { echo "<tr><td colspan=99 style='color:red;'>This item is coded for the default " . "department: {$firstDeptName}. Did you intend that?</td></tr>"; } echo "</table>"; echo "<hr>"; echo "<form action='itemMaint_WEFC_Toronto.php' method=post>"; echo promptForUPC($upc); echo "</form>"; /* 12. If requested on the capture form, pop a window for making a shelf tag. */ if (isset($_REQUEST['newshelftag'])) { echo "<script type=\"text/javascript\">"; echo "testwindow= window.open (\"addShelfTag.php?upc={$upc}\", \"New Shelftag\",\"location=0,status=1,scrollbars=1,width=300,height=220\");"; echo "testwindow.moveTo(50,50);"; echo "</script>"; } ?> <script type="text/javascript"> $(document).ready(function(){ $('#upc').focus(); }); </script> <?php