0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: 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>payment |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:63px; height:36px; z-index:1; left: 670px; top: 440px; } #apDiv2 { position:absolute; width:381px; height:356px; z-index:2; left: 242px; top: 280px; } .style3 {color: #990000} .style15 { color: #660000; font-size: 18px; } .style16 {font-size: 14px} --> </style> </head> <body> <p> <!--<div id="headerbg"> <div id="headerblank">--> <?php require_once "payment_ctrl.php"; include("include/first_userheader.php"); ?></p> <p> </p> <p> </p> <p> </p> <p> </p> <p align="center" class="projectboldtxt style16">Payment</p> </p><span class="msgText"><?php if (isset($message)) echo $message;?></span> <form action="payment.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="362" height="253" align="center"> <tr> <th width="92" class="projectboldtxt" scope="row"><div align="left">Voucher no:</div></th> <td width="201"><label> <input type="text" name="txtpvoucher" id="txtpvoucher" value="<?php if ($pvoucher!="") { echo $pvoucher; } ?>" /> </label></td> <td width="53"><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="cmbpdd" id="cmbpdd"> <?php for ($k=1; $k<=31; $k++) { ?> <option value="<?php echo $k; ?>"<?php if(@$pdate_dd==$k) { echo "selected='selected'"; } ?> ><?php echo $k ?></option> <?php } ?> </select> </select> </label> <label> <select name="cmbpmm" id="cmbpmm"> <?php for($k=1; $k<=12; $k++) { ?> <option value="<?php echo $k; ?>"<?php if(@$pdate_mm==$k) { echo "selected='selected'"; } ?> ><?php echo $month[$k]; ?></option> <?php } ?> </select> </label> <label> <input name="txtpyy" type="text" id="txtpyy" value="<?php if ($pdate_yy!="") { echo $pdate_yy; } ?>" size="5" maxlength="4" /> </label></td> <td><span class="valText"> <?php if(isset($error['paymenttdate'])) { echo $error['paymenttdate']; } else if(isset($error['pd_numeric'])) { echo $error['pd_numeric']; } ?> </span></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Account Name</div></th> <td><label> <select name="cmbpaccname" id="cmbpaccname"> <?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 class="projectboldtxt" scope="row"><div align="left">Amount</div></th> <td><label> <input type="text" name="txtpamount" id="txtpamount" value="<?php if ($pamount!="") { echo $pamount; } ?>" /> </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="txtpdiscount" id="txtpdiscount" value="<?php if($pdiscount!=""){echo $pdiscount;}?>"/></label></td><td><span class="valText"><?php 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="txtpdescription" id="txtpdescription" cols="20" rows="5"><?php if($pdescription!="") { echo $pdescription; } ?> </textarea> </label></td> <td><span class="valText"> <?php if(isset($error['description'])) { echo $error['description']; } ?> </span></td> </tr> <tr> <th scope="row"><div align="left"></div></th> <td><label> <span class="projectboldtxt style3"> <input type="submit" name="save" id="save" value="SAVE" /> </span></label> <label></label> <a href="search_payment.php" class="none style15">Search & Edit</a></td> <td><a href="task.php" class="projectboldtxt style2">Back</a></td> </tr> </table> </form> <p> </div> <?php include "include/footer.php"; ?> </p> </body> </html>