<?php if (!isset($_SESSION['FirstName'])) {
	session_start();
}
//require_once ('includes/mysql_connect.php');

    include ('includes/db1config.php');
    include ('../includes/mysql_connect.php');
    include ('menudatabase.php');

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="90" />
<?php include('title.php'); ?>

<link href="css/main_style.css" rel="stylesheet" type="text/css" media="screen" />
<link href="css/print_style.css" rel="stylesheet" type="text/css" media="print" />

<link rel="stylesheet" type="text/css" href="css/cssverticalmenu.css" />


</head>
<body id="live-order-page">

<div id="wrapper">

<!-- start header -->
<?php include('includes/header.inc.php'); ?>
<!-- end header-->


<!-- start page -->
<div id="page-container-nobg">
<div id="page-bg-top">

   
	<!-- start content -->
<div id="content-one-column" class="live-order">
   
		<div class="post">
		  <div class="entry">
          <div id="live-order-top">
				<h1>Online Order System</h1>
                
<?php 
if($_SESSION['adminkey']=="security"){
  echo '<center><i>Auto-refresh occurs every 90 seconds, or use button to refresh immediately.</i><br /><form action="' . $_SERVER['PHP_SELF'] . '" method="post"><input id="save-button" type="submit" value="Refresh"></form>';    
include "liveorderssub.php";
	echo"</center>";
} else {
	echo '<div id="live-order-top"><font color="red"><center>You are not authorized to view this page. <br />Please <a href="index.php"><font color="blue">login here</font></a>.</center></font></div>';

}?>            
       

</div><!-- end entry-->



</div><!-- end post-->
    


<div style="clear: both;">&nbsp;</div>
<div id="page-bg-btm">
</div><!-- end page-bg-btm div -->
</div><!-- end page-bg-top div -->
</div><!-- end page-container -->



</div><!-- end wrapper div-->

<!-- end page -->


<!--footer-->



</body>
</html>
