<?php //print_r($usertype);exit; ?>
    <section class="content-header">
      <h1>
        Confirmed Free Lady Pictures
      </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">
            <table id="example1" class="table table-bordered table-striped">
                <thead>
                <tr>
                  <th>#</th>
                  <th>Pseudonym</th>
                  <th>Registered</th>
                  <th>Images</th>
                  <th>Status</th>
                </tr>
                </thead>
                 <?php if(count($userImage)>0)
                {?>
                <tbody>
               <?php
                $i=1;
                foreach ($userImage as $data) 
                {
                ?>
                <tr>
                    <td><?php echo $i; ?></td>
                    <td><a href="<?php echo  base_url().'admin/users/edit/'.base64_encode($data['user_id']);?>"><?php echo $data['username']; ?></a></td>
                    <td><?php echo date('d-m-Y h:i:s',$data['created']);?></td>
                    <td><img src="<?php echo base_url().'assets/userfiles/'.$data['path'].'/'.$data['filename'].'.'.$data['extension'] ;?>" width="100"></td>
                    <td><?php if($data['accepted']==1){ echo 'Confirmed'; } ?></td>
                    
                </tr>

               <?php $i++; } ?>

                </tbody>
                <?php } ?>
                <tfoot>
               
                </tfoot>
              </table>
              </form>
                <div class="custom_pagination"><?php echo $link; ?></div>
              
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
        <!-- /.col -->
      </div>
      <!-- /.row -->
    </section>
    

    
<script>
  $(function () {
    $("#example1").DataTable({
      "pageLength": 100
    });

  });
</script>
<style type="text/css">
  .dataTables_length, .dataTables_filter{ display: none; }
</style>