ok

Mini Shell

Direktori : /home2/selectio/public_html/obnovit-tracking/
Upload File :
Current File : /home2/selectio/public_html/obnovit-tracking/header.php

<?php 
ob_start();
session_start();
$base_url=""; $assets="assets/";$error=0;$warning=0;$message=0;$site_name=$_SESSION['setting']['name'];
$current_page=basename($_SERVER['PHP_SELF']);
include"config/config.php";

$logo=$_SESSION['setting']['logo'];
$theme_color="#5e4e35";
$theme_text_color="color:#5e4e35 ;";

if(!isset($_SESSION['hrm'])) {
	header('location: login.php'); 
	exit;
}else{
    //$allPermissions=$_SESSION['permission'];
}

?>

<html>
<head>
    <meta charset="UTF-8">
    <title>Dashboard |<?=$site_name?></title>
    <link rel="shortcut icon" href="logo/obnovit.png"/>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link href="<?= $assets ?>dist/css/styles.css" rel="stylesheet" type="text/css" />
    <script src="<?= $assets ?>plugins/jQuery/jQuery-2.1.4.min.js"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<style>
    .center-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
}
</style>
<body class="skin-blue fixed sidebar-mini" style="background:white;">
<div class="wrapper rtl rtl-inv">

    <header class="main-header">
        <a href="<?=$base_url?>" class="logo" style="background-color:<?=$theme_color?>">
                        <span class="logo-mini">TF</span>
            <span class="logo-lg"><b><?=$site_name?></b></span>
                    </a>
        <nav class="navbar navbar-static-top" role="navigation">
            <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </a>
<div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <li class="hidden-xs hidden-sm"><a href="#" class="clock"></a></li>
                    <li class="hidden-xs">
                        <a href="<?=$base_url?>" data-toggle="tooltip" data-placement="bottom" title="Dashboard"><i class="fa fa-dashboard"></i></a>
                    </li>
                     
                                                            <li class="dropdown user user-menu" style="padding-right:5px;">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="<?=$_SESSION['setting']['logo']?>" class="user-image" alt="Avatar" style="background: white;"/>
                            <span class="hidden-xs"><?=$_SESSION['hrm']['emp_name']?></span>
                        </a>
                        <ul class="dropdown-menu" style="padding-right:3px;">
                            <li class="user-header">
                                <img src="<?=$_SESSION['setting']['logo']?>" alt="Avatar" style="width: 220px;border:0px;" />
                                <p>
                                    <?=$_SESSION['hrm']['emp_name']?>                                   <small></small>
                                </p>
                            </li>
                            <li class="user-footer">
                                <div class="pull-left">
                                    <a href="" class="btn btn-warning btn-sm"><i class="fa fa-user" aria-hidden="true"></i> Profile</a>
                                </div>
                                <div class="pull-right">
                                    <a href="logout.php" class="btn btn-danger btn-sm sign_out"><i class="fa fa-sign-out" aria-hidden="true"></i> Sign Out</a>
                                </div>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
    </header>

 <aside class="main-sidebar">
        <section class="sidebar">
            <ul class="sidebar-menu">
                <!-- <li class="header">Main Navigation</li> -->

    <li class="mm_welcome <?php if($current_page=="index.php"){echo "active";}?>"><a href="index.php"><i class="fa fa-dashboard"></i> <span>Dashboard</span></a></li>
              
            
              
<?php if($_SESSION['hrm']['id']!=1){ ?>

    <li class="treeview mm_categories <?php if($current_page=="my-attendance.php"){echo "active";}?>">
        <a href="my-attendance.php">
            <i class="fa fa-users"></i>
            <span>My Attendance</span>
        </a>
    </li> 

 <?php }else{ ?>
    
    <li class="treeview mm_categories <?php if($current_page=="site.php" || $current_page=="site-add.php"|| $current_page=="employee-update.php"){echo "active";}?>">
        <a href="#">
            <i class="fa fa-users"></i>
            <span>Site</span>
            <i class="fa fa-angle-left pull-right"></i>
        </a>
        <ul class="treeview-menu">
          <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_expenses <?php if($current_page=="site.php" ){echo "active";}?>" ><a href="site.php"><i class="fa fa-user"></i> <span>List site</span></a></li><?php } ?> 
          <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_manage_cash <?php if($current_page=="site-add.php"){echo "active";}?>"><a href="site-add.php"><i class="fa fa-user-plus"></i> <span>Site Add</span></a></li><?php } ?> 
        </ul>
    </li> 
    
    <li class="treeview mm_categories <?php if($current_page=="attendance-list.php" || $current_page=="attendance-add.php"){echo "active";}?>">
        <a href="#">
            <i class="fa fa-users"></i>
            <span>Attendence</span>
            <i class="fa fa-angle-left pull-right"></i>
        </a>
        <ul class="treeview-menu">
          <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_expenses <?php if($current_page=="attendance-list.php" ){echo "active";}?>" ><a href="attendance-list.php"><i class="fa fa-user"></i> <span>List Attendence</span></a></li><?php } ?> 
          <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_manage_cash <?php if($current_page=="attendance-add.php"){echo "active";}?>"><a href="attendance-create.php"><i class="fa fa-user-plus"></i> <span>Attendence Update</span></a></li><?php } ?> 
        </ul>
    </li> 

    <li class="treeview mm_categories <?php if($current_page=="department-list.php" || $current_page=="department-add.php" || $current_page=="department-edit.php"){echo "active";}?>">
        <a href="#">
            <i class="fa fa-users"></i>
            <span>Department</span>
            <i class="fa fa-angle-left pull-right"></i>
        </a>
        <ul class="treeview-menu">
          <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_expenses <?php if($current_page=="department-list.php" ){echo "active";}?>" ><a href="department-list.php"><i class="fa fa-user"></i> <span>List Department</span></a></li><?php } ?> 
          <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_manage_cash <?php if($current_page=="department-add.php"){echo "active";}?>"><a href="department-add.php"><i class="fa fa-user-plus"></i> <span>Create Department</span></a></li><?php } ?> 
        </ul>
    </li> 
    
    
    
<?php } ?>




