<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); 
header('Cache-Control: no-store, no-cache, must-revalidate'); 
header('Cache-Control: post-check=0, pre-check=0', FALSE); 
header('Pragma: no-cache');
$session_first_name= $this->session->userdata('session_first_name');
$session_last_name= $this->session->userdata('session_last_name');
?>
<!DOCTYPE html>
<html lang="en" class="">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="cache-control" content="max-age=0">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="Cache-Control" content="no-store" />
<meta http-equiv="expires" content="0">
<meta http-equiv="expires" content="Mon, 26 Jul 1997 05:00:00 GMT">
<meta http-equiv="pragma" content="no-cache">
<!--<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />-->
<!--change by sunita 18122013 for IE11-->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- end of code-->
<title>Nityam Hygiene - Refill Management System</title>
<meta name="description" content="overview &amp; stats">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="shortcut icon" href="<?php echo ASSETS_PATH;?>img/favicon.png">
<link rel="stylesheet" href="<?php echo ASSETS_PATH;?>css/bootstrap.min.css">
<!-- <link rel="stylesheet" href="<?php echo ASSETS_PATH;?>css/jquery-ui.custom.min.css" />  -->
<link rel="stylesheet" href="<?php echo ASSETS_PATH;?>css/font-awesome.css">
<link rel="stylesheet" href="<?php echo ASSETS_PATH;?>css/font-awesome.min.css"> 
<link rel="stylesheet" href="<?php echo ASSETS_PATH;?>css/font-awesome.min1.css"> 
<link rel="stylesheet" href="<?php echo ASSETS_PATH;?>css/Chart.min.css"> 

<link rel="stylesheet" href="<?php echo ASSETS_PATH;?>css/ace.min.css">
 <link rel="stylesheet" href="<?php echo ASSETS_PATH;?>css/ace-rtl.min.css"> 
<link rel="stylesheet" href="<?php echo ASSETS_PATH;?>css/ace-skins.min.css">
<link rel="stylesheet" href="<?php echo ASSETS_PATH;?>css/jquery-ui.css">
<!-- <link rel="stylesheet" href="<?php echo ASSETS_PATH;?>css/nf_pagination.css"> -->
<link rel="stylesheet" href="<?php echo ASSETS_PATH;?>css/ace-rtl.min.css" />
<!-- <link rel="stylesheet" href="<?php echo ASSETS_PATH;?>css/bootstrap-datepicker3.min.css" /> -->
<link rel="stylesheet" href="<?php echo ASSETS_PATH;?>css/bootstrap-timepicker.min.css" />  
<!-- <link rel="stylesheet" href="<?php echo ASSETS_PATH;?>css/bootstrap-datetimepicker.min.css" /> -->
<link rel="stylesheet" href="<?php echo ASSETS_PATH;?>css/bootstrap-datetimepicker1.min.css" />
<link rel="stylesheet" href="<?php echo ASSETS_PATH;?>css/bootstrap-duallistbox.min.css" />
<link href="<?php echo ASSETS_PATH;?>select2/dist/css/select2.min.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="<?=ASSETS_PATH?>/css/nf_pagination.css">
<!-- <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">

<link rel="stylesheet" href="/resources/demos/style.css"> -->

<!--[if lte IE 8]>
		  <link rel="stylesheet" href="<?php echo ASSETS_PATH;?>css/ace-ie.min.css" />
		<![endif]-->

<!-- inline styles related to this page -->

<!-- ace settings handler -->




</head>
<body>
<style>
	 #no-script{
	 background:url(<?php echo ASSETS_PATH;?>/images/nojavascript.jpg);
		z-index: 1000;
		position: fixed;
		width: 100%;
		height: 100%;
		background-repeat: no-repeat;
		background-color: white;
		background-position: center;
	 }
	 .desk_nav{
		    position: absolute;
			display: none;
			z-index: 500;
			background: rgba(51, 51, 51, 0.8);
			width: 190px;
			height: 100%;
	 }
	 @media (max-width:980px) 

	 {
        .desk_nav{
		    position: absolute;
			display: none;
			z-index: 500;
			background: rgba(51, 51, 51, 0.8);
			width:0px;
			height:0px;
	 }

}
	</style>
	<noscript><div id="no-script"></div></noscript>
