<?php defined('BASEPATH') or exit('No direct Access is Allowed'); ?>
<style>

.container-tb {
    height: 500px;
    width: 100%;
    overflow: auto;
    border: 2px solid #999;
}
* {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
table {
    border-collapse: collapse;
    table-layout: fixed;
    width: auto;
    min-width: 100%;
}
td, th {
    border: 1px solid #ccc;
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
}
thead td, thead th {
    border-top: none;
    border-bottom: none;
}
tfoot td, thead th {
    border-top: none;
    border-bottom: none;
}
td.fth-header, th.fth-header, td.fth-footer, th.fth-footer {
    border-top: none !important;
    border-bottom: none !important;
}
td.fth-header, th.fth-header {
        padding: 3px;
    background-color: #444;
    border-bottom: rgba(0,0,0,0.2);
    color: white;
}
td.fth-footer, th.fth-footer {
    background-color:  #444;
    border-top:  rgba(0,0,0,0.2);
    color: white;
}
</style>
<div class="content-wrapper">
  <!-- Content Header (Page header) -->
<?php /*?>  <section class="content-header">
    <h1>  <small>WorkPackage Master</small> </h1>
    <ol class="breadcrumb">
      <li><a href="#"><i class="fa fa-dashboard"></i> Dashboard</a></li>
      <li><a href="#">Manage</a></li>
      <li class="active">WorkPackage Master</li>
    </ol>
  </section><?php */?>
  <!-- Main content -->
  <section class="content">
  <div class="row">
    <div class="col-xs-12">
      <div class="box">
          <div class="box-header">
            <span class="box-title pull-right">
            	<form action="<?=site_url('admin/Adminlte/download_excel_page')?>" class="exconvert"  method="post">
                	<input type="hidden" id="expo1" name="expo1"><input type="submit" value="Excel" class="form-control btn-social btn-success input-sm" style="width:100px;"/>
            	</form>
            </span>
          <?php echo anchor('admin/student_master/Studentpayments/create','<i class="fa fa-fw fa-arrows"></i> Payment Add',
              ['class'=>'btn btn-default pull-right','style'=>'background-color: #ffffff;']); ?>
          </div>

          <?php //echo $message;?>
     <div class="box-body table-responsive no-padding" >
        <div  id="reportsummary">
        <!-- <table id="example2" class="table table-bordered table-hover  table-responsive" style="font-size: 10px;">-->

  <div id="tableContainer2" class="container-tb">
        <table>
          <thead>
            <tr>
            <th>#</th>
            <th>Student</th>
            <th>Course</th>
            <th>Category</th>
            <th>Class</th>
            <th>Subject</th>
            <th>Subject Code</th>
            <th>Student Contact</th>
            <th>Info</th>
            </tr>
          </thead>
          <tbody>
			<?php if( count($list) ):$sn=1;
			$count = $this->uri->segment(4);
			foreach($list as $lists ): ?>
            <tr >
              	<td><?php echo  $sn; ?></td>
              	<td><?php echo  strtoupper($lists->student);?></td>
              	<td><?php echo  strtoupper($lists->course_id_tag);?></td>
              	<td><?php echo  strtoupper($lists->category);?></td>
              	<td><?php echo  strtoupper($lists->class);?></td>
              	<td><?php echo  strtoupper($lists->subject);?></td>
              	<td><?php echo  strtoupper($lists->subject_code);?></td>
              	<td><?php echo  strtoupper($lists->student_contact);?></td>
              	<td>
              	<a class="popper button_collapse" id="dd" data-popbox="hello1" Onclick="hello1(<?=$lists->id?>)"  >

                <span class="label label-info label-mini"
                style="background: linear-gradient(45deg,#FFa500,#ff869a);cursor:pointer;">Chat History</span>
               </a>

              	</td>
            </tr>
            <?php $sn++;?>
			<?php endforeach; ?>
            <?php else : ?>
            <tr>
              <td colspan="6"><strong>No record found</strong></td>
            </tr>
            <?php endif; ?>
          </tbody>
        <?php echo form_close();?>
         <tfoot>
            <tr>
            <th>#</th>
            <th>Student</th>
            <th>Course</th>
            <th>Category</th>
            <th>Class</th>
            <th>Subject</th>
            <th>Subject code</th>
            <th>Student Contact</th>
            <th>Info</th>
            </tr>
          </tfoot>
        </table>
		 </div>
        </div>
        <?php $count++; //echo  $link; ?>

        </div>
    </div>
  </div>
</div>
</section>
</div>
<div id="hello1" class="popbox"></div>

    <script type="text/javascript">
    	function hello1(id){
    		$.ajax({
               type: "POST",
               url: "<?php echo site_url('admin/student_data/Studentpayments/pay_detail_students')?>/" + id,
               data:{action:'call_this'},
               success:function(html) {
                 $('#hello1').append(html);
               }
          	});
        }
    </script>
