<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Kudumbasree</title>

    <!-- Bootstrap Core CSS -->
    <link href="<?php echo base_url()?>css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="<?php echo base_url()?>css/sb-admin.css" rel="stylesheet">
    <link href="<?php echo base_url()?>css/loader.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="<?php echo base_url()?>font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
	
	
	<script type="text/javascript" src="<?php echo base_url(); ?>js/jquery-1.12.4.min.js"></script>
	<script type="text/javascript" src="<?php echo base_url(); ?>js/jquery.validate.js"></script>

    

</head>

<body>
<?php
                    $lin ='';
                    if(($this->uri->segment(1))!='')
                    {
                       $lin = $this->uri->segment(1);
                    }
                    ?>
    <div id="wrapper">

        <!-- Navigation -->
        <nav class="navbar navbar-inverse navbar-fixed-top" 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>
                
                <a class="navbar-brand" href="<?php echo site_url('dashboard') ?>">
                <img src="<?php echo base_url(); ?>/images/kudumbashree-logo.png" alt="kudumbashree" style="width: 190px !important"></a>
                <!--<span class="brand-head">Sightsavers</span>-->
               
            </div>
            <!-- Top Menu Items -->
            <ul class="nav navbar-right top-nav">
               
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i>
                        <?php 
                        if($this->session->userdata('role') == ADMIN){?> Super Admin
                        <?php }else { echo $name=$this->session->userdata('name'); }?><b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="<?php echo site_url('changepassword')?>"><i class="fa fa-fw  fa-unlock"></i> Change password</a>
                        </li>
                        
                        <li class="divider"></li>
                        <li>
                            <a href="<?php echo site_url('user/logout')?>"><i class="fa fa-fw fa-power-off"></i> Log Out</a>
                        </li>
                    </ul>
                </li>
            </ul>
            <!-- Sidebar Menu Items - These collapse to the responsive navigation menu on small screens -->
            <div class="collapse navbar-collapse navbar-ex1-collapse">
                <ul class="nav navbar-nav side-nav">
                   
                    <li class="<?php echo (strcmp($lin,'dashboard')==0)?'active':''; ?>">
                        <a href="<?php echo site_url('dashboard')?>"><i class="fa fa-fw fa-dashboard"></i> Dashboard</a>
                    </li>
                    <?php if ($this->session->userdata('role') == ADMIN || $this->session->userdata('role') == DISTRICT_AGENT) { ?>
					<li class="<?php echo (strcmp($lin,'agent')==0)?'active':''; ?>">
                        <a href="<?php echo site_url('agent')?>"><i class="fa fa-plus"></i> Manage Agents</a>
                    </li>
                    <?php } ?>
                    <!-- <?php if ($this->session->userdata('role') == TALUK || $this->session->userdata('role') == ADMIN ) { ?>
                    <li class="<?php echo (strcmp($lin,'panchayath')==0)?'active':''; ?>">
                        <a href="<?php echo site_url('panchayath')?>"><i class="fa fa-plus"></i> Panchayath Data</a>
                    </li>
                   <?php } ?> 
                    <?php if ($this->session->userdata('role') == TALUK || $this->session->userdata('role') == PANCHAYATH ) { ?>
                    <li class="<?php echo (strcmp($lin,'user_list')==0)?'active':''; ?>">
                        <a href="<?php echo site_url('user_list')?>"><i class="fa fa-user"></i></i> Agent List</a>                        
                    </li>
                    <?php } ?>-->
                   
					
                    <li class="<?php echo (strcmp($lin,'survey_list')==0)?'active':''; ?>">
                        <a href="<?php echo site_url('survey_list')?>"><i class="fa fa-plus"></i> Manage Survey</a>
                    </li>
					
                    
                    
                    <li>
                       <a href="<?php echo site_url('user/logout')?>"><i class="fa fa-fw fa-power-off"></i> Log Out</a>
                    
                    <!-- <li>
                        <a href="javascript:;" data-toggle="collapse" data-target="#demo1"><i class="fa fa-fw fa-arrows-v"></i> Dropdown <i class="fa fa-fw fa-caret-down"></i></a>
                        <ul id="demo1" class="collapse">
                            <li>
                                <a href="#">Dropdown Item</a>
                            </li>
                            <li>
                                <a href="#">Dropdown Item</a>
                            </li>
                        </ul>
                    </li> -->                   
                </ul>
            </div>
            <!-- /.navbar-collapse -->
        </nav>

       <!-- <div id="page-wrapper">

            <div class="container-fluid">

                <!-- Page Heading -->
                <!--<div class="row">
                    <div class="col-lg-12">
                        <h1 class="page-header">
                            Blank Page
                            <small>Subheading</small>
                        </h1>
                        <ol class="breadcrumb">
                            <li>
                                <i class="fa fa-dashboard"></i>  <a href="index.html">Dashboard</a>
                            </li>
                            <li class="active">
                                <i class="fa fa-file"></i> Blank Page
                            </li>
                        </ol>
                    </div>
                </div>
                <!-- /.row -->

            <!--</div>-->
            <!-- /.container-fluid -->

     <!--   </div>-->
        <!-- /#page-wrapper -->

  
