<?php //print_r($usertype);exit; ?>
    <section class="content-header">
      <h1>
        Activity users
      </h1>
      <ol class="breadcrumb">
        <li><a href="<?php echo base_url().'admin';?>"><i class="fa fa-dashboard"></i> Home</a></li>
        <li><a href="<?php echo base_url().'admin/activity';?>"> Newslettter activity users</a></li>
        <li class="active">List</li>
      </ol>
    </section>
    <form action="" method="post">
    <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">Couple of the week</h3>
                <!--<a target="_blank" class="btn btn-primary margin-right pull-right" href="<?php echo base_url()?>newsletter">Start Newsletter Send</a>-->
              </div>
               
              <div></div>
            <!-- /.box-header -->
            <div class="box-body">
            <table id="example1" class="table table-bordered table-striped">
                <thead>
                <tr>
                  <th></th>
                  <th>Week</th>
                  <th>Username</th>
                  <th>Image</th>
                  <th>Profile Text</th>
                </tr>
                </thead>
                 <?php if(count($weekly_users)>0)
                {?>
                <tbody>
               <?php
                $sent=0;
                foreach ($weekly_users as $data) 
                {
                  
                ?>
                <tr>
                    <td><input type="checkbox" class="couple" name="couple[]" value="<?php echo $data['user_id']; ?>"></td>
                    <td><?php echo $monday.'---'.$saturday;?></td>
                    <td><?php echo $data['username']; ?></td>
                    <td><img src="<?php if(file_exists(FCPATH.'assets/userfiles/'.$data['path'].'/'.$data['filename'].'.'.$data['extension'])){ echo base_url().'assets/userfiles/'.$data['path'].'/'.$data['filename'].'.'.$data['extension']; } else{ echo base_url().'assets/images/crown_log.svg'; } ?>" width="80"></td>
                    <td><?php echo $data['about']; ?></td>
                    
                </tr>

               <?php } ?>

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



        <div class="col-xs-12">
          <div class="box">
            <div class="box-header">
              <h3 class="box-title">Lady of the week</h3>
                <!--<a target="_blank" class="btn btn-primary margin-right pull-right" href="<?php echo base_url()?>newsletter">Start Newsletter Send</a>-->
              </div>
               
              <div></div>
            <!-- /.box-header -->
            <div class="box-body">
            <table id="example1" class="table table-bordered table-striped">
                <thead>
                <tr>
                  <th></th>
                  <th>Week</th>
                  <th>Username</th>
                  <th>Image</th>
                  <th>Profile Text</th>
                </tr>
                </thead>
                 <?php if(count($monthly_users)>0)
                {?>
                <tbody>
               <?php
                $sent=0;
                foreach ($monthly_users as $data) 
                {
                  
                ?>
                <tr>
                    <td><input type="checkbox" class="lady" name="lady[]" value="<?php echo $data['user_id']; ?>"></td>
                    <td><?php echo $monday.'---'.$saturday;?></td>
                    <td><?php echo $data['username']; ?></td>
                    <td><img src="<?php if(file_exists(FCPATH.'assets/userfiles/'.$data['path'].'/'.$data['filename'].'.'.$data['extension'])){ echo base_url().'assets/userfiles/'.$data['path'].'/'.$data['filename'].'.'.$data['extension']; } else{ echo base_url().'assets/images/crown_log.svg'; } ?>" width="80"></td>
                    <td><?php echo $data['about']; ?></td>
                    
                </tr>

               <?php } ?>

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


        <div class="col-xs-12">
          <div class="box">
            <div class="box-header">
              <h3 class="box-title">Gentleman of the week</h3>
                <!--<a target="_blank" class="btn btn-primary margin-right pull-right" href="<?php echo base_url()?>newsletter">Start Newsletter Send</a>-->
              </div>
               
              <div></div>
            <!-- /.box-header -->
            <div class="box-body">
            <table id="example1" class="table table-bordered table-striped">
                <thead>
                <tr>
                  <th></th>
                  <th>Week</th>
                  <th>Username</th>
                  <th>Image</th>
                  <th>Profile Text</th>
                </tr>
                </thead>
                 <?php if(count($weekly_gentleman)>0)
                {?>
                <tbody>
               <?php
                $sent=0;
                foreach ($weekly_gentleman as $data) 
                {
                  
                ?>
                <tr>
                    <td><input type="checkbox" class="gentleman" name="gentleman[]" value="<?php echo $data['user_id']; ?>"></td>
                    <td><?php echo $monday.'---'.$saturday;?></td>
                    <td><?php echo $data['username']; ?></td>
                    <td><img src="<?php if(file_exists(FCPATH.'assets/userfiles/'.$data['path'].'/'.$data['filename'].'.'.$data['extension'])){ echo base_url().'assets/userfiles/'.$data['path'].'/'.$data['filename'].'.'.$data['extension']; } else{ echo base_url().'assets/images/crown_log.svg'; } ?>" width="80"></td>
                    <td><?php echo $data['about']; ?></td>
                    
                </tr>

               <?php } ?>

                </tbody>
                <?php } ?>
                <tfoot>
               
                </tfoot>
              </table>
              
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
          <div class="">
            <input type="submit" class="btn btn-info " value="Add" id="add">
          </div>
        </div>
        <!-- /.col -->


        
      </div>
      <!-- /.row -->
    </section>
    </form>
    <style type="text/css">
      .dataTables_info, .dataTables_paginate {   
      /*display: none;*/
      }
    </style>

    
<script>
  $(function () {
    /*$('input.couple').on('change', function() {
        $('input.couple').not(this).prop('checked', false);  
    });
    $('input.lady').on('change', function() {
        $('input.lady').not(this).prop('checked', false);  
    });*/
  });
</script>
<style type="text/css">
  .dataTables_length, .dataTables_filter{ display: none; }
</style>