0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: edit_stockitem.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>edit stockcategory |online project financial management system for CWRDM</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="../style.css" rel="stylesheet" type="text/css" /> <link rel="icon" href="../images/icon.ico" /> <style type="text/css"> <!-- #apDiv1 { position:absolute; width:61px; height:38px; z-index:1; left: 759px; top: 266px; } .style2 {font-size: 14px} --> </style> </head> <body> <?php include("include/first_userheader.php"); require_once "edit_stockitem_ctrl.php"; ?> <p> </p> <p align="center" class="projectboldtxt"> </p> <span class="projectboldtxt style2"> </p> </span> <div align="center" class="projectboldtxt style2">Edit Item Details</div> <form action="edit_stockitem.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="200" border="1" align="center"> <tr> <td><table width="379" height="209" align="center"> <tr> <th height="36" class="projectboldtxt" scope="row"><div align="left">item id</div></th> <th class="projectboldtxt" scope="row"><div align="left"> <input type="text" name="txtitemid" id="txtitemid" value="<?php echo $itemdb_id; if (isset($_POST['Update'])) { echo $edititemid; }?>" readonly="readonly"/> </div></th> <th class="projectboldtxt" scope="row"><label></label> <label></label></th> </tr> <tr> <th width="129" height="24" class="projectboldtxt" scope="row"><div align="left"><span class="class""projectboldtxt style5="style5"">Item Name</span></div></th> <th width="144" class="projectboldtxt" scope="row"><div align="left"> <input type="text" name="txtitemtname" id="txtitemtname" value="<?php if (isset($_POST['Update'])) { echo $edititemname; } else { echo $itemname; }?>"/> </div></th> <th width="90" class="projectboldtxt" scope="row"><label></label> <div align="left"><span class="valText"> <?php if(isset($error['edititemname_null'])) { echo $error['edititemname_null']; } else if(isset($error['itemname_exist'])) { echo $error['itemname_exist']; } ?> </span></div></th> </tr> <tr> <th height="24" class="projectboldtxt" scope="row"><div align="left">Under the category</div></th> <th class="projectboldtxt" scope="row"><div align="left"> <select name="cmbstockcategory" id="cmbstockcategory"> <?php for($j=1;$j<=$i;$j++) {?> <option value="<?php echo $j; ?>"<?php if(isset($_POST['Update'])) { if(@$category_name==$stockcategory_array[$j]) { echo "selected='selected'"; } } else { if(@$category==$stockcategory_array[$j]) { echo "selected='selected'"; } } ?> ><?php echo $stockcategory_array[$j]; ?></option> <?php }?> </select> </div></th> <th class="projectboldtxt" scope="row"><div align="left"> <label></label> </div></th> </tr> <tr> <th height="24" class="projectboldtxt" scope="row"><div align="left">Description</div></th> <th class="projectboldtxt" scope="row"><div align="left"> <textarea name="txtdescription" id="txtdescription" cols="20" rows="5"><?php if (isset($_POST['Update'])) { echo $editdescription; } else { echo $description; }?> </textarea> <?php if(isset($error['editdescription_null'])) { echo $error['editdescription_null']; } ?> </div></th> <th class="projectboldtxt" scope="row"><div align="left"> <label></label> </div></th> </tr> <tr> <th height="26" scope="row"> </th> <th scope="row"><div align="left"> <input type="submit" name="Update" id="Update" value="Update" /> <a href="search_stockitem.php" class="projectboldtxt style2">Back</a></div></th> <th scope="row"><span class="style2"> <div align="left"></div> </span></th> </tr> </table></td> </tr> </table> </form> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> <?php include "include/footer.php"; ?> </p> </body> </html>