<?php
	include('common/header.php');
?>
<div id="messages" style="color: green;"><h5><?php echo $this->session->flashdata('message'); ?></h5></div>
<div class="row">
	<!-- <div class="col-xs-12">
		<section class="panel panel-default">
        <header class="panel-heading bg-info lt font-bold">Search</header>
        <div class="panel-body bs-example form-horizontal">
          <div class="row"> -->
            <!-- PAGE CONTENT BEGINS--> 
     <!--  <div class="col-md-12">
         <div class="col-sm-6">
         <div class="form-group">   -->
                    <!-- <label class="col-sm-5 control-label" for="form-field-2" ><?php echo 'State Name';?><font style="color:red">*</font></label>
                    <div class="col-sm-7">                        
                      <input id="search" type="text" class="form-control" placeholder="State Name"> -->

                      <!-- <input type="text" name="testid" id="testid" >
                          <div id="result"> -->
           <!--            
                    </div>
          </div>

          

         </div>

      </div>      
          </div>
        </div>
      </section>

      <div class="clearfix form-actions">
        <div class="text-center">
          <button class="btn btn-info" type="button"> Search </button>
        </div>
      </div> -->
   <!--  </div> -->

 <div class="col-md-12">

      <section class="panel panel-default">
       <!--  <header class="panel-heading bg-info lt font-bold">List User Type -->
     <!--  <ul class="nav nav-pills pull-right">
        <li class="bg-info lt"><a href="http://project.nityam.in/nityamhygiene/index.php/admin/client/manage_client"> + Add New Client</a></li>
        <li class="bg-info lt"><a href="http://project.nityam.in/nityamhygiene/index.php/admin/client/manage_client_n_location"> + Add New Client</a></li>
      </ul> -->
   <!--  </header> -->
        <div class="panel-body bs-example form-horizontal">
          <div class="table-responsive">
            <table id="example" class="table table-bordered" cellspacing="0" width="100%">
              <thead>
        <tr>
          <th class="text-center">Sr No</th>  
          <th class="text-center">User Type</th>
          <th class="text-center">Action</th>
        </tr> 
      </thead>     
   <tbody>
         <?php 
       $srno=1;
       foreach ($user_type as $value) {
		 
         $user_type_id = $value->user_type_id;
         // $user_type_id = $value['user_type_id'];
          //$id=$this->encrypt->encode($user_type_id);
		  $id=encrypt_decrypt_parameters($user_type_id,'encrypt');
       ?> 
        
        <tr>
          <td class="text-center"><?php echo $srno; ?></td>
          <td class="text-center"><?php echo $value->user_type?></td>
          <td class="text-center">
            
          <b><a href="<?php echo base_url();?>index.php/gc/user_type/view_user_type/<?php echo $id ?>">View </a>
          </td><!-- |<a href="<?php echo base_url();?>index.php/gc/user_type/manage_user_type/<?php echo $id ?>"> Edit </a>| 
                <?php if($value->is_active==0) {?>
                 <a href="<?php echo base_url();?>index.php/gc/user_type/enable_user_type/<?php echo $id ?>">Enable</a></b><?php }else{?>
                 <a href="<?php echo base_url();?>index.php/gc/user_type/disable_user_type/<?php echo $id  ?> " onclick="return confirm('Are you sure you want to Disable?')">Disable</a></b><?php } ?> -->
          
        </tr> 
        <?php 
         $srno=$srno+1;
       }
         ?>
        </tbody>
            </table>
          </div>
        </div>
      </section>
	</div>
</div>
<div>
	<!-- /.page-row -->
    <!-- /.page-content --> 
</div>
<!-- /.main-content --> 
</div>
<!-- /#ace-settings-container --> 
</div>

<?php
	include('common/footer.php');
?>
<script type="text/javascript" charset="utf-8">
  $(document).ready(function() {
    $('#example').DataTable();
  } );
</script>
<script type="text/javascript">
$(document).ready(function() {
    $('#example').DataTable( {
    destroy: true,
    searching: true,
    "order": [],
    "columnDefs": [
      { "orderable": false, "targets":  [] }
      ]
  } );
});
</script>