<div class="navbar navbar-default" id="navbar"> 
  <script type="text/javascript">
   try{ace.settings.check('navbar' , 'fixed')}catch(e){}
</script>
  <div class="navbar-container" id="navbar-container">
    <div class="navbar-header pull-left">
		<a href="" class="navbar-brand" rel=""><img src="<?php echo ASSETS_PATH;?>images/logohygiene.png"></a>
    </div>
    <!-- /.navbar-header -->
	<div class="navbar-buttons navbar-header pull-right">
		<div>
            <div class="well well-sm" style="margin: 8px 0px;">
                <div class="media">
                    <!--<a class="round pull-left" href="javascript:void(0);">
                        <img class="img-circle media-object" src="<?php echo ASSETS_PATH;?>avatars/avatar2.png" width="60" height="60">
                    </a>-->
                    <label style="float: right;"><h5><b>Refill Management System</b></h5><?php echo $session_first_name." ".$session_last_name ; ?> | <a href="<?php echo base_url()?>index.php/main/logout"> Logout</a></label>
                    <!--<div class="media-body">
                        <p class="media-heading"><?php echo ucfirst(implode(' ',explode('_',$this->session->userdata('user_type'))));?></p>
                		<p style="margin-bottom:2px;"><?php echo ucfirst(implode(' ',explode('_',$this->session->userdata('user_name'))));?></p>
                    </div>-->
                </div>
            </div>
        </div>
    </div>
    <!-- /.navbar-header --> 
  </div>
  <!-- /.container --> 
