// 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                         //
//                                                                       //
///////////////////////////////////////////////////////////////////////////
$alto_celda = '3px';
$ancho_celda = '150px';
$PERSONAL = array_personal();
?>

<style>
.selector_semana{

width: 100%;
height: 40px;
border-top: 2px solid gray;

}
.agenda{
border: 1px solid black;
border-collapse: collapse;
padding: 0px;
margin: 0px;
// (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                         //
//                                                                       //
///////////////////////////////////////////////////////////////////////////
header('Content-type: application/vnd.ms-excel');
header("Content-Disposition: attachment; filename=Informe_partes_trabajo.xls");
header("Pragma: public");
include "../functions/globales.php";
include "../functions/funciones.php";
$personal = array_personal();
$columnas = columnas('kz_te_partes');
if (!$_POST['ini_d']) {
    $_POST['ini_d'] = date('d');
    $_POST['ini_m'] = date('m');
    $_POST['ini_y'] = date('Y');
    $_POST['fin_d'] = date('d');
    $_POST['fin_m'] = date('m');
    $_POST['fin_y'] = date('Y');
}
foreach ($_POST as $key => $valor) {
    if (substr($key, 0, 7) == 'fil_col') {
        $filtros_columnas[count($filtros_columnas)] = $valor;
    }
}
if ($filtros_columnas) {