ok

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/home2/selectio/public_html/saew.in/admin/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/home2/selectio/public_html/saew.in/admin/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="#10152e";
	$theme_text_color="color:#10152e;";
	
	if(!isset($_SESSION['hrm'])) {
		header('location: login.php'); 
		exit;
	}else{
	    $allPermissions=$_SESSION['permission'];
	}
	
	
	/*Common Condition's*/
$tbl_branch="";
if($_SESSION['hrm']['id']!=1){
   
}
	
	?>
<html>
	<head>
		<meta charset="UTF-8">
		<title>Dashboard |<?=$site_name?></title>
		<link rel="shortcut icon" href="images/logo1 (1).gif"/>
		<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">
		<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
	</head>
	<style>
		.center-screen {
		display: flex;
		justify-content: center;
		align-items: center;
		text-align: center;
		min-height: 100vh;
		}
		.skin-blue .main-header .navbar {
   background-color: #2b80ec;
    border-bottom: 1px solid whitesmoke;
}
.skin-blue .sidebar-menu>li.active>a, .skin-blue .sidebar-menu>li:hover>a {
    color: white;
    background: #10152e;
    border-radius: 0px;
    border-left-color: #10152e;
}
	</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: #1572e8;">
			<span class="logo-mini">SAE</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="dropdown user user-menu" style="padding-right:5px;">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							    
							   <?php
								    if($_SESSION['hrm']['id']=='1'){
								        ?>
								        <img src="<?=$_SESSION['setting']['logo']?>" class="user-image" alt="Avatar" style="background: white;"/>
								       <?php 
								    }else{
								        ?>
								        <img src="<?=$_SESSION['hrm']['photo']?>" class="user-image" alt="Avatar" style="background: white;"/>
								        <?php
								    }
								    
								    
								    ?> 
							    
							    
							
							<span class="hidden-xs"><?=$_SESSION['hrm']['name']?></span>
							</a>
							<ul class="dropdown-menu" style="padding-right:3px;">
								<li class="user-header">
								    <?php
								    if($_SESSION['hrm']['id']=='1'){
								        ?>
								        <img src="<?=$_SESSION['setting']['logo']?>" alt="Avatar" style="width: 220px;border:0px;" />
								       <?php 
								    }else{
								        ?>
								        <img src="<?=$_SESSION['hrm']['photo']?>" alt="Avatar" style="width: 220px;border:0px;" />
								        <?php
								    }
								    
								    
								    ?>
								    
								    
									
									<p>
										<?=$_SESSION['hrm']['name']?>                                   <small></small>
									</p>
								</li>
								<li class="user-footer">
									<div class="pull-left">
										<a href="profile-edit.php" 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" style="background-color:#21243d!important;">
			<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 || $allPermissions['gallery']['read']==1 || $allPermissions['gallery']['create']==1 ){ ?>
				    <li class="treeview mm_categories <?php if($current_page=="gallery.php" || $current_page=="gallery-add.php"|| $current_page=="gallery-edit.php"){echo "active";}?>">
						<a href="#">
						<i class="bi bi-image"></i>
						<span>Gallery</span>
						<i class="fa fa-angle-left pull-right"></i>
						</a>
						<ul class="treeview-menu">
							<?php if($_SESSION['hrm']['id']==1 || $allPermissions['gallery']['read']==1){ ?>
							<li class="mm_expenses <?php if($current_page=="gallery.php" ){echo "active";}?>" ><a href="gallery.php"><i class="bi bi-image"></i> <span>Gallery List</span></a></li>
							<?php } ?> 
							<?php if($_SESSION['hrm']['id']==1 || $allPermissions['gallery']['create']==1){ ?>
							<li class="mm_manage_cash <?php if($current_page=="gallery-add.php"){echo "active";}?>"><a href="gallery-add.php"><i class="bi bi-image"></i> <span>Add New Gallery</span></a></li>
							<?php } ?> 
						</ul>
					</li>
				<?php } ?>
				
					<?php if($_SESSION['hrm']['id']==1 || $allPermissions['gallery']['read']==1 || $allPermissions['gallery']['create']==1 ){ ?>
				    <li class="treeview mm_categories <?php if($current_page=="client.php" || $current_page=="client-add.php"|| $current_page=="client-edit.php"){echo "active";}?>">
						<a href="#">
						<i class="bi bi-image"></i>
						<span>Client</span>
						<i class="fa fa-angle-left pull-right"></i>
						</a>
						<ul class="treeview-menu">
							<?php if($_SESSION['hrm']['id']==1 || $allPermissions['gallery']['read']==1){ ?>
							<li class="mm_expenses <?php if($current_page=="client.php" ){echo "active";}?>" ><a href="client.php"><i class="bi bi-image"></i> <span>Client List</span></a></li>
							<?php } ?> 
							<?php if($_SESSION['hrm']['id']==1 || $allPermissions['gallery']['create']==1){ ?>
							<li class="mm_manage_cash <?php if($current_page=="client-add.php"){echo "active";}?>"><a href="client-add.php"><i class="bi bi-image"></i> <span>Add New Client</span></a></li>
							<?php } ?>
							
						</ul>
					</li>
				<?php } ?>
				
				
			        	<?php if($_SESSION['hrm']['id']==1 || $allPermissions['gallery']['read']==1 || $allPermissions['gallery']['create']==1 ){ ?>
				    <li class="treeview mm_categories <?php if($current_page=="name.php" || $current_page=="name-add.php"|| $current_page=="name-edit.php"){echo "active";}?>">
						<a href="#">
						<i class="bi bi-image"></i>
						<span>Category</span>
						<i class="fa fa-angle-left pull-right"></i>
						</a>
						<ul class="treeview-menu">
							<?php if($_SESSION['hrm']['id']==1 || $allPermissions['gallery']['create']==1){ ?>
							<li class="mm_manage_cash <?php if($current_page=="client-category.php"){echo "active";}?>"><a href="client-category.php"><i class="bi bi-image"></i> <span>Category</span></a></li>
							<?php } ?>
							<?php if($_SESSION['hrm']['id']==1 || $allPermissions['gallery']['create']==1){ ?>
							<li class="mm_manage_cash <?php if($current_page=="name-category.php"){echo "active";}?>"><a href="name-category.php"><i class="bi bi-image"></i> <span>Name</span></a></li>
							<?php } ?>
						</ul>
					</li>
				<?php } ?>
				
					<?php if($_SESSION['hrm']['id']==1 || $allPermissions['gallery']['read']==1 || $allPermissions['gallery']['create']==1 ){ ?>
				    <li class="treeview mm_categories <?php if($current_page=="going-project.php" || $current_page=="project-add.php"|| $current_page=="project-add.php"){echo "active";}?>">
						<a href="#">
						<i class="bi bi-calendar-event"></i>
						<span>On Going Project</span>
						<i class="fa fa-angle-left pull-right"></i>
						</a>
						<ul class="treeview-menu">
							<?php if($_SESSION['hrm']['id']==1 || $allPermissions['gallery']['read']==1){ ?>
							<li class="mm_expenses <?php if($current_page=="going-project.php" ){echo "active";}?>" ><a href="going-project.php"><i class="bi bi-calendar-event"></i> <span>On Going Project  List</span></a></li>
							<?php } ?> 
							<?php if($_SESSION['hrm']['id']==1 || $allPermissions['gallery']['create']==1){ ?>
							<li class="mm_manage_cash <?php if($current_page=="project-add.php"){echo "active";}?>"><a href="project-add.php"><i class="bi bi-calendar-event"></i> <span>Add Project & Events</span></a></li>
							<?php } ?> 
						</ul>
					</li>
				<?php } ?>
				
		
			</ul>
			</section>
		</aside>
		<script>
			setInterval(function(){ 
			    $.ajax({
			            url: 'api/api-leave-requesting.php',
			            type: 'post',
			            data: {type:'error_log'},
			            dataType: 'json',
			             success:function(response){
			                 $('#leave_requesting_count').empty();
			               if(response[0]['count']!=0){ $('#leave_requesting_count').text(response[0]['count']);}
			               
			               
			               if(response[0]['counts']==1){
			                   $('#checkin_li').hide();
			                   $('#checkout_li').show();
			               }else{
			                   $('#checkin_li').show();
			                   $('#checkout_li').hide();
			               }
			               
			            }
			    
			        });    
			}, 500);
		</script>
		<style>
			.blinking{
			animation:blinkingText 1.0s infinite;
			}
			@keyframes blinkingText{
			0%{		color: green;	}
			40%{	color: yellow;	}
			50%{	color: pink;	}
			99%{	color:red;	}
			100%{	color: #000;	}
			}
		</style>
		<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