<?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>
        <!--<h3 class="box-title pull-left">Manage inventorys</h3>-->
		<?=form_open('admin/student_master/Studentinfo');?><?php if( count($list)==10 ){?><?php echo form_hidden('all','all');?><?php  } ?>
		<?php echo form_submit('All','All',['class'=>'form-control','style'=>'width:150px;','class'=>'form-control input-sm pull-right','style'=>'width: 100px;']);?>
        <?=form_close();?>
    <?php //echo anchor('admin/student_master/Studentinfo/create','<i class="fa fa-fw fa-plus-square"></i> Add attendee',['class'=>'form-control input-sm pull-right','style'=>'width: 200px;']); ?>
          
		 
				 
		  </div>
          <?php //echo $message;?>
          <?php echo form_hidden('my_array',['name'=>'doaction','id'=>'doaction']);?>
     <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>Category</th>
              <th>Class</th>
              <th>Subject</th>
              <th>Subject Code</th>
              <th>Month</th>
              <th>Year</th>
              <th>Student</th>
              <th>Email</th>
              <th>Mobile</th>
              <th>Gender</th>
              <th>Action</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->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->month);?></td>
              	<td><?php echo  strtoupper($lists->year);?></td>
                <td><?php echo  ucwords($lists->first_name." ".$lists->last_name);?></td>
                <td><?php echo  strtolower($lists->email);?></td>
                <td><?php echo  ucwords($lists->mobile);?></td>
                <td><?php if($lists->gender==1){echo "Male";}else if($lists->gender==2){echo "Female";}else{echo "Other";}?></td>
                   
              <td>
					<?php echo anchor("admin/student_master/Studentinfo/student_query_chat_answer/{$lists->id}",'<i class="fa fa-edit"></i>',['title'=>'Answer Query']); ?><?php nbs(3);?>
                    
               </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>Category</th>
              <th>Class</th>
              <th>Subject</th>
              <th>Subject Code</th>
              <th>Month</th>
              <th>Year</th>
              <th>Student</th>
              <th>Email</th>
              <th>Mobile</th>
              <th>Gender</th>
              <th>Action</th>
            </tr>
          </tfoot>
        </table>
		 </div>
        </div>
        <?php $count++; //echo  $link; ?>
        
        </div>
    </div>
  </div>
</div>
</section>
</div>
