0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: edit_stockusage_entry.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} .style3 {font-size: 16px} --> </style> </head> <body> <?php include("include/first_userheader.php"); require_once "edit_stockusage_entry_ctrl.php"; ?> <p> </p> <p align="center" class="projectboldtxt style3">Edit the details of Used item</p> <form action="edit_stockusage_entry.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="512" height="209" align="center"> <tr> <th height="36" class="projectboldtxt" scope="row"><div align="left">Stockusage id</div></th> <th class="projectboldtxt" scope="row"><div align="left"> <input type="text" name="txtentryid" id="txtentryid" value="<?php echo $entrydb_id; if (isset($_POST['Update'])) { echo $editentryid; }?>" readonly="readonly"/> </div> <tr> <th width="127" height="24" class="projectboldtxt" scope="row"><div align="left"><span class"projectboldtxt style5">Item Name</span></div></th> <th width="178" 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_db; }?>"/> </div></th> <th width="191" > <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']; } else if(isset($error['item_add'])) { echo $error['item_add']; } ?></span></div></th> </tr> <tr> <th height="24" class="projectboldtxt" scope="row"><div align="left">Entry date</div></th> <th><div align="left"> <select name="cmbentrydd" id="cmbentrydd"> <?php for ($i=1; $i<=31; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$entry_dd_restore==$i) { echo "selected='selected'"; } } else { if(@$entry_dd==$i) { echo "selected='selected'"; } } ?> ><?php echo $i ?></option> <?php } ?> </select> <select name="cmbentrymm" id="cmbentrymm"> <?php for($i=1; $i<=12; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$entry_mm_restore==$i) { echo "selected='selected'"; } } else { if(@$entry_mm==$i) { echo "selected='selected'"; } } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select> <input name="txtentryyy" type="text" id="txtentryyy" value= "<?php if (isset($_POST['Update'])) { echo $entry_yy_restore; } else { echo $entry_yy; } ?>" size="2" maxlength="4"/> </div></th> <th><div align="left"><span class="valText"> <?php if(isset($error['stockentry_yy__null'])) { echo $error['stockentry_yy__null']; } else if(isset($error['year_numeric'])) { echo $error['year_numeric']; } ?></span></div></th> </tr> <tr> <th height="24" class="projectboldtxt" scope="row"><div align="left">Number of items used</div></th> <th class="projectboldtxt" scope="row"><div align="left"> <input type="text" name="txtitemsused" id="txtitemsused" value="<?php if (isset($_POST['Update'])) { echo $edititemused; } else { echo $itemused_db; } ?>" /> </div> </label></th> <th><div align="left"><span class="valText"> <?php if(isset($error['edititemnumber_null'])) { echo $error['edititemnumber_null']; } else if(isset($error['itemnumber_numeric'])) { echo $error['itemnumber_numeric']; } else if(isset($error['item_over'])) { echo $error['item_over']; } else if(isset($error['nothingto_use'])) { echo $error['nothingto_use']; } ?></span></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_db; }?></textarea> </div></th> <th><div align="left"> <span class="valText"> <?php // if(isset($error['editdescription_null'])) // { // echo $error['editdescription_null']; // } ?></span></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_stockusage_entry.php"><span class="projectboldtxt style2">Back</span></a></div></th> <th scope="row"><span class="style2"><div align="left"></div> </span></th> </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>