</div>
</div>
<!--<div class="navbar navbar-default" style="background:#40E0D0;">
<div class="navbar navbar-default" style="background:#00CED1;">-->
<div class="navbar navbar-default" style="background:#F39C12;">
  <nav class="navbar navbar-inverse" role="navigation">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            </div>
            <div class="collapse navbar-collapse navbar-ex1-collapse navbar-left">
				<ul class="nav navbar-nav navbar-user">
						<?php
						
						$module_id_array=explode(",",$this->session->userdata('module_ids'));						
						$module_type=$this->session->userdata('u_type');
						$module_type='admin';
						$str = get_children_module(0,$module_id_array,$this,'');
						echo $str;	
						?>
				</ul>
				
            	<!--<ul class="nav navbar-nav navbar-user">					  
                	 <li class="dropdown"><a href="<?php echo base_url()?>index.php/gc/dashboard">Dashboard</a></li>
                	 <li class="dropdown"><a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown">Customer<b class="caret"></b></a>
					  	<ul class="dropdown-menu">							
							<li class="dropdown-submenu">
					  		<a href="#">Manage Customer</a>
						    <ul class="dropdown-menu">
							<li><a href="<?php echo base_url();?>index.php/<?php echo CUSTOMER_MASTER;?>manage_customer_master"> Add Customer</a></li>
							<li><a href="<?php echo base_url();?>index.php/<?php echo CUSTOMER_MASTER;?>list_customer_master">List Customer</a></li>
						    </ul>
						    </li> 
						 </ul>                     
					  </li>
					  <li class="dropdown"><a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown">Dispenser Sales<b class="caret"></b></a>
					  	<ul class="dropdown-menu">
							
							<li class="dropdown-submenu">
					  		<a href="#">Manage Dispenser Sales</a>
						    <ul class="dropdown-menu">
							<li><a href="<?php echo base_url();?>index.php/<?php echo DISPENSER_SALES_DATA;?>manage_dispenser_sale_data"> Add Dispenser Sales</a></li>
							<li><a href="<?php echo base_url();?>index.php/<?php echo DISPENSER_SALES_DATA;?>list_dispenser_sale_data">List Dispenser Sales</a></li>							
						    </ul>
						    </li> 							
							<li class="dropdown-submenu">
					  		<a href="<?php echo base_url();?>index.php/<?php echo DISPENSER_SALES_DATA;?>search_return_dispenser">Return Dispenser</a> </li> 
						 </ul>                     
					  </li>
					    <li class="dropdown"><a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown">Refill Sales<b class="caret"></b></a>
					  	<ul class="dropdown-menu">							
							<li class="dropdown-submenu">
					  		<a href="#">Manage Refill Sales</a>
					  		 <ul class="dropdown-menu">
							<li><a href="<?php echo base_url();?>index.php/<?php echo REFILL_SALES_DATA;?>manage_refill_sale_data">List Refills Due</a></li>
						    </ul>
					  		<li><a href="<?php echo base_url();?>index.php/<?php echo REFILL_SALES_DATA;?>scan_qr_code">Scan QR Code</a></li>						   
						    </li> 
						 </ul>                     
					  </li>
                       <li class="dropdown"><a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown">Refill Tracking<b class="caret"></b></a>
					  	<ul class="dropdown-menu">							
							<li>
					  		<a href="<?php echo base_url();?>index.php/<?php echo REFILL_TRACK;?>manage_refill_track">Refill Tracking</a>
					  		<a href="<?php echo base_url();?>index.php/<?php echo REFILL_TRACK;?>manage_refill_track">Stop Refill</a>					  		
						    </li> 
						 </ul>                     
					  </li>
					  <li class="dropdown"><a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown">Reports<b class="caret"></b></a>						
                         <ul class="dropdown-menu">
						 <li><a href="<?php echo base_url();?>index.php/<?php echo MASTER_SALES_DATA_REPORT;?>">Sales Report</a> </li>
						 <li><a href="<?php echo base_url();?>index.php/<?php echo REFILL_DUE_REPORT;?>refill_due_date_reports"> Refill Due </a></li>
                         <li><a href="<?php echo base_url();?>index.php/<?php echo REFILL_HISTORY;?>refill_history"> Refill History</a> </li>
						 </ul>
					  </li>
					  <li class="dropdown"><a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown">Masters<b class="caret"></b></a>
                      	 <ul class="dropdown-menu">
							<li class="dropdown-submenu">
								<a href="#">Country</a>
								<ul class="dropdown-menu">
									<li><a href="<?php echo base_url();?>index.php/<?php echo COUNTRY;?>manage_country">Add Country</a></li>
									<li><a href="<?php echo base_url();?>index.php/<?php echo COUNTRY;?>list_country">List Country</a></li>
								</ul>   
							</li>
                      	 	<li class="dropdown-submenu">
								<a href="#">State</a>
								<ul class="dropdown-menu">
									<li><a href="<?php echo base_url();?>index.php/<?php echo STATE;?>manage_state">Add State</a></li>
									<li><a href="<?php echo base_url();?>index.php/<?php echo STATE;?>list_state">List State</a></li>
								</ul>   
							</li>
                      	 	<li class="dropdown-submenu">
								<a href="#">City</a>
								<ul class="dropdown-menu">
									<li><a href="<?php echo base_url();?>index.php/<?php echo CITY;?>manage_city">Add City</a></li>
									<li><a href="<?php echo base_url();?>index.php/<?php echo CITY;?>list_city">List City</a></li>
								</ul>   
							</li>
							<li class="dropdown-submenu">
								<a href="#">Currency</a>
								<ul class="dropdown-menu">
									<li><a href="<?php echo base_url();?>index.php/<?php echo CURRENCY;?>manage_currency">Add Currency</a></li>
									<li><a href="<?php echo base_url();?>index.php/<?php echo CURRENCY;?>list_currency">List Currency</a></li>
								</ul>   
							</li>
							<li class="dropdown-submenu">
								<a href="#">Branch Saleable Geogrphy</a>
								<ul class="dropdown-menu">
									<li><a href="<?php echo base_url();?>index.php/<?php echo GEOGRAPHY;?>manage_branch_geography">Add Branch Saleable Geogrphy</a></li>
									<li><a href="<?php echo base_url();?>index.php/<?php echo GEOGRAPHY;?>list_branch_geography">List Branch Saleable Geogrphy</a></li>
								</ul>   
							</li>
							<li class="dropdown-submenu">
								<a href="#"> Company Branch</a>
								<ul class="dropdown-menu">
									<li><a href="<?php echo base_url();?>index.php/<?php echo COMPANY_BRANCH;?>manage_company_branch">Add Company Branch</a></li>
									<li><a href="<?php echo base_url();?>index.php/<?php echo COMPANY_BRANCH;?>list_company_branch">List Company Branch</a></li>
								</ul>   
							</li>
							<li class="dropdown-submenu">
								<a href="#">Product Category</a>
								<ul class="dropdown-menu">
									<li><a href="<?php echo base_url();?>index.php/<?php echo PRODUCT_CATEGORY;?>manage_product_category">Add Product Category</a></li>
									<li><a href="<?php echo base_url();?>index.php/<?php echo PRODUCT_CATEGORY;?>list_product_category">List Product Category</a></li>
								</ul>   
							</li>
							<li class="dropdown-submenu">
								<a href="#"> Products</a>
								<ul class="dropdown-menu">
									<li><a href="<?php echo base_url();?>index.php/<?php echo PRODUCTS;?>manage_products">Add Product</a></li>
									<li><a href="<?php echo base_url();?>index.php/<?php echo PRODUCTS;?>list_products">List Product</a></li>
								</ul>   
							</li>							
                   		 </ul>                      
                      </li>
                       <li class="dropdown"><a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown">User Management<b class="caret"></b></a>
					  	<ul class="dropdown-menu">	
							<li class="dropdown-submenu">
					  		<a href="#">User Types</a>
					  		<ul class="dropdown-menu">
									<li><a href="<?php echo base_url();?>index.php/<?php echo USER_TYPE;?>manage_user_type">Add User Type</a></li>
									<li><a href="<?php echo base_url();?>index.php/<?php echo USER_TYPE;?>list_user_type">List User Type</a></li>
								</ul> 
						    </li> 
							<li class="dropdown-submenu">
					  		<a href="#"> Users</a>
					  		<ul class="dropdown-menu">
									<li><a href="<?php echo base_url();?>index.php/<?php echo USER_PATH;?>manage_user">Add Users</a></li>
									<li><a href="<?php echo base_url();?>index.php/<?php echo USER_PATH;?>list_user">List Users</a></li>
								</ul> 
						    </li> 
						 </ul>                     
					  </li>
				</ul>-->						                    
            </div>
			<div>
				<ul class="nav navbar-nav navbar-right">
					<li>
						<!-- <select onchange="get_language()" name="language" id="language" style="height: 41px;width: 126px;">
    					<option>Select language</option>
    					<option value="hindi">Hindi</option>
    					<option value="english">English</option>
 					    </select> -->
					</li>
				 <li><a href="<?php echo base_url();?>index.php/authentication/User_change_password" title="Change Password"><i class="ace-icon fa fa-pencil"></i> Change Password</a></li>			 
				</ul>
			</div> 
        </nav>
  <!-- <div class="navbar-collapse collapse">--> 
