Exemple #1
0
//$fecha_fin = date_format(date_create(@$_POST['to']), 'Y-m-d');
$fecha_fin = date_add(date_create(@$_POST['to']), new DateInterval('P1D'));
$fecha_fin = date_format($fecha_fin, 'Y-m-d');
$indice_festivos = @$_POST['indice_festivos'];
$fecha_festivos = array(0);
for ($i = 0; $i < $indice_festivos; $i++) {
    $fecha_festivos[$i] = date_create($_POST['festivo_' . ($i + 1)]);
}
$ticket = new Ticket();
$list_ticket = $ticket->list_tickets($fecha_inicio, $fecha_fin);
$j = 0;
while ($row[] = mysql_fetch_array($list_ticket)) {
    $list_histoty_ticket = $ticket->list_history_ticket($row[$j]['id']);
    $fecha_creacion = $row[$j]['create_time'];
    if (mysql_num_rows($list_histoty_ticket) > 0) {
        $row[$j]['fechas'] = fechas($list_histoty_ticket, $fecha_creacion, $row[$j]['sla_id'], $fecha_festivos);
    }
    $j++;
}
$sla = $ticket->get_sla();
while ($row2[] = mysql_fetch_array($sla)) {
}
?>
<!DOCTYPE html>
<html lang = "es">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Reporte IM</title>
        <style type="text/css">
            th{
                padding: 3px 10px;
                  <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                </div>
              </div>
            </div>
          </div>
          <?php 
} while ($row_eventos = mysql_fetch_assoc($eventos));
?>
 
        </table>
        </div>
    </div>
    <div id="menu4" class="tab-pane fade">
    	
        <h4><?php 
echo "Eventos de hoy para tomar asistencia " . fechas($hoy);
?>
</h4>
          <div class="table-responsive">
          <form action="asistencia.php" method="POST">
            <table class="table table-hover container">
                <tr>
                  <th class="text-center">Horario</th>
                  <th>Descripción</th>
                  <th class="hidden-xs">Tipo</th>
                  <th class="hidden-xs">Cupo</th>
                  <th>Ponente</th>
                  <th>Lugar</th>
                  <th class="text-center">Seleccionar</th>
                </tr>
                <?php