<?php
require_once './modelos/Consultas.php';
$dbManager = new Consultas();
$Empleados = $dbManager->marcasEmpleadosHoy();
?>
<table id="empleadoshoy" class="table table-striped table-condensed">
  <thead>
    <tr style="text-align: center;">
      <th></th>
      <th></th>
      <th></th>
      <th colspan="2">Manana (6am - 1pm)</th>
      <th colspan="2">Tarde (1pm - 10pm)</th>
    </tr>
    <tr>
      <th style="width: 7%">Sede</th>
      <th style="width: 15%">Cédula</th>
      <th style="width: 30%">Nombre</th>
      <th style="width: 12%">Entrada</th>
      <th style="width: 12%">Salida</th>
      <th style="width: 12%">Entrada</th>
      <th style="width: 12%">Salida</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach($Empleados AS $Empleado): ?>    
      <tr style="font-size: 80%;text-align: center;" >
        <td style="font-size: 80%;"><?php echo $Empleado->sedeEmp ?></td>
        <td><?php echo $Empleado->cedEmp ?></td>
        <td><?php echo $Empleado->nombreEmp ?></td>
        <td><?php echo $Empleado->Manana->Entrada->fechaMarca ?></td>
        <td><?php echo $Empleado->Manana->Salida->fechaMarca ?></td>
        <td><?php echo $Empleado->Tarde->Entrada->fechaMarca ?></td>
        <td><?php echo $Empleado->Tarde->Salida->fechaMarca ?></td>
      </tr>
    <?php endforeach; ?>
  </tbody>
</table>
<script type="text/javascript" >
  $(document).ready(function () {
    $('#empleadoshoy').DataTable({
      //"order": [[0, "desc"]]
    });
  });
</script>
<?php
/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
