0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: edit_advance_settlement_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} --> </style> </head> <body> <?php require_once "edit_advance_settlement_entry_ctrl.php"; include("include/first_userheader.php"); ?> <p> </p> <p align="center" class="projectboldtxt style2">Edit the details of Advance settelment stock</p> </p> <form action="edit_advance_settlement_entry_ctrl.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="564" height="252" align="center"> <tr> <th height="36" class="projectboldtxt" scope="row"><div align="left">Settlment id</div></th> <th class="projectboldtxt" scope="row"><div align="left"> <input type="text" name="txtid" id="txtid" value="<?php echo $id_db; if (isset($_POST['Update'])) { echo $editid; }?>" readonly="readonly"/> </div> <tr> <th height="24" class="projectboldtxt" scope="row"><div align="left">Entry name</div></th> <th class="projectboldtxt" scope="row"><div align="left"><select name="cmbentry_no" id="cmbentry_no"> <?php for($j=1;$j<=$i;$j++) {?> <option value="<?php echo $j; ?>"<?php if(isset($_POST['Update'])) { if(@$advance_id_restore==$advance_id_array[$j]) { echo "selected='selected'"; } } else { if(@$advance_taken_entry_no_db==$advance_id_array[$j]) { echo "selected='selected'"; } } ?> ><?php echo $advance_id_array[$j]; ?></option><?php }?> </select> </div> </label></th> <th class="projectboldtxt" scope="row"> </th> </tr> <tr> <th width="142" height="24" class="projectboldtxt" scope="row"><div align="left">Type of Item</div></th> <th width="149" class="projectboldtxt" scope="row"><div align="left"> <input type="text" name="txttypeofitem" id="txttypeofitem" value="<?php if (isset($_POST['Update'])) { echo $edittypeofitem; } else { echo $type_of_item_db; }?>"/> </div></th> <th width="257" class="projectboldtxt" scope="row"><label></label> <div align="left"><span class="valText"> <?php if(isset($error['edittypeofitem_null'])) { echo $error['edittypeofitem_null']; } ?> </span></div></th> </tr> <tr> <th height="24" class="projectboldtxt" scope="row"><div align="left">Invoice Date</div></th> <th class="projectboldtxt" scope="row"><div align="left"> <select name="cmbdd" id="cmbdd"> <?php for ($i=1; $i<=31; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$dd_restore==$i) { echo "selected='selected'"; } } else { if(@$invoice_dd==$i) { echo "selected='selected'"; } } ?> ><?php echo $i ?></option> <?php } ?> </select> <select name="cmbmm" id="cmbmm"> <?php for($i=1; $i<=12; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$mm_restore==$i) { echo "selected='selected'"; } } else { if(@$invoice_mm==$i) { echo "selected='selected'"; } } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select> <input name="txtyy" type="text" id="txtyy" value= "<?php if (isset($_POST['Update'])) { echo $yy_restore; } else { echo $invoice_yy; } ?>" size="2" maxlength="4"/> </div></th> <th class="projectboldtxt" scope="row"><div align="left"> <label></label> <span class="valText"> <?php if(isset($error['yy__null'])) { echo $error['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">Vender Name</div></th> <th class="projectboldtxt" scope="row"><div align="left"> <input name="txtvendername" type="text" id="txtvendername" value="<?php if (isset($_POST['Update'])) { echo $editvendername; } else { echo $vender_name_db; } ?>" /> </div> </label></th> <th class="projectboldtxt" scope="row"><div align="left"> </th> </tr> <tr> <th height="24" class="projectboldtxt" scope="row"><div align="left">Invoice Number</div></th> <th class="projectboldtxt" scope="row"><div align="left"> <input type="text" name="txtinvoice_no" id="txtinvoice_no" value="<?php if (isset($_POST['Update'])) { echo $invoice_no_restore; } else { echo $invoice_no_db; } ?>" /> </div> </label></th> <th class="projectboldtxt" scope="row"><div align="left"> </div></th> </tr> <tr> <th height="24" class="projectboldtxt" scope="row"><div align="left">Bill Amount</div></th> <th class="projectboldtxt" scope="row"><div align="left"><input type="text" name="txtbill_amount" id="txtbill_amount" value="<?php if (isset($_POST['Update'])) { echo $bill_amount_restore; } else { echo $bill_amount_db; } ?>"/> </div> </label></th> <th class="projectboldtxt" scope="row"><div align="left"><span class="valText"> <?php if(isset($error['bill_amount_restore_null'])) { echo $error['bill_amount_restore_null']; } ?> </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> </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_advance_settlement.php" class="projectboldtxt style2">Back</a></div></th> <th scope="row"><span class="style2"><div align="left"> <a href="search_custemaccountcashentry.php" class="projectboldtxt style2"></a></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>