<?php //print_r($usertype);exit; ?>
    <section class="content-header">
      <h1>
        <?php if($this->uri->segment(3)=='expiredusers'){ echo 'Expired';} ?> Members
      </h1>
      <ol class="breadcrumb">
        <li><a href="<?php echo base_url().'admin';?>"><i class="fa fa-dashboard"></i> Home</a></li>
        <li class="active">List</li>
      </ol>
    </section>

    <section class="content">
      <div class="row">
        <?php echo $this->utility->showMsg();?>
        <div class="col-xs-12">
          <div class="box">
            <div class="box-header">
              <h3 class="box-title">Management</h3>
              
              </div>
               
              <div></div>
            <!-- /.box-header -->
            <div class="box-body">
            
            <div class="table-responsive">
              <table id="example1" class="table table-bordered table-striped">
                <thead>
                <tr>
                  <th>#</th>
                  <?php if($this->session->userdata('admin_id')=='19624'  || $this->session->userdata('admin_id')=='25267'){ ?>
                  <th>Email</th>
                  <?php } ?>
                  <th>Pseudonym</th>
                  <th>Delete Date</th>
                </tr>
                </thead>
                 <?php if(count($users)>0)
                {?>
                <tbody>
               <?php
                $i=1;
                foreach ($users as $data) 
                {
                ?>
                <tr>
                    <td><?php echo $i; ?></td>
                    <?php if($this->session->userdata('admin_id')=='19624'  || $this->session->userdata('admin_id')=='25267'){ ?>
                    <td><?php echo $data['email']; ?></td>
                    <?php } ?>
                    <td><?php echo $data['username']; ?> 
                      </td>
                    <td><?php if($data['delete_date'] != '') { echo date('d-m-Y',strtotime($data['delete_date'])); } ?></td>
                    <!--<td><?php echo $data['reject_reason']; ?></td>-->
                    
                </tr>

               <?php $i++; } ?>

                </tbody>
                <?php } ?>
                <tfoot>
               
                </tfoot>
              </table>
            </div>
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
        <!-- /.col -->
      </div>
      <!-- /.row -->
    </section>


    
<script>
  $(function () {
    $("#example1").DataTable({
  "searching": true
} );
  });
</script>
<style type="text/css">
  .dataTables_length{ display: none; }
</style>