0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: edit_stockentry.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_stockentry_ctrl.php"; ?> <p> </p> <p align="center" class="projectboldtxt"> </p> </p> <div align="center"> <p class="projectboldtxt style2"> </p> <p class="projectboldtxt style2">Edit the details of item in stock</p> </div> <form action="edit_stockentry.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="425" height="209" align="center"> <tr> <th height="36" class="projectboldtxt" scope="row"><div align="left">Stock entry id</div></th> <th class="projectboldtxt" scope="row"><div align="left"> <input type="text" name="txtstockentryid" id="txtstockentryid" value="<?php echo $stockentrydb_id; if (isset($_POST['Update'])) { echo $editstockentryid; }?>" readonly="readonly"/> </div></th> </tr> <tr> <th width="142" 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_db; }?>"/> </div></th> <th width="123" 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']; } 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">Stock entry date</div></th> <th class="projectboldtxt" scope="row"><div align="left"> <select name="cmbstockentrydd" id="cmbstockentrydd"> <?php for ($i=1; $i<=31; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$stockentry_dd_restore==$i) { echo "selected='selected'"; } } else { if(@$stockentry_dd==$i) { echo "selected='selected'"; } } ?> ><?php echo $i ?></option> <?php } ?> </select> <select name="cmbstockentrymm" id="cmbstockentrymm"> <?php for($i=1; $i<=12; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$stockentry_mm_restore==$i) { echo "selected='selected'"; } } else { if(@$stockentry_mm==$i) { echo "selected='selected'"; } } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select> <input name="txtstockentryyy" type="text" id="txtstockentryyy" value= "<?php if (isset($_POST['Update'])) { echo $stockentry_yy_restore; } else { echo $stockentry_yy; } ?>" size="2" maxlength="4"/> </div></th> <th class="projectboldtxt" scope="row"><div align="left"> <label></label> <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 in stock</div></th> <th class="projectboldtxt" scope="row"><div align="left"> <input type="text" name="txtitemsinstock" id="txtitemsinstock" value="<?php if (isset($_POST['Update'])) { echo $edititeminstock; } else { echo $iteminstock_db; } ?>" /> </div> </label></th> <th class="projectboldtxt" scope="row"><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']; } ?> </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 class="projectboldtxt" scope="row"><div align="left"> <label></label> <?php /* if(isset($error['editdescription_null'])) { echo $error['editdescription_null']; }*/ ?> </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_stockentry.php" class="projectboldtxt style2">Back</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>