0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: 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>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"> <!-- .style1 { color: #FF0000; font-size: 18px; } #apDiv1 { position:absolute; width:480px; height:269px; z-index:1; left: 179px; top: 282px; } #apDiv2 { position:absolute; width:59px; height:35px; z-index:2; left: 675px; top: 389px; } .style4 {color: #660000} .style5 {font-size: 14px} .style3 {font-size:12px; font-weight:bold; font-family: Arial;} --> </style> </head> <body> <p> <!--<div id="headerbg"> <div id="headerblank">--> <?php require_once "reciept_ctrl.php"; include("include/first_userheader.php"); ?> </p> <p class="msgText"> </p> <p align="center" class="projectboldtxt style5"> </p> <p class="msgText"> <?php if (isset($message)) echo $message;?> </p> <p align="center" class="msgText"><span class="projectboldtxt style5">Receipt Entry Form</span></p> <form action="reciept_ctrl.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="404" align="center"> <tr> <th width="136" class="projectboldtxt" scope="row"><div align="left">Voucher no:</div></th> <td width="198"><label> <input type="text" name="txtvoucher" id="txtvoucher" value="<?php if ($voucher!="") { echo $voucher; } ?>" /> </label></td> <td width="54"><span class="valText"> <?php if(isset($error['Voucher_number'])) { echo $error['Voucher_number']; } ?> </span></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Date</div></th> <td><label> <select name="cmbr_dd" id="cmbr_dd"> <?php for ($k=1; $k<=31; $k++) { ?> <option value="<?php echo $k; ?>"<?php if(@$RD_dd==$k) { echo "selected='selected'"; } ?> ><?php echo $k ?></option> <?php } ?> </select> </label> <label> <select name="cmbr_mm" id="cmbr_mm"> <?php for($k=1; $k<=12; $k++) { ?> <option value="<?php echo $k; ?>"<?php if(@$RD_mm==$k) { echo "selected='selected'"; } ?> ><?php echo $month[$k]; ?></option> <?php } ?> </select> </label> <label> <input name="txtr_yy" type="text" id="txtr_yy" value="<?php if ($rd_yy!="") { echo $rd_yy; } ?>" size="5" maxlength="4" /> </label></td> <td><span class="valText"> <?php if(isset($error['receiptdate'])) { echo $error['receiptdate']; } else if(isset($error['rd_numeric'])) { echo $error['rd_numeric']; } ?> </span></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<=$i;$j++) {?> <option value="<?php echo $j; ?>"><?php echo $acc_name_array[$j]; ?></option> <?php } ?> </select> </label></td> <td><span class="valText"> <?php if(isset($error['account_exist'])) { echo $error['account_exist']; }?> </span></td> </tr> <tr> <th height="28" class="projectboldtxt" scope="row"><div align="left">Amount</div></th> <td><label> <input type="text" name="txtamount" id="txtamount" value="<?php if($amount!="") { echo $amount; } ?>" /> </label></td> <td><span class="valText"> <?php if(isset($error['amount'])) { echo $error['amount']; } else if(isset($error['amount_numeric'])) { echo $error['amount_numeric']; } ?> </span></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($discount!="")echo $discount;?>" /> </label></td> <td><span class="valText"> <?php if(isset($error['Discount'])) { echo $error['Discount']; } else if(isset($error['discount_numeric'])) { echo $error['discount_numeric']; } ?> </span></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Description</div></th> <td><label><textarea name="txtdes"id="txtdes"cols="25"rows="5"><?php if($description!=""){echo $description;}?></textarea> </label></td> <td><span class="valText"> <?php if(isset($error['Descriptions'])) {echo $error['Descriptions'];}?> </span></td> </tr> <tr> <th scope="row"> </th> <td><label> <input type="submit" name="save" id="save" value="SAVE" /> </label> <label></label> <a href="search_receipt.php" class="style1 style4">Search & Edit <label><span class="projectboldtxt"> </span></label> <label class="projectboldtxt"><span class="style3"><a href="Register.php" class="projectboldtxt"></span></label> <span class="projectboldtxt"> <label></label> </span> </td> <td><a href="task.php" class="projectboldtxt style2">Back</a></td> </tr> </table> <p> </p> <p> </p> </div> </form> <p> </div> <?php include "include/footer.php"; ?> </p> </body> </html>