0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: edit_payment.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>Advance settelment edit| 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"> <!-- #apDiv1 { position:absolute; width:68px; height:38px; z-index:1; left: 713px; top: 408px; } --> </style> </head> <body> <p><?php include("include/first_userheader.php"); require_once "edit_payment_ctrl.php";?> </p> <form action="edit_payment.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <p align="center"> </p> <p> </p> <p> </p> <table width="411" align="center" cellspacing="0"> <tr> <th width="101" class="projectboldtxt" scope="row"><div align="left">Payment id</div></th> <td width="330"><label> <input type="text" name="txtrpaymentid" id="txtrpaymentid" value="<?php echo $paymentdb_id; if (isset($_POST['Update'])) { echo $payment_id_restore; }?>" readonly="readonly"/> </label></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Voucher no</div></th> <td><label> <input type="text" name="txtvoucher" id="txtvoucher" value="<?php if (isset($_POST['Update'])) { echo $voucher_restore; } else { echo $voucher; } ?>" /> <span class="valText"> <?php if(isset($error['Voucher_number'])) { echo $error['Voucher_number']; } ?> </span> </label></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Date</div></th> <td><label> <select name="cmbpaymentdd" id="cmbpaymentdd"> <?php for ($i=1; $i<=31; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$payment_dd_restore==$i) { echo "selected='selected'"; } } else { if(@$payment_dd==$i) { echo "selected='selected'"; } } ?> ><?php echo $i ?></option> <?php } ?> </select> </label> <label> <select name="cmbpaymentmm" id="cmbpaymentmm"> <?php for($i=1; $i<=12; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$payment_mm_restore==$i) { echo "selected='selected'"; } } else { if(@$payment_mm==$i) { echo "selected='selected'"; } } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select> </label> <label> <input name="txtpaymentyy" type="text" id="txtpaymentyy" value= "<?php if (isset($_POST['Update'])) { echo $payment_yy_restore; } else { echo $payment_yy; } ?>" size="5" maxlength="4"/> <span class="valText"> <?php if(isset($error['payment_yy_null'])) { echo $error['payment_yy_null']; } else if(isset($error['payment_date'])) { echo $error['payment_date']; } ?> </span> </label></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Account Name</div></th> <td><label> <select name="cmbaccname" id="cmbaccname"> <?php for($j=1;$j<=$for_var_i;$j++) {?> <option value="<?php echo $j; ?>"<?php if(isset($_POST['Update'])) { if(@$account_name_restore==$acc_name_array[$j]) { echo "selected='selected'"; } } else { if(@$account_name==$acc_name_array[$j]) { echo "selected='selected'"; } } ?> ><?php echo $acc_name_array[$j]; ?></option><?php }?> </select> <span class="valText"> <?php if(isset($error['account_exist'])) { echo $error['account_exist']; } ?> </span></label></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Amount</div></th> <td><label> <input type="text" name="txtamount" id="txtamount" value= "<?php if (isset($_POST['Update'])) { echo $amount_restore; } else { echo $amount; } ?>"/> <span class="valText"> <?php if(isset($error['amount_null'])) { echo $error['amount_null']; } else if(isset($error['amount_numeric'])) { echo $error['amount_numeric']; } ?> </span> </label></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Discount</div></th> <td><label> <input type="text" name="txtdiscount" id="txtdiscount" value= "<?php if (isset($_POST['Update'])) { echo $discount_restore; } else { echo $discount; } ?>"/> <span class="valText"> <?php if(isset($error['discount_numeric'])) { echo $error['discount_numeric']; } ?> </span> </label></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Description</div></th> <td><label> <textarea name="txtdes" id="txtdes" cols="20" rows="5"><?php if(isset($_POST['Update']))echo $description_restore;else echo $description;?></textarea> <span class="valText"> <?php if(isset($error['description_null'])) { echo $error['description_null']; } ?> </span> </label></td> </tr> <tr> <th scope="row"> </th> <td><label> <input type="submit" name="Update" id="Update" value="Update" /> </label> <label><a href="search_payment.php" class="projectboldtxt style2">Back</a></label></td> </tr> </table> <p> </p> <p> </p> <div id="apDiv2"></div> </form> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </div> <?php include "include/footer.php"; ?> </p> </body> </html>