Current File : /home/inlingua/public_html/noida/icentex/pg/payment_report.php
<?php
include("header_in.php");
// Include the database connection details
require('../dbConnection.php');

// Include common functions
require('../commonFunc.php');

// Include common functions
require('../globalVars.php');

// Include the table handler class
require('../dbHandler.class.php');

// Init and connect to database
$dbObject = new dbHandler();
$dbObject->connect();

?>

<div id="content-wrap" >
  <div id="content-box" >
		<div id="toolbar-title" >
			<h3>
Payment Reports 

</h3>
			
			<div class="clear"></div>
		</div>
		<div id="toolbar-box">
		  <div class="toolbar" id="toolbar"></div>
			<div class="clear"></div>
		</div>
		<div class="clear"></div>
		
		<div id="element-box">
			<div class="m">
				<table class="adminform">
					<tbody><tr>
												<td valign="top" width="100%">
												

<br>

<?php
$month=date("m");
$year=date("Y");
//$year=2011;
?>
<script type="text/javascript" src="js/student.js"></script>
<script>
function validate(form) 
{	if (document.form.startdate.value=="")
	{	alert("Please Select Start Date.");
		document.form.startdate.focus(); return false;
	}
	if (document.form.enddate.value=="")
	{	alert("Please Select end Date.");
		document.form.enddate.focus(); return false;
	}
	if (document.form.location.value=="")
	{	alert("Please Select Location.");
		document.form.location.focus(); return false;
	}
	return true;
}	

	</script>

        
<script language="javascript">
$(function() {
		$('#datepicker3').datepicker({
			changeMonth: true,
			changeYear: true
		});
	});
	$(function() {
		$('#datepicker4').datepicker({
			changeMonth: true,
			changeYear: true
		});
	});
</script>
	<font style="font-size:12px; color:#E84B1E"><?php if($_SESSION['existsheet']) { echo $_SESSION['existsheet']; unset ($_SESSION['existsheet']); }?></font>
<form action="payment_report_result.php" method="post" name="form"  onsubmit=" return validate(this)">
<table width="100%">
<tr valign='top'><td>Start date : <input type='text' autocomplete="off" name='startdate' value="<?php echo $dbObject->getDbField('startdate');?>" size='12' maxlength='10' id="datepicker3">
&nbsp;&nbsp;From date: <input type='text' name='enddate' autocomplete="off" value="<?php echo $dbObject->getDbField('enddate');?>" size='12' maxlength='10' id="datepicker4">
</td></tr>

<tr>
  <td>Location: <select name='location'>

<?php $_SESSION['id'];

if($_SESSION['id']!='620'&&$_SESSION['id']!='453'&&$_SESSION['id']!='353'&&$_SESSION['id']!='415'&&$_SESSION['id']!='417'&&$_SESSION['id']!='419'&&$_SESSION['id']!='498'&&$_SESSION['id']!='515'&&$_SESSION['id']!='245'&&$_SESSION['id']!='321'&&$_SESSION['id']!='358'&&$_SESSION['id']!='239'&& $_SESSION['id']!='674' )
{
	$querylocation="select primarycenter  from timesheet_user where recNo='".$_SESSION['id']."'";
	$resultlocation=mysqli_query($conn,$querylocation) or die(mysql_error($conn));
	$numlocation=mysqli_fetch_array($resultlocation);
	$queryloc="select * from timesheet_location where status='1' && location='".$_SESSION['branch']."' order by location";
	$resultloc=mysqli_query($conn,$queryloc) or die(mysql_error($conn));
	while ($numloc=mysqli_fetch_array($resultloc))
	{
	echo"<option value='".$numloc[location]."' ";
	if($numlocation[primarycenter]==$numloc[location])
	{
	echo"selected";
	}
	echo">".$numloc[location]."</option>";
	}
}
else
	  {?>
	  <option value="All" >All</option>
	  <option value="Connaught Place" >Connaught Place</option>
	  <option value="S.Extn" >S.Extn</option>
	  <option value="Gurgaon" >Gurgaon</option>
	  <option value="Noida" >Noida</option>
	  <option value="East Delhi" >East Delhi</option>
	  <option value="Pitampura" >Pitampura</option>
	  <option value="Vikaspuri" >Vikaspuri</option>
	  <?php
}
?>
</select>
</td>

</tr>


<tr><td><input type='submit' value="Report">
</td></tr>


</table>
</form>

<div id="cpanel">
				<div style="float: left;">
			<div class="icon"></div>
		</div>
				<div style="float: left;">
			<div class="icon"></div>
		</div>
				
				<div style="float: left;"></div>
			</div>
</td>
												<td valign="top" width="45%">&nbsp;</td>
					</tr>
				</tbody></table>
			</div>
		</div>
		<div class="clear"></div>
		<p class="copyright">&nbsp;</p>
  </div>
</div>

<?php
include("footer_in.php");
?>