<td colspan=3>Fecha inicial: <?php 
    echo date("Y-m-d", mktime(0, 0, 0, $_POST['ini_m'], $_POST['ini_d'], $_POST['ini_y']));
    ?>
</td>
	</tr>
	<tr>
		<td colspan=3>Fecha final: <?php 
    echo date("Y-m-d", mktime(0, 0, 0, $_POST['fin_m'], $_POST['fin_d'], $_POST['fin_y']));
    ?>
</td>
	</tr>
</table>
<br>
	
<?php 
    $clientes = array_partes_clientes();
    echo "<table border=1>";
    echo "<tr>";
    foreach ($filtros_columnas as $key => $valor) {
        echo "<th style='background-color: #C0C0C0;'>" . $columnas['partes'][$valor]['Comment'] . "</th>";
    }
    echo "</tr>";
    $dia_actual = '';
    $persona_actual = '';
    if ($consulta) {
        foreach ($consulta as $key => $valor) {
            echo "<tr>";
            $duracion['total'] = $duracion['total'] + $valor['total_duracion'];
            if ($filtros_columnas) {
                foreach ($filtros_columnas as $key2 => $valor2) {
                    switch ($valor2) {
//                                                                       //
// NOTICE OF COPYRIGHT                                                   //
//                                                                       //
// 	Adeada Talleres Electricos                                           //
//          http://www.grupogisma.com                                    //
//                                                                       //
// This program is free software; you can redistribute it and/or modify  //
// it under the terms of the GNU General Public License as published by  //
// the Free Software Foundation; either version 2 of the License, or     //
// (at your option) any later version.                                   //
//                                                                       //
// This program is distributed in the hope that it will be useful,       //
// but WITHOUT ANY WARRANTY; without even the implied warranty of        //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         //
// GNU General Public License for more details:                          //
//                                                                       //
//          http://www.gnu.org/copyleft/gpl.html                         //
//                                                                       //
///////////////////////////////////////////////////////////////////////////
if ($_SESSION[APLICACION_ . 'user']) {
    $ARRAY_TRABAJOS = array_trabajos();
    $OPCIONES = array_opciones();
    $PARTES_CLIENTES = array_partes_clientes();
    $ARRAY_TECNICOS = array_tecnicos();
    $ARRAY_TIPO_PROYECTO = array_tipo_proyecto();
    $ARRAY_USUARIOS = array_usuarios();
    $ARRAY_PERFILES = array_perfiles();
    $ARRAY_PROYECTOS = array_proyectos();
    $ARRAY_MESES = array('ENERO', 'FEBRERO', 'MARZO', 'ABRIL', 'MAYO', 'JUNIO', 'JULIO', 'AGOSTO', 'SEPTIEMBRE', 'OCTUBRE', 'NOVIEMBRE', 'DICIEMBRE');
    $PROVINCIAS = array_provincias();
}