<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php
include('../include/session.php');
?>

<!--style sheets-->
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="../css/tooltip.css" />
<link rel="stylesheet" href="../css/screen.css" />
<link rel="stylesheet" href="../css/gantti.css" />

<!--jscript-->
<script type="text/javascript" src="../jscript/tablesort.js"></script>
<script language="JavaScript" src="../jscript/tooltip.js"  type="text/javascript"></script> 

</head>

<?php

require('../include/gantti.php'); 
require('maintenance_planning_data.php'); 

date_default_timezone_set('UTC');
setlocale(LC_ALL, 'en_US');

$gantti = new Gantti($data, array(
  'title'      => 'Job card',
  'cellwidth'  => 18,
  'cellheight' => 25,
  'today'      => true
));

?>

<body onLoad="document.getElementById('vandaag').scrollIntoView();">
<?php
include ("../navigation/header.php");
$page_name = "Maintenance-main";
include ("../navigation/access.php");

if ($permission_num==1) {
	include ("../navigation/maintenance_sidebar.php");
?>

<div class="main_frame" style="height:auto;">
<div class="page_head_frame">
 <table width="800" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><label class="label_page_head">Maintenance planning</label></td>
            <td width="171" align="right">&nbsp;</td>
          </tr>
        </table>
      </div>
       
  <div class="page_inside_frame" style="min-height:500px; width:700px;">
  
  <?php echo $gantti ?>
</div>
  
</div>
</body>



<?php } else {
$_SESSION['denied_return'] = $_SESSION['location'];	
include ("../navigation/maintenance_sidebar.php");?>
	<body onload="accessdenied(); return false">
	</body>
<?php }
?>

<?php include ('../navigation/side_bar.php');?>
</html>