<?php //print_r($usertype);exit; ?>
    <section class="content-header">
      <h1>
        Communicator Details
      </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/message/communicator';?>">Communicator</a></li>
        <li class="active">Details</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>

              <div class="box box-info">

            <div class="box-header with-border">

              <h3 class="box-title">Message Body </h3>

            </div>

            <!-- /.box-header -->

            <!-- form start -->

            
              <div class="box-body admin-mail-templete">
                <div class="form-group">
                  <div class="body"><span style="font-weight: bold;font-size: 18px; margin-bottom: 10px; display: block"></span> <?php echo $receipent[0]['message']; ?></div>
                </div>
              </div>  
                
        </div>
            <!-- /.box-header -->
            <div class="box-body">
            <table id="example1" class="table table-bordered table-striped">
                <thead>
                <tr>
                  <th>#</th>
                  <th>Date</th>
                  <th>Title</th>
                  <th>Subject</th>
                  <th>Receipent</th>
                  <th>Opened</th>
                  <th>Clicked</th>
                  <th>Answered</th>
                </tr>
                </thead>
              <?php if(count($receipent)>0)
                {?>
                <tbody>
               <?php
                $i=1;
                foreach ($receipent as $data) 
                {
                ?>
                <tr>
                    <td><?php echo $i; ?></td>
                    <td><?php echo $data['date']; ?></td>
                    <td><?php echo $data['title']; ?></td>
                    <td><?php echo $data['subject']; ?></td>
                    <td><?php echo $data['username']; ?></td>
                    <td><?php echo $data['open']; ?></td>
                    <td><?php echo $data['click']; ?></td>
                    <td>----</td>
                </tr>

               <?php $i++; } ?>
                
               <?php }else{ ?>
               <tr><td colspan="8">No records found...</td></tr>
               <?php } ?>
                </tbody>
                <tfoot>
               
                </tfoot>
              </table>
              
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
        <!-- /.col -->
      </div>
      <!-- /.row -->
    </section>

    
<script>
  $(function () {
    $("#example1").DataTable();

    $('.custom_pagination a').click(function(e){
      e.preventDefault();
      $('#search_frm').attr('action',$(this).attr('href'));
      $('#search_frm').submit();
    })
  });
</script>