Changeset 205 for trunk/phpbms/modules/bms/products_addedit.php
- Timestamp:
- 03/26/07 16:50:25 (5 years ago)
- Files:
-
- 1 modified
-
trunk/phpbms/modules/bms/products_addedit.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/modules/bms/products_addedit.php
r204 r205 63 63 <body><?php include("../../menu.php")?> 64 64 65 <form action="<?php echo $_SERVER["PHP_SELF"] ?>" method="post" enctype="multipart/form-data" name="record" on Submit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onClick="return false;" /></div>65 <form action="<?php echo $_SERVER["PHP_SELF"] ?>" method="post" enctype="multipart/form-data" name="record" onsubmit="return validateForm(this);"><div id="dontSubmit"><input type="submit" value=" " onclick="return false;" /></div> 66 66 <?php product_tabs("General",$therecord["id"]);?><div class="bodyline"> 67 67 … … 74 74 <p> 75 75 <label for="id">id</label><br /> 76 <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly=" true" class="uneditable" />76 <input id="id" name="id" type="text" value="<?php echo $therecord["id"]; ?>" size="5" maxlength="5" readonly="readonly" class="uneditable" /> 77 77 </p> 78 78 … … 87 87 <p> 88 88 <span class="important">product type</span><br /> 89 <input type="radio" name="type" id="typeInventory" value="Inventory" <?php if($therecord["type"]=="Inventory") echo "checked "?> class="radiochecks" align="baseline" tabindex="70"/><label for="typeInventory">inventory</label><br />90 <input type="radio" name="type" id="typeNonInventory" value="Non-Inventory" <?php if($therecord["type"]=="Non-Inventory") echo "checked "?> class="radiochecks" align="baseline" tabindex="80"/><label for="typeNonInventory" >non-inventory</label><br />91 <input type="radio" name="type" id="typeService" value="Service" <?php if($therecord["type"]=="Service") echo "checked "?> class="radiochecks" align="baseline"tabindex="90"/><label for="typeService" >service</label><br />92 <input type="radio" name="type" id="typeKit" value="Kit" <?php if($therecord["type"]=="Kit") echo "checked "?> class="radiochecks" align="baseline"tabindex="100"/><label for="typeKit" >kit</label><br />93 <input type="radio" name="type" id="typeAssembly" value="Assembly" <?php if($therecord["type"]=="Assembly") echo "checked "?> class="radiochecks" align="baseline"tabindex="110"/><label for="typeAssembly">assembly</label>89 <input type="radio" name="type" id="typeInventory" value="Inventory" <?php if($therecord["type"]=="Inventory") echo "checked=\"checked\""?> class="radiochecks" tabindex="70"/><label for="typeInventory">inventory</label><br /> 90 <input type="radio" name="type" id="typeNonInventory" value="Non-Inventory" <?php if($therecord["type"]=="Non-Inventory") echo "checked=\"checked\""?> class="radiochecks" tabindex="80"/><label for="typeNonInventory" >non-inventory</label><br /> 91 <input type="radio" name="type" id="typeService" value="Service" <?php if($therecord["type"]=="Service") echo "checked=\"checked\""?> class="radiochecks" tabindex="90"/><label for="typeService" >service</label><br /> 92 <input type="radio" name="type" id="typeKit" value="Kit" <?php if($therecord["type"]=="Kit") echo "checked=\"checked\""?> class="radiochecks" tabindex="100"/><label for="typeKit" >kit</label><br /> 93 <input type="radio" name="type" id="typeAssembly" value="Assembly" <?php if($therecord["type"]=="Assembly") echo "checked=\"checked\""?> class="radiochecks" tabindex="110"/><label for="typeAssembly">assembly</label> 94 94 </p> 95 95 96 96 <p> 97 97 <span class="important">available status</span><br /> 98 <input type="radio" name="status" id="statusInStock" value="In Stock" <?php if($therecord["status"]=="In Stock") echo "checked "?> class="radiochecks" align="baseline"tabindex="120"/> <label for="statusInStock">in stock / available</label><br />99 <input type="radio" name="status" id="statusOutOfStock" value="Out of Stock" <?php if($therecord["status"]=="Out of Stock") echo "checked "?> class="radiochecks" align="baseline"tabindex="130"/><label for="statusOutOfStock">out of stock / unavailable</label><br />100 <input type="radio" name="status" id="statusBackordered" value="Backordered" <?php if($therecord["status"]=="Backordered") echo "checked "?> class="radiochecks" align="baseline"tabindex="140"/><label for="statusBackordered">backordered</label>98 <input type="radio" name="status" id="statusInStock" value="In Stock" <?php if($therecord["status"]=="In Stock") echo "checked=\"checked\""?> class="radiochecks" tabindex="120"/> <label for="statusInStock">in stock / available</label><br /> 99 <input type="radio" name="status" id="statusOutOfStock" value="Out of Stock" <?php if($therecord["status"]=="Out of Stock") echo "checked=\"checked\""?> class="radiochecks" tabindex="130"/><label for="statusOutOfStock">out of stock / unavailable</label><br /> 100 <input type="radio" name="status" id="statusBackordered" value="Backordered" <?php if($therecord["status"]=="Backordered") echo "checked=\"checked\""?> class="radiochecks" tabindex="140"/><label for="statusBackordered">backordered</label> 101 101 </p> 102 102 </fieldset> … … 125 125 126 126 <div class="fauxP"> 127 <label for=" ds-categoryid" class="important">product category</label><br />127 <label for="categoryid" class="important">product category</label><br /> 128 128 <?php displayProductCategories($therecord["categoryid"],$dblink) ?> 129 129 </div> … … 170 170 <p> 171 171 <br /> 172 <input type="button" name="updateprice" value="update price" class="Buttons" on Click="calculatePrice()" tabindex="160" />172 <input type="button" name="updateprice" value="update price" class="Buttons" onclick="calculatePrice()" tabindex="160" /> 173 173 </p> 174 174 </fieldset> … … 226 226 <?php echo $therecord["webdescription"] ?> 227 227 </div> 228 <div><input id="buttonWebPreview" type="button" class="Buttons" on Click="editPreviewWebDesc(this)" value="<?php if(!$therecord["webdescription"]) echo "preview"; else echo "edit"?>" tabindex="250"/></div>228 <div><input id="buttonWebPreview" type="button" class="Buttons" onclick="editPreviewWebDesc(this)" value="<?php if(!$therecord["webdescription"]) echo "preview"; else echo "edit"?>" tabindex="250"/></div> 229 229 230 230 </div> … … 239 239 upload thumbnail<br /> 240 240 <input type="hidden" id="thumbchange" name="thumbchange" value="" /> 241 <div id="thumbdelete" style="display:<?php if($therecord["thumbnailmime"]) echo "block"; else echo "none";?>"><input type="button" class="Buttons" value="delete thumbnail" on Click="deletePicture('thumb')" tabindex="260"/></div>241 <div id="thumbdelete" style="display:<?php if($therecord["thumbnailmime"]) echo "block"; else echo "none";?>"><input type="button" class="Buttons" value="delete thumbnail" onclick="deletePicture('thumb')" tabindex="260"/></div> 242 242 <div id="thumbadd" style="display:<?php if($therecord["thumbnailmime"]) echo "none"; else echo "block";?>"><input id="thumbnailupload" name="thumbnailupload" type="file" size="40" onchange="updatePictureStatus('thumb','upload')" tabindex="260" /></div> 243 243 </div> … … 252 252 upload picture <br /> 253 253 <input type="hidden" id="picturechange" name="picturechange" value="" /> 254 <div id="picturedelete" style="display:<?php if($therecord["picturemime"]) echo "block"; else echo "none";?>"><input type="button" class="Buttons" value="delete picture" on Click="deletePicture('picture')" tabindex="270"/></div>254 <div id="picturedelete" style="display:<?php if($therecord["picturemime"]) echo "block"; else echo "none";?>"><input type="button" class="Buttons" value="delete picture" onclick="deletePicture('picture')" tabindex="270"/></div> 255 255 <div id="pictureadd" style="display:<?php if($therecord["picturemime"]) echo "none"; else echo "block";?>"><input id="pictureupload" name="pictureupload" type="file" size="40" onchange="updatePictureStatus('picture','upload')" tabindex="270"/></div> 256 256 </div>