0byt3m1n1
Path:
C:
/
GEOMATICS 23-01-2021
/
LAN
/
CPMS
/
ADMIN
/
[
Home
]
File: summary.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>Summary report for individual project</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:321px; height:230px; z-index:1; left: 289px; top: 255px; } .style1 {font-size: 14px} --> </style> </head> <body> <p> <!--<div id="headerbg"> <div id="headerblank">--> <?php include("include/adminheader.php"); include("summary_ctrl.php"); ?> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p align="center" class="projectboldtxt style1">Projectwise Summary Report</p> <form action="summary_ctrl.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="200" height="217" border="1" align="center"> <tr> <td><table width="358" height="197" align="center" bordercolor="#FF0000" bgcolor="#F7E7BD"> <tr> <th width="104" height="33" class="projectboldtxt" scope="row"><div align="left">Complete Days</div></th> <td width="242"><label> <input name="checkcompletedays" type="checkbox" id="checkcompletedays" value="fullday" /> </label></td> </tr> <tr> <th height="21" class="projectboldtxt" scope="row"><div align="center">DATE</div></th> <td> </td> </tr> <tr> <th height="42" class="projectboldtxt" scope="row"><div align="left">From</div></th> <td><label> <select name="cmbsumfdd" class="moreproject" id="cmbsumfdd"> <?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="cmbsumfmm" id="cmbsumfmm"> <?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="txtsumfyy" type="text" id="txtsumfyy" value="<?php if($fromdate_yy!="") echo $fromdate_yy;?>" size="2" 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="37" class="projectboldtxt" scope="row"><div align="left">To</div></th> <td><label> <select name="cmbsumtodd" class="moreproject" id="cmbsumtodd"> <?php for($i=1; $i<=12; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(@$todate_dd==$i) { echo "selected='selected'"; } ?> ><?php echo $i; ?></option> <?php } ?> </select> <select name="cmbsumtomm" id="cmbsumtomm"> <?php for ($i=1; $i<=31; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(@$todate_mm==$i) { echo "selected='selected'"; } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select> <input name="txtsumtoyy" type="text" id="txtsumtoyy" value="<?php if($todate_yy!="") echo $todate_yy;?>" size="2" 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></label></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Brief</div></th> <td><label> <input name="checkbrief" type="checkbox" id="checkbrief" value="brief" /> </label></td> </tr> <tr> <th height="26" scope="row"> </th> <td><label> <input type="submit" name="show" id="show" value="SHOW" /> <a href="project_report.php" class="projectboldtxt style1">Back</a></label></td> </tr> </table></td> </tr> </table> <?php if(isset($_POST['show'])) { if($error_flag==0) { $p_id=@$_SESSION['project_id_a']; if($completeday==fullday) { if($Brief==brief) { $sql="select group_name,debit,credit from ledger where project_id='$p_id' "; } else { $sql="select group_name,account_name,debit,credit from ledger where project_id='$p_id' "; } summaryreport::printsummarykDetails($sql,"",""); } else { if($Brief==brief) { $sql="select group_name,debit,credit from ledger where user_id='$u_id' and project_id='$p_id' and date between '$from_date' and '$to_date'" ; } else { $sql="select group_name,account_name,debit,credit from ledger where user_id='$u_id' and project_id='$p_id' and date between '$from_date' and '$to_date'" ; } summaryreport::printsummarykDetails($sql,$from_date,$to_date); } } } ?> </form><p> <?php include "include/footer.php"; ?> </p> </body> </html>