<?php echo $this->render_table_name($mode); ?>
<div class="xcrud-top-actions">
    <?php echo $this->render_button('save_new','save','create','btn btn-primary','','create,edit') ?>
	    <?php echo $this->render_button('save_edit','save','edit','btn btn-default','','create,edit') ?>
    <?php echo $this->render_button('save_return','save','list','btn btn-success','','create,edit') ?>
    <?php echo $this->render_button('return','list','','btn btn-warning') ?>
</div>
 <div class="xcrud-list-container">
        
        
        <table class="xcrud-list table table-striped table-hover table-bordered">
            
              <thead>
              
               <tr bgcolor= #DECFF4 style="font-size:18pt" >
            
                          <th colspan="3" align ="center" > </th> 	<th colspan="13" align ="center"  > MONDAY</th><th colspan="13" > TUESDAY </th><th colspan="13" > WEDNESDAY</th><th colspan="13" > THURSDAY</th ><th colspan="13" >FRIDAY</th><th colspan="13" > SATURDAY</th><th colspan="13" > SUNDAY</th><th colspan="13" > MONDAY MORNING(CONTINUATION FROM SUNDAY ONLY)</th><th colspan="12" align ="center"> Tallies</th>
               	
				    </tr>
  
            <tr style="font-style: italic" bgcolor = #99C8EF>
 <th colspan="3" > </th> <th colspan="1" > </th> <th colspan="3" > Rostered</th> <th colspan="3" > CEM Biometric</th> <th colspan="1" > </th> <th colspan="5" > Final Timesheet</th>
            	<th colspan="1" > </th> <th colspan="3" > Rostered</th> <th colspan="3" > CEM Biometric</th> <th colspan="1" > </th> <th colspan="5" > Final Timesheet</th>
            	<th colspan="1" > </th> <th colspan="3" > Rostered</th> <th colspan="3" > CEM Biometric</th> <th colspan="1" > </th> <th colspan="5" > Final Timesheet</th>
            	<th colspan="1" > </th> <th colspan="3" > Rostered</th> <th colspan="3" > CEM Biometric</th> <th colspan="1" > </th> <th colspan="5" > Final Timesheet</th>
            	<th colspan="1" > </th> <th colspan="3" > Rostered</th> <th colspan="3" > CEM Biometric</th> <th colspan="1" > </th> <th colspan="5" > Final Timesheet</th>
            	<th colspan="1" > </th> <th colspan="3" > Rostered</th> <th colspan="3" > CEM Biometric</th> <th colspan="1" > </th> <th colspan="5" > Final Timesheet</th>
            	<th colspan="1" > </th> <th colspan="3" > Rostered</th> <th colspan="3" > CEM Biometric</th> <th colspan="1" > </th> <th colspan="5" > Final Timesheet</th>
            	<th colspan="1" > </th> <th colspan="3" > Rostered</th> <th colspan="3" > CEM Biometric</th> <th colspan="1" > </th> <th colspan="5" > Final Timesheet</th>
            	<th colspan="4" > ROSTERED</th><th colspan="4" > CEM BIOMETRIC</th><th colspan="4" > FINAL </th>
             	
             </tr>
            
             
           <tr bgcolor= #99C8EF >  
             <th colspan="1"></th>
        <th colspan="1">RosterID</th>
        <th >EmployeeName(SecurityGuards) </th>
        <th colspan="1" >Date</th>
        <th colspan="1" >TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
       <th colspan="1">Rostered Hours</th>
       <th colspan="1">TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
			<th colspan="1">CEM Hours</th>
        <th colspan="1" >Variance</th>
          <th colspan="1">TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
         <th colspan="1">FinalHours</th>
         <th colspan="1" >Approve</th>
         <th colspan="1" >ApprovedBy</th>
               <th colspan="1" >Date</th>
        <th colspan="1" >TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
       <th colspan="1">Rostered Hours </th>
       <th colspan="1">TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
			<th colspan="1">CEM Hours</th>
        <th colspan="1" >Variance</th>
          <th colspan="1">TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
         <th colspan="1">FinalHours</th>
         <th colspan="1" >Approve</th>
           <th colspan="1" >ApprovedBy</th>
           <th colspan="1" >Date</th>
        <th colspan="1" >TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
       <th colspan="1">Rostered Hours </th>
       <th colspan="1">TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
			<th colspan="1">CEM Hours</th>
        <th colspan="1" >Variance</th>
          <th colspan="1">TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
         <th colspan="1">FinalHours</th>
         <th colspan="1" >Approve</th>
           <th colspan="1" >ApprovedBy</th>
           <th colspan="1" >Date</th>
        <th colspan="1" >TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
       <th colspan="1">Rostered Hours </th>
       <th colspan="1">TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
			<th colspan="1">CEM Hours</th>
        <th colspan="1" >Variance</th>
          <th colspan="1">TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
         <th colspan="1">FinalHours</th>
         <th colspan="1" >Approve</th>
          <th colspan="1" >ApprovedBy</th>
           <th colspan="1" >Date</th>
        <th colspan="1" >TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
       <th colspan="1">Rostered Hours </th>
       <th colspan="1">TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
			<th colspan="1">CEM Hours</th>
        <th colspan="1" >Variance</th>
          <th colspan="1">TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
         <th colspan="1">FinalHours</th>
         <th colspan="1" >Approve</th>
           <th colspan="1" >ApprovedBy</th>
           <th colspan="1" >Date</th>
        <th colspan="1" >TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
       <th colspan="1">Rostered Hours </th>
       <th colspan="1">TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
			<th colspan="1">CEM Hours</th>
        <th colspan="1" >Variance</th>
          <th colspan="1">TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
         <th colspan="1">FinalHours</th>
         <th colspan="1" >Approve</th>
           <th colspan="1" >ApprovedBy</th>
           <th colspan="1" >Date</th>
        <th colspan="1" >TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
       <th colspan="1">Rostered Hours </th>
       <th colspan="1">TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
			<th colspan="1">CEM Hours</th>
        <th colspan="1" >Variance</th>
          <th colspan="1">TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
         <th colspan="1">FinalHours</th>
         <th colspan="1" >Approve</th>
           <th colspan="1" >ApprovedBy</th>
           <th colspan="1" >Date</th>
        <th colspan="1" >TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
       <th colspan="1">Rostered Hours </th>
       <th colspan="1">TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
			<th colspan="1">CEM Hours</th>
        <th colspan="1" >Variance</th>
          <th colspan="1">TimeLoggedIn</th>
        <th colspan="1">TimeLoggedOut</th>
         <th colspan="1">FinalHours</th>
         <th colspan="1" >Approve</th>
          <th colspan="1" >ApprovedBy</th>
         
         
         <th colspan="1">Total</th>
         <th colspan="1">Normal_Hours</th>
         <th colspan="1">Time1/2Hours</th>
         <th colspan="1">Double_Hours</th>
         
         <th colspan="1">Total</th>
         <th colspan="1">Normal_Hours</th>
         <th colspan="1">Time1/2Hours</th>
         <th colspan="1">Double_Hours</th>
         
         <th colspan="1">Total</th>
         <th colspan="1">Normal_Hours</th>
         <th colspan="1">Time1/2Hours</th>
         <th colspan="1">Double_Hours</th>
         
      </tr>
           
            </thead>
            <tbody >
               
               <tr>
            <td colspan="1">
           
               
            </td>
             <td colspan="1" >
           <?php echo $this->fields_output['cemrecon.cemid']['field']?>
               
            </td>
            
              <td >
           <?php echo $this->fields_output['cemrecon.employeeid']['field']?>
               
            </td>
             
            <td colspan="1">
           <?php echo $this->fields_output['cemrecon.mon_date']['field']?>
               
            </td>
            <td colspan="1">
           <?php echo $this->fields_output['cemrecon.rmon_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.rmon_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.rostered_mon']['field']?>
            </td>
            
                  <td colspan="1">
           <?php echo $this->fields_output['cemrecon.cmon_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.cmon_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.cem_mon']['field']?>
            </td>
            
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.variance_mon']['field']?>
            </td>
             <td colspan="1">
           <?php echo $this->fields_output['cemrecon.final_mon_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.final_mon_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.final_mon']['field']?>
            </td>
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.approved_mon']['field']?>
            </td>
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.approved_by_mon']['field']?>
            </td>
            	
    <td colspan="1">
           <?php echo $this->fields_output['cemrecon.tues_date']['field']?>
               
            </td>
            <td colspan="1">
           <?php echo $this->fields_output['cemrecon.rtues_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.rtues_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.rostered_tues']['field']?>
            </td>
            
                  <td colspan="1">
           <?php echo $this->fields_output['cemrecon.ctues_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.ctues_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.cem_tues']['field']?>
            </td>
            
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.variance_tues']['field']?>
            </td>
             <td colspan="1">
           <?php echo $this->fields_output['cemrecon.final_tues_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.final_tues_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.final_tues']['field']?>
            </td>
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.approved_tues']['field']?>
            </td>
            
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.approved_by_tues']['field']?>
            </td>

           
           <td colspan="1">
           <?php echo $this->fields_output['cemrecon.wed_date']['field']?>
               
            </td>
            <td colspan="1">
           <?php echo $this->fields_output['cemrecon.rwed_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.rwed_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.rostered_wed']['field']?>
            </td>
            
                  <td colspan="1">
           <?php echo $this->fields_output['cemrecon.cwed_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.cwed_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.cem_wed']['field']?>
            </td>
            
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.variance_wed']['field']?>
            </td>
             <td colspan="1">
           <?php echo $this->fields_output['cemrecon.final_wed_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.final_wed_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.final_wed']['field']?>
            </td>
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.approved_wed']['field']?>
            </td>
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.approved_by_wed']['field']?>
            </td>

           <td colspan="1">
           <?php echo $this->fields_output['cemrecon.thurs_date']['field']?>
               
            </td>
            <td colspan="1">
           <?php echo $this->fields_output['cemrecon.rthurs_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.rthurs_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.rostered_thurs']['field']?>
            </td>
            
                  <td colspan="1">
           <?php echo $this->fields_output['cemrecon.cthurs_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.cthurs_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.cem_thurs']['field']?>
            </td>
            
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.variance_thurs']['field']?>
            </td>
             <td colspan="1">
           <?php echo $this->fields_output['cemrecon.final_thurs_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.final_thurs_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.final_thurs']['field']?>
            </td>
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.approved_thurs']['field']?>
            </td>
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.approved_by_thurs']['field']?>
            </td>

           <td colspan="1">
           <?php echo $this->fields_output['cemrecon.fri_date']['field']?>
               
            </td>
            <td colspan="1">
           <?php echo $this->fields_output['cemrecon.rfri_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.rfri_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.rostered_fri']['field']?>
            </td>
            
                  <td colspan="1">
           <?php echo $this->fields_output['cemrecon.cfri_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.cfri_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.cem_fri']['field']?>
            </td>
            
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.variance_fri']['field']?>
            </td>
             <td colspan="1">
           <?php echo $this->fields_output['cemrecon.final_fri_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.final_fri_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.final_fri']['field']?>
            </td>
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.approved_fri']['field']?>
            </td>
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.approved_by_fri']['field']?>
            </td>

           <td colspan="1">
           <?php echo $this->fields_output['cemrecon.sat_date']['field']?>
               
            </td>
            <td colspan="1">
           <?php echo $this->fields_output['cemrecon.rsat_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.rsat_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.rostered_sat']['field']?>
            </td>
            
                  <td colspan="1">
           <?php echo $this->fields_output['cemrecon.csat_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.csat_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.cem_sat']['field']?>
            </td>
            
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.variance_sat']['field']?>
            </td>
             <td colspan="1">
           <?php echo $this->fields_output['cemrecon.final_sat_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.final_sat_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.final_sat']['field']?>
            </td>
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.approved_sat']['field']?>
            </td>
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.approved_by_sat']['field']?>
            </td>

           
           <td colspan="1">
           <?php echo $this->fields_output['cemrecon.sun_date']['field']?>
               
            </td>
            <td colspan="1">
           <?php echo $this->fields_output['cemrecon.rsun_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.rsun_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.rostered_sun']['field']?>
            </td>
            
                  <td colspan="1">
           <?php echo $this->fields_output['cemrecon.csun_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.csun_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.cem_sun']['field']?>
            </td>
            
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.variance_sun']['field']?>
            </td>
             <td colspan="1">
           <?php echo $this->fields_output['cemrecon.final_sun_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.final_sun_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.final_sun']['field']?>
            </td>
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.approved_sun']['field']?>
            </td>
            
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.approved_by_sun']['field']?>
            </td>
            
            
