Current File : /home/inlingua/www/icentex/pg/payment_Cancle.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 Cancelled / Refund 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="90%">
<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_cancle_result.php" method="post" name="form" onsubmit=" return validate(this)">
<table width="100%">
<tr></tr>
<tr>
<td > </td>
</tr>
<tr valign='top'><td>Start date : <input type='text' name='startdate' value="<?php echo $dbObject->getDbField('startdate');?>" size='12' maxlength='10' id="datepicker3">
From date: <input type='text' name='enddate' value="<?php echo $dbObject->getDbField('enddate');?>" size='12' maxlength='10' id="datepicker4">
</td></tr>
<tr>
<td >Cancelled/Refund
<select name='Type'>
<option value="Cancle" >Cancelled Report</option>
<option value="Refund" >Refund Report</option>
</select>
Location: <select name='location'>
<?php
if($_SESSION['id']!='453'&&$_SESSION['id']!='353'&&$_SESSION['id']!='415'&&$_SESSION['id']!='417'&&$_SESSION['id']!='419'&&$_SESSION['id']!='498'&&$_SESSION['id']!='515'&&$_SESSION['id']!='245')
{
$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="10%"> </td>
</tr>
</tbody></table>
</div>
</div>
<div class="clear"></div>
<p class="copyright"> </p>
</div>
</div>
<?php
include("footer_in.php");
?>