<!-- Content Header (Page header) -->

    <section class="content-header">

      <h1>

        All Pictures

      </h1>

      <ol class="breadcrumb">

        <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>

      </ol>

    </section>



    <!-- Main content -->

    <section class="content">
         <?php echo $this->utility->showMsg();?>

      <div class="row">
      
        <div class="col-md-12">
          <form action="" id="search_frm" method="post" style="margin-bottom: 5%;">
              <input type="text" name="search_name" class="form-control" placeholder="Search by pseudonym" value="<?php if($this->input->post('search_name')) { echo $this->input->post('search_name'); }?>" style="width: 25%; float: right;">
              <input type="text" name="search_email" class="form-control" placeholder="Search by email" value="<?php if($this->input->post('search_email')) { echo $this->input->post('search_email'); }?>" style="width: 25%; float: right;">
              <input type="submit" class="btn btn-primary" value="Search" style="float: right;">
            </form>
              <div class="box box-danger allpicture">
                <!-- /.box-header -->
                <div class="">
                  <ul class="users-list clearfix">
                  <?php if(!empty($upload)){
                     foreach ($upload as $uploads) {
                    ?>
                    <li>
                    <a href="<?php echo base_url().'admin/users/edit/'.base64_encode($uploads['user_id']); ?>" target="_blank">
                      <?php if(file_exists(FCPATH.'assets/userfiles/'.$uploads['path'].'/'.$uploads['filename'].'.'.$uploads['extension']))
                            {
                      ?>
                      <div class="avatarMedium" style="background:url('<?php echo base_url();?>assets/userfiles/<?php echo $uploads['path'].'/'.$uploads['filename'].'.'.$uploads['extension']; ?>') no-repeat center center / cover;" ></div>
                        
                      <?php } else { ?>
                        <img class="" src="<?php echo base_url();?>assets/images/default-avatar.jpg" alt="message user image">
                      <?php  } ?>
                      </a>
                      <?php if(chkWritePermission('All_Pictures',$this->session->userdata('admin_id'))!=0 || $this->session->userdata('admin_id')=='19624' ){ ?>
                      <div class="row tinypadding-all ">
                        <a href="<?php echo  base_url();?>admin/dashboard/delete_from_pictures/<?php echo base64_encode($uploads['id']); ?>/<?php echo str_replace('/','-',uri_string()); ?>" class="" onclick="return confirm('Are you sure to delete')">
                          <i class="fa fa-trash tooltipstered"></i>
                        </a>
                        <a href="<?php echo  base_url();?>admin/dashboard/rotate/<?php echo base64_encode($uploads['id']); ?>/<?php echo str_replace('/','-',uri_string()); ?>" class="">
                          <i class="fa fa-repeat tooltipstered"></i>
                        </a>
                      </div>
                      <?php } ?> 
                    </li>
                   <?php 
                        }
                      } ?> 
                  </ul>
                  <!-- /.users-list -->
                </div>
                <div class="custom_pagination"><?php echo $link; ?></div>
                <!-- /.box-footer -->
              </div>
   
        </div>
        <!-- /.col -->
      </div>


    </section>