<?php header('Content-type: application/vnd.ms-excel'); header("Content-Disposition: attachment; filename=nombre_del_archivo.xls"); header("Pragma: no-cache"); header("Expires: 0"); require_once 'clases/medico.php'; require_once "clases/AccesoDatos.php"; require_once "clases/turno.php"; //$_SESSION['id_medico'] //$_SESSION['fecha']; $medico = medico::BuscarMedico('1'); $fecha = '2016-02-01'; //$arrayDeturnos=turno::TraerTodoLosTurnosPorMedicos($medico->id); $arrayDeturnos = turno::TraerTodoLosTurnosPorMedicosyDia($medico->id, $fecha); //$arrayDeturnos=turno::TraerTodoLosturnos(); //backtop="5%" backbottom="5%" backleft="5%" backright="5%" ?> <page> <img src="Capture.jpg" WIDTH='200' HEIGTH='200' align=right> <h1>Hospital JM</h1> <h1>Planilla de Turnos</h1> <?php echo $medico->mostrarMedico(); ?> <table border="2" align="left" cellspacing="0" bordercolor="#000000" WIDTH='20%' HEIGTH='20%'> <tr> <th WIDTH='55'>Paciente</th><th WIDTH='150'>Apellido</th><th WIDTH='150'>Nombre</th><th WIDTH='150'>Dni</th><th WIDTH='150'>Estado</th> </tr>