require '../controlador/com.inventario_expertcob.controladores/ControladorGestionDeSucursales.php'; require '../controlador/com.inventario_expertcob.controladores/ControladorGestionDeDispositivos.php'; require '../controlador/com.inventario_expertcob.controladores/ControladorGestionDeTorres.php'; $fecha = date("d-m-y"); header("Content-type: application/vnd.ms-excel"); ?> <html> <body> <?php $controladorSucursales = new ControladorGestionDeSucursales(); $controladorMueblesEnceres = new ControladorGestionDeMueblesEnseres(); $controladorDispositivos = new ControladorGestionDeDispositivos(); $controladorTorres = new ControladorGestionDeTorres(); if (isset($_REQUEST['of']) && is_numeric($_REQUEST['of'])) { header("Content-Disposition: attachment; filename=Dispositivos-{$fecha}.xls; pagename=Reporte"); $dispositivos = $controladorDispositivos->verDispositivosPorOficina($_REQUEST['of']); $oDto = $controladorSucursales->verUnaOficina($_REQUEST['of']); if (count($dispositivos) > 0) { ?> <table border="1"> <thead> <tr> <td style="background-color: #6495ED; color: whitesmoke;">Oficina</td> <td style="background-color: #6495ED; color: whitesmoke;">Puesto</td> <td style="background-color: #6495ED; color: whitesmoke;">Tipo</td> <td style="background-color: #6495ED; color: whitesmoke;">Modelo</td> <td style="background-color: #6495ED; color: whitesmoke;">Serial</td> <td style="background-color: #6495ED; color: whitesmoke;">Valor</td> <td style="background-color: #6495ED; color: whitesmoke;">Observacion</td> <td style="background-color: #6495ED; color: whitesmoke;">Marca</td> <td style="background-color: #6495ED; color: whitesmoke;">Estado</td>