<td colspan="1">
           <?php echo $this->fields_output['cemrecon.mon2_date']['field']?>
               
            </td>
            <td colspan="1">
           <?php echo $this->fields_output['cemrecon.rmon2_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.rmon2_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.rostered_mon2']['field']?>
            </td>
            
                  <td colspan="1">
           <?php echo $this->fields_output['cemrecon.cmon2_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.cmon2_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.cem_mon2']['field']?>
            </td>
            
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.variance_mon2']['field']?>
            </td>
             <td colspan="1">
           <?php echo $this->fields_output['cemrecon.final_mon2_in']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.final_mon2_out']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.final_mon2']['field']?>
            </td>
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.approved_mon2']['field']?>
            </td>
            
<td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.approved_by_mon2']['field']?>
            </td>
            
                   <td colspan="1">
           <?php echo $this->fields_output['cemrecon.rostered_total']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.rnormal']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.rtime']['field']?>
            </td>
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.rdouble']['field']?>
            </td>
            
            
            
            
                      <td colspan="1">
           <?php echo $this->fields_output['cemrecon.cem_total']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.cnormal']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.ctime']['field']?>
            </td>
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.cdouble']['field']?>
            </td>
            
            
     
               
                         <td colspan="1">
           <?php echo $this->fields_output['cemrecon.final_total']['field']?>
               
            </td>
            
              <td colspan="1">
           <?php echo $this->fields_output['cemrecon.fnormal']['field']?>
               
            </td>
             
                        
              <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.ftime']['field']?>
            </td>
            <td colspan="1">
          
               <?php echo $this->fields_output['cemrecon.fdouble']['field']?>
            </td>
            
                  </tr>
                
            </tbody>
           
        </table>


</div>