HEX
Server: Apache/2.4.41 (Amazon) OpenSSL/1.0.2k-fips PHP/5.6.40
System: Linux ip-172-31-40-18 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64
User: apache (48)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /var/www/html/pmw24/app/application/views/admin/layouts/header_03_01_updated.php
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Punjab motor works</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="icon" type="image/png" sizes="32x32" href="<?php echo base_url()?>/public/admin_assets/images/favicon-32x32.png">
  <!-- Bootstrap 3.3.6 -->
  <link rel="stylesheet" href="<?php echo base_url()?>/public/admin_assets/bootstrap/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
  <link rel="stylesheet" href="<?php echo base_url()?>/public/admin_assets/plugins/datatables/dataTables.bootstrap.css">
  <link rel="stylesheet" href="<?php echo base_url()?>/public/admin_assets/plugins/datatables/buttons.dataTables.min.css">
  <link rel="stylesheet" href="<?php echo base_url()?>public/admin_assets/plugins/select2/select2.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="<?php echo base_url()?>/public/admin_assets/dist/css/AdminLTE.min.css">
  <link rel="stylesheet" href="<?php echo base_url()?>/public/admin_assets/dist/css/skins/_all-skins.min.css">
  <!--[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]-->
  <style>
  .mtbresize {
    margin: 0 auto;
    width: 800px;
  }
  .error{color:red;}
  .cstm_view{
	font-size:20px;
	}
   .hite{
	   height:50px;
	   width:900px;
   }
   .superr{
	   color:red;
	   font-size:18px;
	   top: -.1px;
   }
   .headre{
       color: #fff;
    position: absolute;
    left: 0;
    right: 0;
    top: 9px;
    text-align: center;
    font-size: 19px;
    font-weight: 700;
   }
.admin_tab ul{padding-left:0;}
.admin_tab ul li{display:inline-block;list-style:none;width:9%;text-align:center;}
.admin_tab ul li a{color:#fff;background:#367fa9;padding:6px 12px;border-radius:3px;display:block;margin-right:10px;}
.admin_tab ul li a:hover{background:#367fa9;}
.admin-tab-wrapper{padding:7px 10px;background:#fff;}
</style>
<!-- jQuery 2.2.3 -->
<script src="<?php echo base_url()?>/public/admin_assets/plugins/jQuery/jquery-2.2.3.min.js"></script>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

  <header class="main-header">

    <!-- Logo -->
    <a href="<?php echo base_url('admin');?>" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><b>A</b>DP</span>
      <!-- logo for regular state and mobile devices -->
      <img src="<?php echo base_url().'public/admin_assets/images/Logo.png';?>" style="width:35px;">
    </a>
    
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
      <!-- Sidebar toggle button-->
      <!--<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>-->
       <span class="headre">Punjab motor works </span>
      <!-- Navbar Right Menu -->
	<div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
		<li class="dropdown notifications-menu">
			<?php
				$date = date('Y-m-d');
				//$date = '2018-11-28';
				$CI =& get_instance();
				$CI->db->select('*');
				$CI->db->from('job_service_date');
				$CI->db->join('job','job.job_id=job_service_date.job_id','left');
				$CI->db->join('car','car.car_id=job_service_date.car_id','left');
				$where = "next_service_date='".$date."' OR next_service_date_reminder_before_seven='".$date."' OR next_service_date_before_three='".$date."'";			
				$CI->db->where($where);				
				$query=$CI->db->get();
				$jobs = $query->result_array();			


        ////////notification for accept reject////////////////////////////////////////////////////////////

        // $CI1 =& get_instance();
        // $CI1->db->select('*');
        // $CI1->db->from('notification');	
        // $where1 = "is_read='0'";      
        // $CI1->db->where($where1); 
        // $query1=$CI1->db->get();
        // $notification = $query1->result_array(); 
        // $notification_count=count($notification)+count($jobs);
				
			?>
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <i class="fa fa-bell-o"></i>
              <span class="label label-warning">0<?php //echo $notification_count;?></span>
            </a>
            <ul class="dropdown-menu" style="width: auto; height: auto !important;">
			
              <li class="header">You have 0<?php //echo $notification_count; ?> notifications</li>
              <li>
                <!-- inner menu: contains the actual data -->
                <ul class="menu">
                  // <?php foreach($notification as $noti){
                  //   if($noti['type']==2)
                  //   {
                  //     $link=base_url('admin/job/rejectlist/'.$noti['details_id']);
                  //   }
                  //   else
                  //   {
                  //     $link=base_url('admin/job/');
                  //   }
                    ?>
                  <!-- <li>
                    <a href="<?php echo $link; ?>">
                      <i class="fa fa-lightbulb-o"></i> <?php echo $noti['description'];?>
                    </a>
                  </li> -->
                 
        <?php // } ?>
				<?php foreach($jobs as $job){?>
				<li>
                    <a href="#">
                      <i class="fa fa-lightbulb-o"></i> <?php echo $job['car_no'];?>(<?php echo $job['service_date'];?>)
                    </a>
                  </li>
                  <!-- <li>
                    <a href="#">
                      <i class="fa fa-users text-aqua"></i> 5 new members joined today
                    </a>
                  </li>
                  <li>
                    <a href="#">
                      <i class="fa fa-warning text-yellow"></i> Very long description here that may not fit into the
                      page and may cause design problems
                    </a>
                  </li>
                  <li>
                    <a href="#">
                      <i class="fa fa-users text-red"></i> 5 new members joined
                    </a>
                  </li>
                  <li>
                    <a href="#">
                      <i class="fa fa-shopping-cart text-green"></i> 25 sales made
                    </a>
                  </li>
                  <li>
                    <a href="#">
                      <i class="fa fa-user text-red"></i> You changed your username
                    </a>
                  </li> -->
				<?php } ?>
                </ul>
              </li>
             
            </ul>
          </li>
        <?php $admin=$this->session->userdata('admin'); ?>
         <li class="dropdown user user-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
            <?php if(!empty($admin['profile_image'])){?>
            <img src="<?php echo base_url()?>public/admin_assets/images/profilepics/<?php echo $admin['profile_image'];?>" class="user-image" alt="User Image">
            <?php }else{?>
            <img src="<?php echo base_url()?>public/admin_assets/images/profilepics/Dummy.jpg?>" class="user-image" alt="User Image">
            <?php }?>
              <span class="hidden-xs"><?php echo $admin['name'];?></span>
            </a>
            <ul class="dropdown-menu">
            
              <li class="user-header">
                <?php if(!empty($admin['profile_image'])){?>
                <img src="<?php echo base_url()?>public/admin_assets/images/profilepics/<?php echo $admin['profile_image'];?>" class="img-circle" alt="User Image">
                <?php }else{?>
                <img src="<?php echo base_url()?>public/admin_assets/images/profilepics/Dummy.jpg" class="img-circle" alt="User Image">
                <?php }?>
                <p>
                  <?php echo $admin['name'];?>
                  <small><?php echo $admin['email'];?></small>
                </p>
              </li>
             
             
              <li class="user-footer">
                <!--<div class="pull-left">
                  <a href="<?php echo base_url('admin/settings/profile');?>" class="btn btn-default btn-flat">Profile</a>
                </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> 
        </ul>
      </div>

    </nav>
  </header>