phpBMS

Show
Ignore:
Timestamp:
03/26/07 16:50:25 (5 years ago)
Author:
brieb
Message:

Updated XHTML compliance

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/bms/products_addedit.php

    r204 r205  
    6363<body><?php include("../../menu.php")?> 
    6464 
    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> 
     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> 
    6666<?php product_tabs("General",$therecord["id"]);?><div class="bodyline"> 
    6767 
     
    7474                        <p> 
    7575                                <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" />                    
    7777                        </p> 
    7878 
     
    8787                        <p> 
    8888                                <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> 
    9494                        </p> 
    9595                         
    9696                        <p> 
    9797                                <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> 
    101101                        </p> 
    102102                </fieldset> 
     
    125125                         
    126126                        <div class="fauxP"> 
    127                                 <label for="ds-categoryid" class="important">product category</label><br /> 
     127                                <label for="categoryid" class="important">product category</label><br /> 
    128128                                <?php displayProductCategories($therecord["categoryid"],$dblink) ?> 
    129129                        </div> 
     
    170170                        <p> 
    171171                                <br /> 
    172                                 <input type="button" name="updateprice" value="update price" class="Buttons" onClick="calculatePrice()" tabindex="160" /> 
     172                                <input type="button" name="updateprice" value="update price" class="Buttons" onclick="calculatePrice()" tabindex="160" /> 
    173173                        </p>                     
    174174                </fieldset> 
     
    226226                                <?php echo $therecord["webdescription"] ?> 
    227227                                </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> 
     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> 
    229229 
    230230                        </div> 
     
    239239                                upload thumbnail<br /> 
    240240                                <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" onClick="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> 
    242242                                <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> 
    243243                        </div> 
     
    252252                                upload picture <br /> 
    253253                                <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" onClick="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>                              
    255255                                <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>                                
    256256                        </div> 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.