<?php if($_SESSION['hrm']['id']!=1){ ?> 

    <li class="treeview mm_categories <?php if($current_page=="my-payslip-list.php"){echo "active";}?>">
        <a href="my-payslip-list.php">
            <i class="fa fa-users"></i>
            <span>My Payslip List</span>
        </a>
    </li> 

<?php }else{ ?>
    <li class="treeview mm_categories <?php if($current_page=="products.php" || $current_page=="products-add.php"|| $current_page=="departement-update.php"){echo "active";}?>">
        <a href="#">
            <i class="fa fa-users"></i>
            <span>Products</span>
            <i class="fa fa-angle-left pull-right"></i>
        </a>
        <ul class="treeview-menu">
          <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_expenses <?php if($current_page=="products.php" ){echo "active";}?>" ><a href="products.php"><i class="fa fa-user"></i> <span>List Product's</span></a></li><?php } ?> 
          <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_manage_cash <?php if($current_page=="products-add.php"){echo "active";}?>"><a href="products-add.php"><i class="fa fa-user-plus"></i> <span>Create New Products</span></a></li><?php } ?> 
        </ul>
    </li> 
<?php } ?>

<?php if($_SESSION['hrm']['id']!=1){ ?> 

    <li class="treeview mm_categories <?php if($current_page=="my-payslip-list.php"){echo "active";}?>">
        <a href="my-payslip-list.php">
            <i class="fa fa-users"></i>
            <span>My Payslip List</span>
        </a>
    </li> 

<?php }else{ ?>
    <li class="treeview mm_categories <?php if($current_page=="employee.php" || $current_page=="employee-add.php" || $current_page=="employee-update.php"){echo "active";}?>">
        <a href="#">
            <i class="fa fa-users"></i>
            <span>Employee</span>
            <i class="fa fa-angle-left pull-right"></i>
        </a>
        <ul class="treeview-menu">
          <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_expenses <?php if($current_page=="employee.php" ){echo "active";}?>" ><a href="employee.php"><i class="fa fa-user"></i> <span>List Employee</span></a></li><?php } ?> 
          <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_manage_cash <?php if($current_page=="employee-add.php"){echo "active";}?>"><a href="employee-add.php"><i class="fa fa-user-plus"></i> <span>Create New Employee</span></a></li><?php } ?>
        </ul>
    </li> 
    
    <li class="treeview mm_categories <?php if($current_page=="reports.php" || $current_page=="employee-reports.php"){echo "active";}?>">
        <a href="#">
            <i class="fa fa-bar-chart"></i>
            <span>Reports</span>
            <i class="fa fa-angle-left pull-right"></i>
        </a>
        <ul class="treeview-menu">
          <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_expenses <?php if($current_page=="reports.php" ){echo "active";}?>" ><a href="reports.php"><i class="fa fa-circle-o"></i> <span>Reports</span></a></li><?php } ?> 
          <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_manage_cash <?php if($current_page=="employee-reports.php"){echo "active";}?>"><a href="employee-reports.php"><i class="fa fa-circle-o"></i> <span>Employee Reports</span></a></li><?php } ?> 
        </ul>
    </li>
    
    <!--<li class="mm_welcome <?php if($current_page=="reports.php"){echo "active";}?>"><a href="reports.php"><i class="fa fa-bar-chart"></i> <span>Reports</span></a></li>-->
<?php } ?>


 
 
 
 
 
 

                            </ul>
        </section>
    </aside>
   <script>
$( document ).ready(function() {
       $('.float-numbers').keypress(function(event) {
        if ((event.which != 46 || $(this).val().indexOf('.') != -1) && (event.which < 48 || event.which > 57)) {
            event.preventDefault();
        }
    });
});
   </script>

Zerion Mini Shell 1.0