0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: advancetakenentry_report.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>Search Advance taken entry | OFMSP</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 {font-size: 16px} #apDiv1 { position:absolute; width:174px; height:74px; z-index:1; left: 713px; top: 408px; } --> </style> </head> <body> <p> <?php include("include/first_userheader.php"); include("advancetakenentry_report_ctrl.php"); @$_SESSION['sl_no']=0; ?> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p align="center" class="projectboldtxt style1">Advance Taken Report</p> <form action="advancetakenentry_report_ctrl.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <p><span class="msgText"><?php if(isset($_GET['message'])) { ?><blink> <?php echo $_GET['message']; ?></blink><?php } ?></span></p> <table width="390" height="202" align="center" bgcolor="#F7E7BD"> <tr> <th height="22" class="projectboldtxt" scope="row"><div align="left">Advance/Imprest</div></th> <td><label> <select name="cmbadvan_imp" id="cmbadvan_imp"> <option value="1">Advance</option> <option value="2">Imprest</option> </select> </label></td> </tr> <tr> <th width="119" height="22" class="projectboldtxt" scope="row"><div align="left" class="">Complete Days</div></th> <td width="259"><label> <input name="checkcompletedays" type="checkbox" id="checkcompletedays" value="fullday" /> </label></td> </tr> <tr> <th height="42" class="projectboldtxt" scope="row"><div align="left" class="">From date</div></th> <td><label></label> <label></label> <table width="263" border="0"> <tr> <td width="39"><select name="cmbfromdd" class="moreproject" id="cmbfromdd"> <?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></td> <td width="40"><select name="cmbfrommm" id="cmbfrommm"> <?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></td> <td width="32"><input name="txtfromyy" type="text" id="txtfromyy" value="<?php if($fromdate_yy!="") echo $fromdate_yy;?>" size="5" maxlength="4" /></td> <td width="134"><span class="valText"> <?php if(isset($error['fdate_yy'])) { echo $error['fdate_yy']; } if(isset($error['fdate_numeric'])) { echo $error['fdate_numeric']; } ?> </span></td> </tr> </table></td> </tr> <tr> <th height="37" class="projectboldtxt" scope="row"><div align="left" class="">To date</div></th> <td><label></label> <table width="261" border="0"> <tr> <td width="39"><select name="cmbtodd" class="moreproject" id="cmbtodd"> <?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></td> <td width="40"><select name="cmbtomm" id="cmbtomm"> <?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></td> <td width="30"><input name="txttoyy" type="text" id="txttoyy" value="<?php if($todate_yy!="") echo $todate_yy;?>" size="5" maxlength="4" /></td> <td width="134"><span class="valText"> <?php if(isset($error['todate_yy'])) { echo $error['todate_yy']; } else if(isset($error['todate_numeric'])) { echo $error['todate_numeric']; } ?> </span></td> </tr> </table></td> </tr> <tr> <th height="37" class="projectboldtxt" scope="row"><div align="left">Name of withdrawer</div></th> <td><label> <input type="text" name="txtname" id="txtname" /> </label></td> </tr> <tr> <th height="26" scope="row"> </th> <td><label> <input type="submit" name="show" id="show" value="SHOW" /> <a href="task.php" class="projectboldtxt style3 style1">Back</a></label></td> </tr> </table> <p> </p> <?php if(isset($_POST['show'])) {//150 $name=@$_POST['txtname']; //$u_name=@$_SESSION['username']; $p_id=@$_SESSION['project_id']; $u_id=@$_SESSION['user_id']; if($error_flag==0) {//156 if($completeday==fullday) {//158 if($type==1) { $sql1="select * from advance_taken_entry where user_id='$u_id' and project_id='$p_id' and name LIKE '%$name%' ORDER BY name"; } else { $sql1="select * from advance_taken_entry where user_id='$u_id' and project_id='0' and name LIKE '%$name%' ORDER BY name"; } search_advancetakenentry::printsearch_advancetakenentryDetails($sql1,"",""); }//158 else {//158 if($type==1) { $sql="select * from advance_taken_entry where user_id='$u_id' and project_id='$p_id' and date between '$from_date' and '$to_date'" ; } else { $sql="select * from advance_taken_entry where user_id='$u_id' and project_id='0' and date between '$from_date' and '$to_date'" ; } search_advancetakenentry::printsearch_advancetakenentryDetails($sql,$from_date,$to_date); }//158 }//156 }//150 ?> </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> </div> <?php include "include/footer.php"; ?> </p> </body> </html>