213 lines
5.8 KiB
PHP
213 lines
5.8 KiB
PHP
|
<?php
|
||
|
header("Expires: Tue, 01 Jan 2000 00:00:00 GMT");
|
||
|
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
|
||
|
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
|
||
|
header("Cache-Control: post-check=0, pre-check=0", false);
|
||
|
header("Pragma: no-cache");
|
||
|
clearstatcache();
|
||
|
error_reporting(E_ERROR | E_PARSE);
|
||
|
|
||
|
?>
|
||
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||
|
<meta charset="utf-8" />
|
||
|
|
||
|
<meta name="description" content="" />
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
|
||
|
|
||
|
<?php
|
||
|
include ('includes/config/config.php');
|
||
|
include_once ("includes/functions.php");
|
||
|
include_once("includes/cached_functions.php");
|
||
|
include_once("log_entry.php");
|
||
|
|
||
|
$__currentPage = $_SERVER['REQUEST_URI'];
|
||
|
$__currentPage = substr($__currentPage, strripos($__currentPage, "/") + 1, strlen($__currentPage));
|
||
|
|
||
|
$sql_menu= "select menu_id from menu_master where upper(menu_id)=upper('".$__currentPage."')";
|
||
|
$result_menu = mysqli_query($conn,$sql_menu);
|
||
|
|
||
|
if($row_menu = mysqli_fetch_array($result_menu)){
|
||
|
if (isset($row_menu['menu_id']) && $row_menu['menu_id']!= ''){
|
||
|
$_SESSION['menu_key'] = $row_menu['menu_id'];
|
||
|
}
|
||
|
}
|
||
|
|
||
|
$_SESSION['menu_current_page'] = $__currentPage;
|
||
|
|
||
|
error_reporting(E_ERROR | E_PARSE);
|
||
|
include_once ('access.php');
|
||
|
$top_user = $_SESSION['username'];
|
||
|
|
||
|
// echo "top_user:".$top_user.":Manoj";
|
||
|
|
||
|
if ($top_user == null || $top_user = '') {
|
||
|
// ini_set('session.gc_maxlifetime', 36000);
|
||
|
// session_set_cookie_params(36000);
|
||
|
session_start();
|
||
|
|
||
|
session_unset();
|
||
|
|
||
|
session_destroy();
|
||
|
|
||
|
header("location:index.php");
|
||
|
|
||
|
exit();
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
?>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<head>
|
||
|
<title>OHCTech | Occupational Health System</title>
|
||
|
|
||
|
<script src="includes/css-js/functions.js"></script>
|
||
|
|
||
|
<!-- bootstrap & fontawesome -->
|
||
|
<link rel="stylesheet"
|
||
|
href="assets/font-awesome/4.5.0/css/font-awesome.min.css" />
|
||
|
<link rel="stylesheet" href="assets/css/bootstrap.min.css" />
|
||
|
<link rel="stylesheet" type="text/css"
|
||
|
href="css/bootstrap-dialog.min.css" />
|
||
|
<link href="css/flexigrid.css" rel="stylesheet" />
|
||
|
<link rel="stylesheet" type="text/css"
|
||
|
href="css/bootstrap-theme.min.css" />
|
||
|
<link rel="stylesheet" type="text/css"
|
||
|
href="css/bootstrap-datepicker.css" />
|
||
|
<link rel="stylesheet" href="adminLte/bower_components/ionicons/css/ionicons.min.css">
|
||
|
<link rel="stylesheet" href="adminLte/bower_components/jvectormap/jquery-jvectormap.css">
|
||
|
<link rel="stylesheet" href="https://demos.creative-tim.com/material-bootstrap-wizard/assets/js/material-bootstrap-wizard.js">
|
||
|
|
||
|
|
||
|
|
||
|
<!-- page specific plugin styles -->
|
||
|
|
||
|
<!-- text fonts -->
|
||
|
<link rel="stylesheet" href="assets/css/fonts.googleapis.com.css" />
|
||
|
|
||
|
<!-- ace styles -->
|
||
|
<link rel="stylesheet" href="assets/css/ace.min.css"
|
||
|
class="ace-main-stylesheet" id="main-ace-style" />
|
||
|
<link rel="stylesheet" href="assets/css/ace-skins.min.css" />
|
||
|
<link rel="stylesheet" href="assets/css/ace-rtl.min.css" />
|
||
|
<script src="assets/js/jquery-2.1.4.min.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
if ('ontouchstart' in document.documentElement)
|
||
|
document.write("<script src='assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
|
||
|
</script>
|
||
|
<script src="assets/js/bootstrap.min.js"></script>
|
||
|
|
||
|
<!-- page specific plugin scripts -->
|
||
|
<script src="assets/js/jquery-ui.custom.min.js"></script>
|
||
|
<script src="assets/js/jquery.ui.touch-punch.min.js"></script>
|
||
|
<script src="assets/js/jquery.easypiechart.min.js"></script>
|
||
|
<script src="assets/js/jquery.sparkline.index.min.js"></script>
|
||
|
<script src="assets/js/jquery.flot.min.js"></script>
|
||
|
<script src="assets/js/jquery.flot.pie.min.js"></script>
|
||
|
<script src="assets/js/jquery.flot.resize.min.js"></script>
|
||
|
<script src="assets/js/autosize.min.js"></script>
|
||
|
<!-- ace scripts -->
|
||
|
<script src="assets/js/ace-elements.min.js"></script>
|
||
|
<script src="assets/js/ace.min.js"></script>
|
||
|
|
||
|
<!-- inline scripts related to this page -->
|
||
|
<script type="text/javascript" src="js/bootstrap-filestyle.min.js" /></script>
|
||
|
|
||
|
<script type="text/javascript" src="js/bootstrap-dialog.min.js" /></script>
|
||
|
|
||
|
<script type="text/javascript" src="js/bootstrap-datepicker.js" /></script>
|
||
|
<script type="text/javascript" src="js/jquery.dataTables.min.js" /></script>
|
||
|
<!-- ace settings handler -->
|
||
|
<script src="assets/js/ace-extra.min.js"></script>
|
||
|
<!--online css-->
|
||
|
<link rel="stylesheet"
|
||
|
href="assets/font-awesome/4.5.0/css/font-awesome.min.css">
|
||
|
|
||
|
<script src="js/jquery-migrate.js"></script>
|
||
|
<script src="js/flexigrid.js" langugage="Javascript" /></script>
|
||
|
<script src="js/ohctech.js"></script>
|
||
|
|
||
|
<style>
|
||
|
.box {
|
||
|
position: relative;
|
||
|
border-radius: 3px;
|
||
|
background: #ffffff;
|
||
|
border-top: 3px solid #d2d6de;
|
||
|
margin-bottom: 20px;
|
||
|
width: 100%;
|
||
|
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
||
|
}
|
||
|
|
||
|
.box.box-info {
|
||
|
border-top-color: #00c0ef;
|
||
|
}
|
||
|
|
||
|
.box.box-danger {
|
||
|
border-top-color: #dd4b39;
|
||
|
}
|
||
|
|
||
|
.box.modal-greytop {
|
||
|
border-top-color: #d2d6de;
|
||
|
}
|
||
|
|
||
|
.box.box-success {
|
||
|
border-top-color: #3C8DBC;
|
||
|
}
|
||
|
|
||
|
.box.box-warning {
|
||
|
border-top-color: #f39c12;
|
||
|
}
|
||
|
|
||
|
.box.box-primary {
|
||
|
border-top-color: #3c8dbc;
|
||
|
}
|
||
|
|
||
|
.box-header {
|
||
|
color: #444;
|
||
|
display: block;
|
||
|
padding: 10px;
|
||
|
position: relative;
|
||
|
}
|
||
|
.box-header.with-border {
|
||
|
border-bottom: 1px solid #f4f4f4;
|
||
|
}
|
||
|
.box-header>.fa, .box-header>.glyphicon, .box-header>.ion, .box-header .box-title {
|
||
|
display: inline-block;
|
||
|
font-size: 18px;
|
||
|
margin: 0;
|
||
|
line-height: 1;
|
||
|
}
|
||
|
.box-footer {
|
||
|
border-top-left-radius: 0;
|
||
|
border-top-right-radius: 0;
|
||
|
border-bottom-right-radius: 3px;
|
||
|
border-bottom-left-radius: 3px;
|
||
|
border-top: 1px solid #f4f4f4;
|
||
|
padding: 10px;
|
||
|
background-color: #fff;
|
||
|
}
|
||
|
.box-body {
|
||
|
border-top-left-radius: 0;
|
||
|
border-top-right-radius: 0;
|
||
|
border-bottom-right-radius: 3px;
|
||
|
border-bottom-left-radius: 3px;
|
||
|
padding: 10px;
|
||
|
}
|
||
|
.modal-title{
|
||
|
font-size: 16px;
|
||
|
font-weight:700;
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
</head>
|
||
|
<body class="no-skin sidebar-collapse">
|
||
|
|