} } ?> <div class="contenedor"> <?php include './barra_navegacion_admin.html'; ?> <div class="cuerpo"> <?php $controladorSucursales = new ControladorGestionDeSucursales(); $controladorUsuarios = new ControladorGestionDeUsuarios(); $responsables = $controladorUsuarios->verResponsables(); if (isset($_REQUEST['btnRegistrar'])) { if ($_REQUEST['txtNombre'] != "" && $_REQUEST['txtSucuarsal'] != "") { echo $controladorSucursales->registrarOficina($_REQUEST['txtNombre'], $_REQUEST['txtSucuarsal']); ?> <script> var segundos = 3; var direccion = 'index_admin.php'; milisegundos = segundos * 1000; window.setTimeout("window.location.replace(direccion);", milisegundos); </script> <?php } else { ?>
echo $controlador->eliminarResponsable($_REQUEST['num']); ?> <script> var segundos = 3; var direccion = 'responsables.php?re=v'; milisegundos = segundos * 1000; window.setTimeout("window.location.replace(direccion);", milisegundos); </script> <?php } else { if (isset($_REQUEST['re'])) { switch ($_REQUEST['re']) { case "v": $responsables = $controlador->verResponsables(); if (count($responsables) > 0) { ?> <div class = "list"> <h3 style="color: #6495ED; font-family: 'arial';">Listado de responsables</h3> <div class="buscador"> <table> <tr> <td><label for="Filtro">Escriba algún indicio del responsable:</label></td> <td><input id="Filtro" name="Filtro" type="text" placeholder="Ingrese una letra, número, o palabra." maxlength="15"></td> </tr> </table> </div> <div class="tabla">