ok

Mini Shell

Direktori : /home2/selectio/www/pvmatricschool.com/admin/
Upload File :
Current File : /home2/selectio/www/pvmatricschool.com/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">PV</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=="event-news.php" || $current_page=="index-content-add.php"|| $current_page=="event-type-edit.php"){echo "active";}?>">
						<a href="#">
						<i class="bi bi-calendar-event"></i>
						<span>News & Events</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=="event-news.php" ){echo "active";}?>" ><a href="event-news.php"><i class="bi bi-calendar-event"></i> <span>News & Events  List</span></a></li>
							<?php } ?> 
							<?php if($_SESSION['hrm']['id']==1 || $allPermissions['gallery']['create']==1){ ?>
							<li class="mm_manage_cash <?php if($current_page=="index-content-add.php"){echo "active";}?>"><a href="index-content-add.php"><i class="bi bi-calendar-event"></i> <span>Add News & Events</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=="banner.php" || $current_page=="banner-add.php"|| $current_page=="banner-edit.php"){echo "active";}?>">
						<a href="#">
						<i class="bi bi-images"></i>
						<span>Banner</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=="banner.php" ){echo "active";}?>" ><a href="banner.php"><i class="bi bi-images"></i> <span>Banner List</span></a></li>
							<?php } ?> 
							<?php if($_SESSION['hrm']['id']==1 || $allPermissions['gallery']['create']==1){ ?>
							<li class="mm_manage_cash <?php if($current_page=="banner-add.php"){echo "active";}?>"><a href="banner-add.php"><i class="bi bi-images"></i> <span>Add Banner</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=="committee.php" || $current_page=="committee-add.php"|| $current_page=="committee-edit.php"){echo "active";}?>">
						<a href="#">
						<i class="bi bi-people"></i>
						<span>Committee</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=="committee.php" ){echo "active";}?>" ><a href="committee.php"><i class="bi bi-people"></i> <span>Committee List</span></a></li>
							<?php } ?> 
							<?php if($_SESSION['hrm']['id']==1 || $allPermissions['gallery']['create']==1){ ?>
							<li class="mm_manage_cash <?php if($current_page=="committee-add.php"){echo "active";}?>"><a href="committee-add.php"><i class="bi bi-people"></i> <span>Add Committee</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=="extra-curi.php" || $current_page=="extra-curi-add.php"|| $current_page=="extra-curi-edit.php"){echo "active";}?>">
						<a href="#">
						<i class="bi bi-music-note-list"></i>
						<span>Extra Curricular</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=="extra-curi.php" ){echo "active";}?>" ><a href="extra-curi.php"><i class="bi bi-music-note-list"></i> <span>Extra Curricular List</span></a></li>
							<?php } ?> 
							<?php if($_SESSION['hrm']['id']==1 || $allPermissions['gallery']['create']==1){ ?>
							<li class="mm_manage_cash <?php if($current_page=="extra-curi-add.php"){echo "active";}?>"><a href="extra-curi-add.php"><i class="bi bi-music-note-list"></i> <span>Add Extra Curricular</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=="result.php" || $current_page=="result-add.php"|| $current_page=="result-edit.php"){echo "active";}?>">
						<a href="#">
						<i class="bi bi-clipboard2-data"></i>
						<span>Results</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=="result.php" ){echo "active";}?>" ><a href="result.php"><i class="bi bi-clipboard2-data"></i> <span>Result List</span></a></li>
							<?php } ?> 
							<?php if($_SESSION['hrm']['id']==1 || $allPermissions['gallery']['create']==1){ ?>
							<li class="mm_manage_cash <?php if($current_page=="result-add.php"){echo "active";}?>"><a href="result-add.php"><i class="bi bi-clipboard2-data"></i> <span>Add Result</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=="video.php" || $current_page=="video-add.php"|| $current_page=="video-edit.php"){echo "active";}?>">
						<a href="#">
						<i class="bi bi-youtube"></i>
						<span>Video Presentation</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=="video.php" ){echo "active";}?>" ><a href="video.php"><i class="bi bi-youtube"></i> <span>video List</span></a></li>
							<?php } ?> 
							<?php if($_SESSION['hrm']['id']==1 || $allPermissions['gallery']['create']==1){ ?>
							<li class="mm_manage_cash <?php if($current_page=="video-add.php"){echo "active";}?>"><a href="video-add.php"><i class="bi bi-youtube"></i> <span>Add video</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=="skill.php" || $current_page=="skill-add.php"|| $current_page=="skill-edit.php"){echo "active";}?>">
						<a href="#">
						<i class="bi bi-book"></i>
						<span>Our Skill</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=="skill.php" ){echo "active";}?>" ><a href="skill.php"><i class="bi bi-book"></i> <span>Skill List</span></a></li>
							<?php } ?> 
							<?php if($_SESSION['hrm']['id']==1 || $allPermissions['gallery']['create']==1){ ?>
							<li class="mm_manage_cash <?php if($current_page=="skill-add.php"){echo "active";}?>"><a href="skill-add.php"><i class="bi bi-book"></i> <span>Add Skill</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