Current File : /home/inlingua/public_html/dwarka/icentex/admin_calendar/report.php |
<?php
// Created on: 13-12-2014
session_start();
/*
$loggedUserNo = $_SESSION['loggedUserNo'];
if ($loggedUserNo == "")
{ echo "Please <a href='index.php'>login</a> first.";
exit(0);
}
*/
// Include header
include "header_calendar.php";
// Include the database connection details
require('../pdo_conn/dbConnection.php');
// Include common functions
require('../pdo_conn/commonFunc.php');
// Include common functions
require('../pdo_conn/globalVars.php');
// Include the table handler class
require('../pdo_conn/dbHandler.class.php');
// Init and connect to database
$dbObject = new dbHandler($conn);
?>
<script>
$(function() {
$('#organized_date,#organized_date_to').datepicker({
changeMonth: true,
changeYear: true,
yearRange: "-4:+4"
});
});
</script>
<div style='text-align:left;'><h3> Events Reports</h3></div>
<?php if ($_SESSION['dispMesg'][1] != "" && (date("U") - $_SESSION['dispMesg'][0] < 7))
{ ?>
<span id='mesgSpan'><font color='#da0000'><?php echo $_SESSION['dispMesg'][1];?></font></span>
<script>
setTimeout(function() { $('#mesgSpan').fadeOut('slow'); }, 4000); // <-- time in milliseconds
</script>
<br>
<?php
}
unset($_SESSION['dispMesg']);
?><form method="post" action="05featuredemo1_reports.php">
<table>
<tr><td>Search : </td><td>Center</td><td>
<select id="centre" name="centre" class="required" style="width:200px;">
<option value="">Select Location</option>
<?php
if(in_array("calendar_super_admin",$_SESSION['allowed_modules'])){
$queryB="select * from timesheet_location where status='1' order by location";
}
else{
$queryB="select * from timesheet_location where status='1' && location='".$_SESSION['branch']."' order by location";
}
$resultB=$conn->query($queryB);
//$resultB->execute(array());
while($numB=$resultB->fetch_assoc())
{
if($numB[location]=="S.Extn")
{
$showL="South Extension";
}
else
{
$showL=$numB[location];
}
echo"<option value='".$numB[location]."'";
if($_REQUEST['centre']==$numB[location]) echo"selected";
echo">".$showL."</option>";
}
?>
</select>
</td>
<td>Date</td><td><input type="text" name='organized_date' id="organized_date" value="<?php echo $_REQUEST['organized_date'] ?>" readonly>-<input type="text" name="organized_date_to" id="organized_date_to" value="<?php echo $_REQUEST['organized_date_to'] ?>" readonly></td>
<td><input type="submit" value="Search"></td></tr>
</table>
</form>
<?php
$dbObject->CloseConnection();
// Include footer
include "footer_calendar.php";
?>