0byt3m1n1
Path:
C:
/
Users
/
Administrator
/
Desktop
/
CWRDM Backup
/
cpms_new
/
USER
/
[
Home
]
File: edit_receipt.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 receipt |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:64px; height:37px; z-index:1; left: 223px; top: 264px; } .style2 { color: #FFFFFF; font-weight: bold; } #apDiv2 { position:absolute; width:66px; height:36px; z-index:2; left: 746px; top: 467px; } --> </style> </head> <body> <p> <?php include("include/first_userheader.php"); require_once "edit_receipt_ctrl.php"; ?> </p> <form action="edit_receipt.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">Receipt id</div></th> <td width="330"><label> <input type="text" name="txtreceiptid" id="txtreceiptid" value="<?php echo $receiptdb_id; if (isset($_POST['Update'])) { echo $receipt_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']; } // else if(isset($error['receipt_date'])) // { // echo $error['receipt_date']; // } // ?> </span> </label></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Date</div></th> <td><label> <select name="cmbreceiptdd" id="cmbreceiptdd"> <?php for ($i=1; $i<=31; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$receipt_dd_restore==$i) { echo "selected='selected'"; } } else { if(@$receipt_dd==$i) { echo "selected='selected'"; } } ?> ><?php echo $i ?></option> <?php } ?> </select> </label> <label> <select name="cmbreceiptmm" id="cmbreceiptmm"> <?php for($i=1; $i<=12; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(isset($_POST['Update'])) { if(@$receipt_mm_restore==$i) { echo "selected='selected'"; } } else { if(@$receipt_mm==$i) { echo "selected='selected'"; } } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select> </label> <label> <input name="txtreceiptyy" type="text" id="txtreceiptyy" value= "<?php if (isset($_POST['Update'])) { echo $receipt_yy_restore; } else { echo $receipt_yy; } ?>" size="5" maxlength="4"/><span class="valText"> <?php if(isset($error['receipt_yy_null'])) { echo $error['receipt_yy_null']; } else if(isset($error['receipt_date'])) { echo $error['receipt_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_receipt.php" class="projectboldtxt">Back</a></label></td> </tr> </table> <p> </p> <p> </p> </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> </p> <p> </p> <p> </p> <p> <?php include "include/footer.php"; ?> </p> </body> </html>