<?php } break; default: ?> <script> location.href = "index_admin.php"; </script> <?php } } else { if (isset($_REQUEST['id']) && is_numeric($_REQUEST['id'])) { $tDto = $controlador->verTipo($_REQUEST['id']); if ($tDto != null) { $clases = $controlador->verClases(); $clDto = $controlador->verClase($tDto->getIdClase()); ?> <form class="formTipo" id="signupForm" action="tipos.php" method="post"> <h3 style="color: #6495ED; font-family: 'arial';">Modifique el tipo de dispositivo o priférico</h3> <hr> <table> <tr> <td></td> <td><input type="text" name="txtNumero" id="txtNumero" hidden="true" value="<?php echo $tDto->getIdTipo(); ?> "></td>
<td style="background-color: #6495ED; color: whitesmoke;">RAM</td> <td style="background-color: #6495ED; color: whitesmoke;">Disquete</td> <td style="background-color: #6495ED; color: whitesmoke;">Cd-Rom</td> <td style="background-color: #6495ED; color: whitesmoke;">Antivirus</td> <td style="background-color: #6495ED; color: whitesmoke;">Sistema operativo</td> <td style="background-color: #6495ED; color: whitesmoke;">Sistema operativo Key</td> <td style="background-color: #6495ED; color: whitesmoke;">Office</td> <td style="background-color: #6495ED; color: whitesmoke;">Office Key</td> </tr> </thead> <tbody> <?php foreach ($dispositivos as $dDto) { $pDto = $controladorSucursales->verUnPuesto($dDto->getIdPuesto()); $tDto = $controladorDispositivos->verTipo($dDto->getIdTipo()); $mDto = $controladorDispositivos->verMarca($dDto->getIdMarca()); $eDto = $controladorMueblesEnceres->verEstado($dDto->getIdEstado()); ?> <tr> <td><?php echo utf8_encode($oDto->getNombreOficina()); ?> </td> <td><?php echo utf8_encode($pDto->getNombrePuesto()); ?> </td> <td><?php echo utf8_encode($tDto->getNombreTipo()); ?>