0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: paymentreport.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>Paymentreport|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:330px; height:229px; z-index:1; left: 261px; top: 262px; background-color: #F4E7BD; } .style3 {font-size: 16px} --> </style> </head> <body> <p> <?php include("include/first_userheader.php"); include("paymentreport_ctrl.php"); @$_SESSION['sl_no']=0; ?> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p align="center" class="projectboldtxt style3">Payment Report</p> <form action="paymentreport_ctrl.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="351" height="210" align="center" bordercolor="#F4E7BD"> <tr> <th height="44" class="projectboldtxt" scope="row"><div align="left">Project code</div></th> <td><input type="text" name="txtprojectcode" id="txtprojectcode" value="<?php $p_code=@$_SESSION['project_code_s'];?><?php echo $p_code; ?>" readonly="readonly"/></td> </tr> <tr> <th width="94" height="44" class="projectboldtxt" scope="row"><div align="left">Complete </div> <label></label> </th> <td width="275"><label> <input name="checkcompletedays" type="checkbox" id="checkcompletedays" value="fullday" /> </label></td> </tr> <tr> <th height="29" class="projectboldtxt" scope="row"><div align="left">From date</div></th> <td><label> <select name="cmbpayfdd" id="cmbpayfdd"> <?php for ($i=1; $i<=31; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(@$fromdate_dd==$i) { echo "selected='selected'"; } ?> ><?php echo $i ?></option> <?php } ?> </select> <select name="cmbpayfmm" id="cmbpayfmm"> <?php for($i=1; $i<=12; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(@$fromdate_mm==$i) { echo "selected='selected'"; } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select> <input name="txtpayfyy" type="text" id="txtpayfyy" value="<?php if($fromdate_yy!="") echo $fromdate_yy;?>" size="5" maxlength="4" /> <span class="valText"> <?php if(isset($error['fdate_yy'])) { echo $error['fdate_yy']; } if(isset($error['fdate_numeric'])) { echo $error['fdate_numeric']; } ?> </span> </label></td> </tr> <tr> <th height="36" class="projectboldtxt" scope="row"><div align="left">To date <label></label> </div></th> <td><strong> <label> <select name="cmbpaytodd" id="cmbpaytodd"> <?php for($i=1; $i<=31; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(@$todate_dd==$i) { echo "selected='selected'"; } ?> ><?php echo $i; ?></option> <?php } ?> </select> </label> <label> <select name="cmbpaytomm" id="cmbpaytomm"> <?php for ($i=1; $i<=12; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(@$todate_mm==$i) { echo "selected='selected'"; } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select> </label> <input name="txtpaytoyy" type="text" id="txtpaytoyy" value="<?php if($todate_yy!="") echo $todate_yy;?>" size="5" maxlength="4" /> <span class="valText"> <?php if(isset($error['todate_yy'])) { echo $error['todate_yy']; } else if(isset($error['todate_numeric'])) { echo $error['todate_numeric']; } ?> </span> </strong></td> </tr> <tr> <th height="43" scope="row"> </th> <td><label> <input type="submit" name="show" id="show" value="SHOW" /> </label></td> </tr> </table><?php if(isset($_POST['show'])) { if($error_flag==0) { $p_id=@$_SESSION['project_id']; $u_id=@$_SESSION['user_id']; if($completeday==fullday) { $sql="select * from payment where user_id='$u_id' and project_id='$p_id' and p_date ORDER BY p_date "; Paymentreport::printpaymentDetails($sql,"",""); } else { $sql="select * from payment where user_id='$u_id' and project_id='$p_id' and p_date between '$from_date' and '$to_date'" ; Paymentreport::printpaymentDetails($sql,$from_date,$to_date); } } } ?> </form> <p> <?php include "include/footer.php"; ?> </p> </body> </html>