</div>
<div class="main-container" id="main-container">
  <div class="main-container-inner">
    <div class="main-content"> 
      
      <!-- <div class="breadcrumbs" id="breadcrumbs"> 
        <script type="text/javascript">
				try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
		</script>
        <ul class="breadcrumb">
        </ul>
       
      </div> -->
	  <div class="breadcrumbs" id="breadcrumbs">
		<script type="text/javascript">
			try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
		</script>

		<ul class="breadcrumb">
			<li><i class="ace-icon fa fa-home home-icon"></i>
			<a href="<?php echo base_url()?>index.php/gc/dashboard">Home</a></li>
			 <?php 
			//echo 'test'.$bredcrum;
				if(isset($bredcrum)){
					if(is_array($bredcrum)){
						foreach($bredcrum as $menu_key=>$menu_val){
							if($menu_val!='#'){
								echo "<li><a href='{$menu_val}'>{$menu_key}</a><span class='divider'></span></li>";
							}elseif($menu_val=='#'){
								echo "<li class='active'>{$menu_key}</li>";
							}
						}	
					}
				}
			?>
			<!--<li>
				<i class="ace-icon fa fa-home home-icon"></i>
				<a href="#">Home</a>
			</li>

			<li>
				<a href="#">Forms</a>
			</li>
			<li class="active">Form Elements</li>-->
		</ul><!-- /.breadcrumb -->
	</div>
	
	<div class="page-content">
        <div class="page-header">
			<?php
				if((isset($page_title) && ($page_title!=''))){
					echo "<h1 class='page-title'>{$page_title}</h1>";
				}
			?>
			<!--<h1>
				Form Elements
				<small>
					<i class="ace-icon fa fa-angle-double-right"></i>
					Common form elements and layouts
				</small>
			</h1>-->
		</div>
        <!-- /.page-header -->