<?php

include "DBconfig.php";
include "TicketClass.php";
$TicketTimer = new TicketLog($dbHost, $dbUser, $dbPwd, $dbName, date('Y-m-d'), "", "");
$result = $TicketTimer->Display();
?>
<html>
 <head>
    <?php 
include "header.php";
?>
   <script type="text/javascript">
	$(document).ready( function () {
	$('#TicketTimerDetails').dataTable({
		"iDisplayLength": 20,
		"iDisplayStart": 20
	});
//  alert("Ticket");  
    Ticket=setTimeout(function(){window.location.href=document.URL;},180000);					
	} );
    </script>
 </head>
 <body>
 <?php 
include "Menu.php";
?>
   <div class="positionDownload"><a href="TicketTimerDownload.php">Download<a/></div><br/>
   <div class="TableTitle TableDetails">Ticket Log Details</div><hr/>   
   <table id="TicketTimerDetails" class="display">
		<thead>
<?php

include "DBconfig.php";
include "TicketClass.php";
$Tfrm_dte = $_GET['fdate'];
$Tto_dte = $_GET['tdate'];
$TicketHistory = new TicketLog($dbHost, $dbUser, $dbPwd, $dbName, '', $Tfrm_dte, $Tto_dte);
$result = $TicketHistory->Display();
?>
<html>
 <head>
    <?php 
include "header.php";
?>
      <script type="text/javascript">
		$(document).ready( function () {
    		$('#TicketHistoryDetails').dataTable({
				"iDisplayLength": 20,
				"iDisplayStart": 20
			});			
		} );
   </script>
   
 </head>
 <body>
   <?php 
include "Menu.php";
?>
   <div class="positionDownload"><a href="TicketTimerDownload.php?Tfdate=<?php 
echo $Tfrm_dte;
?>