Exemplo n.º 1
0
                    </tbody>
                </table>
                <?php 
    } else {
        ?>
                <script>
                    alert("Parametro incorrecto");
                    location.href = 'index_admin.php';
                </script> 

                <?php 
    }
} else {
    if (isset($_REQUEST['ofm']) && is_numeric($_REQUEST['ofm'])) {
        header("Content-Disposition: attachment; filename=Mubles-{$fecha}.xls; pagename=Reporte");
        $muebles = $controladorMueblesEnceres->verMueblesEnseresPorOficina($_REQUEST['ofm']);
        $oDto = $controladorSucursales->verUnaOficina($_REQUEST['ofm']);
        if (count($muebles) > 0) {
            ?>
                <table border="1">
                    <thead>
                        <tr> 
                            <td style="background-color: #6495ED; color: whitesmoke;">Oficina</td>
                            <td style="background-color: #6495ED; color: whitesmoke;">Descripcion</td>
                            <td style="background-color: #6495ED; color: whitesmoke;">Cantidad</td>
                            <td style="background-color: #6495ED; color: whitesmoke;">Valor</td>
                            <td style="background-color: #6495ED; color: whitesmoke;">Estado</td>
                        </tr>
                    </thead>
                    <tbody>
                        <?php