Ejemplo n.º 1
0
                                </div>

                                <?php 
                        break;
                    default:
                        ?>

                            <script>
                                location.href = "index_admin.php";
                            </script> 

                        <?php 
                }
            } else {
                if (isset($_REQUEST['id']) && is_numeric($_REQUEST['id'])) {
                    $reDto = $controlador->verUnResponsable($_REQUEST['id']);
                    if ($reDto != null) {
                        ?>

                        <form class="formPuesto" id="signupForm" method="post" action="responsables.php">
                            <h3 style="color: #6495ED; font-family: 'arial';">Modifique el responsable </h3>
                            <hr>
                            <table>
                                <tr>
                                    <td><label for="txtIdentificacion">Número de documento: </label></td>
                                    <td><input name="txtIdentificacion" id="txtIdentificacion" type="text" readonly="true" value="<?php 
                        echo $reDto->getNumeroDocumento();
                        ?>
">
                                        <label class="obligatorio"> * </label>
                                    </td>
Ejemplo n.º 2
0
                            <div class="tabla">
                                <table id="TablaFiltro" >
                                    <thead>
                                        <tr id="encabezado">
                                            <td>Nombre del puesto</td>
                                            <td>Oficina</td>
                                            <td>Responsable</td>
                                            <td>Modificar</td>
                                            <td>Eliminar</td>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php 
                                        foreach ($puestos as $pDto) {
                                            $oDto = $controladorSucursales->verUnaOficina($pDto->getNumOficina());
                                            $rDto = $controladorUsuarios->verUnResponsable($pDto->getIdResponsable());
                                            ?>
                                            <tr>
                                                <td><?php 
                                            echo utf8_encode($pDto->getNombrePuesto());
                                            ?>
</td>
                                                <td><?php 
                                            echo utf8_encode($oDto->getNombreOficina());
                                            ?>
</td>
                                                <td><?php 
                                            echo utf8_encode($rDto->getNombre() . " " . $rDto->getApellido());
                                            ?>
</td>
                                                <td><a href="puestos.php?id=<?php