File "header.php"

Full Path: /home/ichhrkpd/public_html/idcm/application/views/header.php
File size: 13.07 KB
MIME-type: text/html
Charset: utf-8

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <?php 
    	$title="IDCM";
    	$sub_title = isset($sub_title)?$sub_title:"";
    	$image_link=base_url()."img/admin/user.png";
    	
    	$uType = $this->session->GetCurrentUserType();
    	
    	//GPrint("User Type:".$uType);
    	
    	if($uType == 'AD'){
    		$image_link=base_url()."img/admin/user.png";
    		$userData = $this->session->GetAdminData();
    		$imageId = $userData->admin_pid;
    		$fname = $userData->fname;
    		$lname = $userData->lname;
	    	if(file_exists(BASEPATH."../img/admin/".$imageId.".jpg")){
	    		$image_link=base_url()."img/admin/".$imageId.".jpg?v=".filemtime(BASEPATH."../img/admin/".$imageId.".jpg");
	    	}
    	}
    	
    	$role = $this->session->GetAdminData ()->role;
    	$admin_pid = $this->session->GetAdminData ()->admin_pid;
    	
    	/*GPrint($this->session->GetAdminData ());die;
    	 (
    	 		[admin_pid] => 1
    	 		[email] => test@gmail.com
    	 		[fname] => Thahir
    	 		[lname] => Basha
    	 		[title] => Engg
    	 		[role] => A
    	 		[LoggedIn] => 1*/
    ?>
    <title><?php echo $title;?></title> 
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="shortcut icon" href="<?php echo base_url();?>img/idc-logo.ico">
    <!-- Bootstrap 3.3.5 -->
    <link rel="stylesheet" href="<?php echo base_url();?>lib/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="<?php echo base_url();?>lib/bootstrap/css/bootstrap-timepicker.min.css">
    
    
    <link rel="stylesheet" href="<?php echo base_url();?>lib/bootstrap/css/dataTables.bootstrap.min.css">
    <link rel="stylesheet" href="<?php echo base_url();?>lib/bootstrap/css/jquery-ui.min.css">
    <!-- Font Awesome 
    	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
    -->
     <link rel="stylesheet" href="<?php echo base_url();?>lib/bootstrap/css/font-awesome.min.css">
    <!-- Ionicons 
   		 <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
   		  <link rel="stylesheet" href="<?php //echo base_url();?>/lib/bootstrap/css/ionicons2.min.css">
    -->
    
     <link rel="stylesheet" href="<?php echo base_url();?>lib/ionicons-2.0.1/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="<?php echo base_url();?>lib/theme/css/AdminLTE.css">
    <link rel="stylesheet" href="<?php echo base_url();?>css/main.css">
    
    
    
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="<?php echo base_url();?>lib/theme/css/skins/_all-skins.min.css">
    
    
    <!-- iCheck -->
    <link rel="stylesheet" href="<?php echo base_url();?>lib/plugins/iCheck/flat/blue.css">
    <!-- Morris chart -->
    <link rel="stylesheet" href="<?php echo base_url();?>lib/plugins/morris/morris.css">
    <!-- jvectormap -->
    <link rel="stylesheet" href="<?php echo base_url();?>lib/plugins/jvectormap/jquery-jvectormap-1.2.2.css">
    <!-- Date Picker -->
    <link rel="stylesheet" href="<?php echo base_url();?>lib/plugins/datepicker/datepicker3.css">
    <!-- Daterange picker -->
     <link rel="stylesheet" href="<?php echo base_url();?>lib/plugins/daterangepicker/daterangepicker-bs3.css">
      <link rel="stylesheet" href="<?php echo base_url();?>lib/plugins/select2/select2.min.css">
     
    
     
    <!-- bootstrap wysihtml5 - text editor -->
    <link rel="stylesheet" href="<?php echo base_url();?>lib/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
    
    <link rel="stylesheet" href="<?php echo base_url();?>lib/plugins/fullcalendar/fullcalendar.min.css">
    <link rel="stylesheet" href="<?php echo base_url();?>lib/plugins/fullcalendar/fullcalendar.print.css" media="print">
     <!-- <link rel="stylesheet" href="<?php echo base_url();?>css/AdminLTE.min.css">-->
    
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
	<script src="<?php echo base_url();?>js/jquery-2.1.3.min.js"></script>
	  <!--	<script src="<?php echo base_url();?>js/app.min.js"></script>-->
	
  </head>
  <body class="hold-transition skin-blue sidebar-mini">
    <div class="wrapper">

      <header class="main-header">
        <!-- Logo -->
        <a href="#" class="logo">
          <!-- mini logo for sidebar mini 50x50 pixels 
          <span class="logo-mini"><b>A</b>LT</span>-->
          <!-- logo for regular state and mobile devices -->
          <span class="logo-lg"><b><?php //echo date("Y"). " ";?>IDCM</b></span>
        </a>
        <!-- Header Navbar: style can be found in header.less -->
        <nav class="navbar navbar-static-top" role="navigation">
          <!-- Sidebar toggle button-->
          <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
          </a>
          <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">
             <?php /*?>
              <!-- Messages: style can be found in dropdown.less-->
              <li class="dropdown messages-menu">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                  <i class="fa fa-envelope-o"></i>
                  <span class="label label-success">4</span>
                </a>
                <ul class="dropdown-menu">
                  <li class="header">You have 4 messages</li>
                  
                  <li class="footer"><a href="#">See All Messages</a></li>
                </ul>
              </li>
              <!-- Notifications: style can be found in dropdown.less -->
              <li class="dropdown notifications-menu">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                  <i class="fa fa-bell-o"></i>
                  <span class="label label-warning">10</span>
                </a>
                <ul class="dropdown-menu">
                  <li class="header">You have 10 notifications</li>
                  <li class="footer"><a href="#">View all</a></li>
                </ul>
              </li>
              <?php */?>
              
              
              
              
              
              <!-- User Account: style can be found in dropdown.less -->
              <li class="dropdown user user-menu">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                  <img src="<?php echo $image_link;?>" class="user-image" alt="User Image">
                  <span class="hidden-xs"><?php  echo $fname. " " .$lname;;?></span>
                </a>
                <ul class="dropdown-menu">
                  <!-- User image -->
                  <li class="user-header">
                    <img src="<?php echo $image_link;?>" class="img-circle" alt="User Image">
                    <p>
                      <?php echo $fname. " " .$lname;?>
                       <!--<small>Member since Nov. 2015</small>-->
                    </p>
                  </li>
                  <!-- Menu Body 
                  <li class="user-body">
                    <div class="col-xs-4 text-center">
                      <a href="#">Followers</a>
                    </div>
                    <div class="col-xs-4 text-center">
                      <a href="#">Sales</a>
                    </div>
                    <div class="col-xs-4 text-center">
                      <a href="#">Friends</a>
                    </div>
                  </li>-->
                  <!-- Menu Footer-->
                  <li class="user-footer">
                    <div class="pull-left">
                    <?php if(false && $uType == 'AD'){?>
                      <a href="<?php echo base_url();?>task/aprofile" class="btn btn-default btn-flat">Profile</a>
                    <?php }?> 
                    </div>
                    <div class="pull-right">
                      <a href="<?php echo base_url();?>admin/logout" class="btn btn-default btn-flat">Sign out</a>
                    </div>
                  </li>
                </ul>
              </li>
              <!-- Control Sidebar Toggle Button 
              <li>
                <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
              </li>-->
            </ul>
          </div>
        </nav>
      </header>
      <!-- Left side column. contains the logo and sidebar -->
      <aside class="main-sidebar">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
          <!-- Sidebar user panel -->
          <div class="user-panel">
            <div class="pull-left image">
              <img src="<?php echo $image_link;?>" class="img-circle" alt="User Image">
            </div>
            <div class="pull-left info">
              <p><?php echo $fname." " .$lname;?></p>
              <!--  <a href="#"><i class="fa fa-circle text-success"></i> Online</a>-->
            </div>
          </div>
          <!-- search form 
          <form action="#" method="get" class="sidebar-form">
            <div class="input-group">
              <input type="text" name="q" class="form-control" placeholder="Search...">
              <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i></button>
              </span>
            </div>
          </form>-->
  <?php 
	 $currentPage=$this->router->class."/".$this->router->method;
 
 ?>          
          
          <!-- /.search form -->
          <!-- sidebar menu: : style can be found in sidebar.less -->
          <ul class="sidebar-menu">
           <!-- <li class="header">MAIN NAVIGATION</li>-->
           
       <?php if($uType == 'AD' && $role == 'A'){ ?>
       
       <i class="fas fa-angle-right"></i>
           
           <li class="treeview <?php echo in_array($currentPage, array("admin/notice_board","admin/images","admin/events","admin/all_items","admin/teachers","admin/res_forms","admin/page_content","admin/add_edit_student"))?" active ":"";?>">
              <a href="#">
                <i class="fa fa-cogs"></i> <span>Site Manager</span> 
              </a>
              <ul class="treeview-menu">
                  <li class="<?php echo $currentPage=="admin/teachers"?" active ":""?>" ><a href="<?php echo site_url("admin/teachers")?>"><i class="fa fa-graduation-cap"></i> Teachers & Officers</a></li>
                <li class="<?php echo $currentPage=="admin/notice_board"?" active ":""?>" ><a href="<?php echo site_url("admin/notice_board")?>"><i class="fa fa-check-square-o"></i> Notice Board</a></li>
                
                <li class="<?php echo $currentPage=="admin/res_forms"?" active ":""?>" ><a href="<?php echo site_url("admin/res_forms")?>"><i class="fa fa-list"></i> Results & Forms</a></li>
                
                <li class="<?php echo $currentPage=="admin/images"?" active ":""?>" ><a href="<?php echo site_url("admin/images")?>"><i class="fa fa-picture-o"></i> Images</a></li>
                
                <li class="<?php echo $currentPage=="admin/events"?" active ":""?>" ><a href="<?php echo site_url("admin/events")?>"><i class="fa fa-calendar"></i> Events</a></li>
                
                <li class="<?php echo $currentPage=="admin/page_content"?" active ":""?>" ><a href="<?php echo site_url("admin/page_content")?>"><i class="fa fa-info-circle"></i> Page Content</a></li>
                
                
             </ul>
          </li>
          
           <li class="treeview <?php echo in_array($currentPage, array("admin/batches","admin/std_list","admin/student_form","admin/testimonial","admin/testimonial_others","admin/testimonial_others_form"))?" active ":"";?>">
              <a href="#">
                <i class="fa fa-users"></i> <span>Student Management</span> 
              </a>
              <ul class="treeview-menu">
                
                <li class="<?php echo $currentPage=="admin/batches"?" active ":""?>" ><a href="<?php echo site_url("admin/batches")?>"><i class="fa fa-list"></i> Batches</a></li>
                <li class="<?php echo $currentPage=="admin/testimonial"?" active ":""?>" ><a href="<?php echo site_url("admin/testimonial")?>"><i class="fa fa-list"></i> Testimonial (Database)</a></li>
                <li class="<?php echo $currentPage=="admin/testimonial_others"?" active ":""?>" ><a href="<?php echo site_url("admin/testimonial_others")?>"><i class="fa fa-list"></i> Testimonial (Others)</a></li>
                
                
             </ul>
          </li>          
          
            
            
       <?php }?>
       
       
                
          </ul>
        </section>
        <!-- /.sidebar -->
      </aside>