ok
Direktori : /home2/selectio/public_html/saew.in/admin/ |
Current File : /home2/selectio/public_html/saew.in/admin/header-1.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="images/icon.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){ } 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's</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> <?php } ?> <?php if($_SESSION['hrm']['id']!=1){ } else{ ?> <li class="treeview mm_categories <?php if($current_page=="departement.php" || $current_page=="departement-add.php"|| $current_page=="departement-update.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=="departement.php" ){echo "active";}?>" ><a href="departement.php"><i class="fa fa-user"></i> <span>List Department's</span></a></li><?php } ?> <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_manage_cash <?php if($current_page=="departement-add.php"){echo "active";}?>"><a href="departement-add.php"><i class="fa fa-user-plus"></i> <span>Create New Department</span></a></li><?php } ?> </ul> </li> <?php } ?> <?php if($_SESSION['hrm']['id']!=1){ } else{ ?> <li class="treeview mm_categories <?php if($current_page=="desgination.php" || $current_page=="desgination-add.php"|| $current_page=="desgination-update.php"){echo "active";}?>"> <a href="#"> <i class="fa fa-users"></i> <span>Designation</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=="desgination.php" ){echo "active";}?>" ><a href="desgination.php"><i class="fa fa-user"></i> <span>List Designation's</span></a></li><?php } ?> <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_manage_cash <?php if($current_page=="desgination-add.php"){echo "active";}?>"><a href="desgination-add.php"><i class="fa fa-user-plus"></i> <span>Create New Designation</span></a></li><?php } ?> </ul> </li> <?php } ?> <?php if($_SESSION['hrm']['id']!=1){ } else{ ?> <!--<li class="treeview mm_categories <?php if($current_page=="role.php" || $current_page=="role-create.php"|| $current_page=="employee-update.php"){echo "active";}?>">--> <!-- <a href="#">--> <!-- <i class="fa fa-users"></i>--> <!-- <span>Role Management</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=="role.php" ){echo "active";}?>" ><a href="role.php"><i class="fa fa-user"></i> <span>List Role's</span></a></li><?php } ?> --> <!-- <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_manage_cash <?php if($current_page=="role-create.php"){echo "active";}?>"><a href="role-create.php"><i class="fa fa-user-plus"></i> <span>Create New Role</span></a></li><?php } ?> --> <!-- </ul>--> <!--</li> --> <?php } ?> <?php if($_SESSION['hrm']['id']!=1){ } else{ ?> <li class="treeview mm_categories <?php if($current_page=="attendance.php" || $current_page=="daily-attendance.php.php"|| $current_page=="employee-update.php"){echo "active";}?>"> <a href="#"> <i class="fa fa-users"></i> <span>Attendance Management</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=="ownattendance.php" ){echo "active";}?>" ><a href="ownattendance.php"><i class="fa fa-user"></i> <span>Own Attendance</span></a></li><?php } ?> <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_expenses <?php if($current_page=="attendance.php" ){echo "active";}?>" ><a href="attendance.php"><i class="fa fa-user"></i> <span>List Attendance</span></a></li><?php } ?> <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_manage_cash <?php if($current_page=="daily-attendance.php.php"){echo "active";}?>"><a href="daily-attendance.php"><i class="fa fa-user-plus"></i> <span>Update Attendance</span></a></li><?php } ?> <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_manage_cash <?php if($current_page=="role-create.php"){echo "active";}?>"><a href="role-create.php"><i class="fa fa-user-plus"></i> <span>Bulk Upload Attendance</span></a></li><?php } ?> </ul> </li> <?php } ?> <?php if($_SESSION['hrm']['id']!=1){ } else{ ?> <li class="treeview mm_categories <?php if($current_page=="leave-request.php" || $current_page=="leave-request-add.php"|| $current_page=="leave-request-update.php"){echo "active";}?>"> <a href="#"> <i class="fa fa-users"></i> <span>Leave Management</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=="leave-request.php" ){echo "active";}?>" ><a href="leave-request.php"><i class="fa fa-user"></i> <span>List Request Leave</span></a></li><?php } ?> <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_manage_cash <?php if($current_page=="leave-request-add.php"){echo "active";}?>"><a href="leave-request-add.php"><i class="fa fa-user-plus"></i> <span>Apply For Leave</span></a></li><?php } ?> </ul> </li> <?php } ?> <?php if($_SESSION['hrm']['id']!=1){ } else{ ?> <li class="treeview mm_categories <?php if($current_page=="permision-request.php" || $current_page=="permision-request-add.php"|| $current_page=="permision-request-update.php"){echo "active";}?>"> <a href="#"> <i class="fa fa-users"></i> <span>Permission Management</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=="permision-request.php" ){echo "active";}?>" ><a href="permision-request.php"><i class="fa fa-user"></i> <span>List Request Permission</span></a></li><?php } ?> <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_manage_cash <?php if($current_page=="permision-request-add.php"){echo "active";}?>"><a href="permision-request-add.php"><i class="fa fa-user-plus"></i> <span>Apply For permission</span></a></li><?php } ?> </ul> </li> <?php } ?> <?php if($_SESSION['hrm']['id']!=1){ } else{ ?> <li class="treeview mm_categories <?php if($current_page=="pf-structure.php" || $current_page=="pf-structure-create.php"|| $current_page=="pf-structure-update.php"){echo "active";}?>"> <a href="#"> <i class="fa fa-users"></i> <span>Provident Fund (PF)</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=="pf-structure.php" ){echo "active";}?>" ><a href="pf-structure.php"><i class="fa fa-user"></i> <span>PF Structure</span></a></li><?php } ?> </ul> </li> <?php } ?> <?php if($_SESSION['hrm']['id']!=1){ } else{ ?> <!--<li class="treeview mm_categories <?php if($current_page=="employe.php" || $current_page=="employee-create.php"|| $current_page=="employee-update.php"){echo "active";}?>">--> <!-- <a href="#">--> <!-- <i class="fa fa-users"></i>--> <!-- <span>Advance or Loan</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=="role.php" ){echo "active";}?>" ><a href="role.php"><i class="fa fa-user"></i> <span>List Advance</span></a></li><?php } ?> --> <!-- <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_manage_cash <?php if($current_page=="role-create.php"){echo "active";}?>"><a href="role-create.php"><i class="fa fa-user-plus"></i> <span>Create New Advance</span></a></li><?php } ?> --> <!-- </ul>--> <!--</li> --> <?php } ?> <?php if($_SESSION['hrm']['id']!=1){ } else{ ?> <li class="treeview mm_categories <?php if($current_page=="create-new-payslip.php" || $current_page=="employee-create.php"|| $current_page=="employee-update.php"){echo "active";}?>"> <a href="#"> <i class="fa fa-users"></i> <span>Payslip</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=="payslip-list.php" ){echo "active";}?>" ><a href="payslip-list.php"><i class="fa fa-user"></i> <span>List Payslip</span></a></li><?php } ?> <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_manage_cash <?php if($current_page=="create-new-payslip.php"){echo "active";}?>"><a href="create-new-payslip.php"><i class="fa fa-user-plus"></i> <span>Create New Payslip</span></a></li><?php } ?> </ul> </li> <?php } ?> <?php if($_SESSION['hrm']['id']!=1){ } else{ ?> <li class="treeview mm_categories <?php if($current_page=="common-leave.php" || $current_page=="holidays.php"|| $current_page=="employee-update.php"){echo "active";}?>"> <a href="#"> <i class="fa fa-users"></i> <span>Settings</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=="employe.php" ){echo "active";}?>" ><a href="employe.php"><i class="fa fa-user"></i> <span>General Info</span></a></li><?php } ?> <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_manage_cash <?php if($current_page=="common-leave.php"){echo "active";}?>"><a href="common-leave.php"><i class="fa fa-user-plus"></i> <span>Common Leave's</span></a></li><?php } ?> <?php if($_SESSION['hrm']['id']==1 ){ ?><li class="mm_manage_cash <?php if($current_page=="holidays.php"){echo "active";}?>"><a href="holidays.php"><i class="fa fa-user-plus"></i> <span>Holidays</span></a></li><?php } ?> </ul> </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>