0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: 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>stockentry| OFMSP</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"> <!-- .style2 {font-size: 14px} --> </style> </head> <body> <p> <!--<div id="headerbg"> <div id="headerblank">--> <?php require_once "stockentry_ctrl.php"; include("include/userheader.php"); ?> </p> <p class="msgText"> <?php if (isset($message)) echo $message;?> </p> <p class="msgText"> </p> <p align="center" class="msgText"> </p> <p align="center" class="msgText"><span class="projectboldtxt style2">Stock Entry Form</span></p> <form action="stockentry.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="200" height="211" align="center"> <tr> <td><table width="487" align="center"> <tr> <td width="160" class="projectboldtxt">Item name</td> <td width="144"><label> <select name="cmbitem" id="cmbitem"> <?php for($j=1;$j<=$i;$j++) { ?> <option value="<?php echo $j; ?>"<?php if(@$item_name_restore==$j) { echo "selected='selected'"; } ?>> <?php echo $item_name_array[$j]; ?></option> <?php } ?> </select> <input type="submit" name="clickbtn" id="clickbtn" value="View item description" /> </label></td> <td width="167"> </td> </tr> <tr> <td class="projectboldtxt">Item Description</td> <td><label> <textarea name="txtitemdesc" id="txtitemdesc" cols="20" rows="5" readonly="readonly"><?php if (isset($_POST['clickbtn'])) { $k=$_POST['cmbitem']; $k=$k-1; echo $item_desc_db[$k]; } if($stockitemdescription!="") { echo $stockitemdescription; } ?> </textarea> </label></td> <td></td> </tr> <tr> <td class="projectboldtxt">Date</td> <td><select name="cmbitemdd" id="cmbitemdd"> <?php for ($i=1; $i<=31; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(@$stockdate_dd==$i) { echo "selected='selected'"; } ?> ><?php echo $i ?></option> <?php } ?> </select> <select name="cmbitemmm" id="cmbitemmm"> <?php for($i=1; $i<=12; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(@$stockdate_mm==$i) { echo "selected='selected'"; } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select> <input name="txtitemyy" type="text" id="txtitemyy" value="<?php if($stockdate_yy!="") echo $stockdate_yy;?>" size="1" maxlength="4"/></td> <td><span class="valText"> <?php if(isset($error['year_null'])) { echo $error['year_null']; } else if(isset($error['year_numeric'])) { echo $error['year_numeric']; } ?> </span></td> </tr> <tr> <td class="projectboldtxt">Total item in stock</td> <td><input type="text" name="txtnoitems" id="txtnoitems" value="<?php if($itemsinstock!="") echo $itemsinstock;?>"/> </td> <td><span class="valText"> <?php if(isset($error['name_null'])) { echo $error['name_null']; } else if(isset($error['itemnumber_numeric'])) { echo $error['itemnumber_numeric']; } ?> </span></td> </tr> <tr> <td class="projectboldtxt">Description</td> <td><label><textarea name="txtstockdesc" id="txtstockdesc" cols="20" rows="5"><?php if($stockdescription!="") { echo $stockdescription; } ?></textarea></label></td> <td><span class="valText"> <?php /*if(isset($error['description_null'])) { echo $error['description_null']; }*/ ?> </span></td> </tr> <tr> <td> </td> <td><label> <input type="submit" name="savebtn" id="savebtn" value="SAVE" /> <a href="search_stockentry.php" class="projectboldtxt">Search & Edit</a></label></td> <td><a href="stockmanagement.php" class="projectboldtxt style2">Back</a></td> </tr> </table></td> </tr> </table> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> </form> <p> <?php include "include/footer.php"; ?> </p> </body> </html>