echo $controlador->eliminarTipo($_REQUEST['num']); ?> <script> var segundos = 3; var direccion = 'tipos.php?ti=v'; milisegundos = segundos * 1000; window.setTimeout("window.location.replace(direccion);", milisegundos); </script> <?php } else { if (isset($_REQUEST['ti'])) { switch ($_REQUEST['ti']) { case "r": $clases = $controlador->verClases(); ?> <form class="formTipo" id="signupForm" action="tipos.php" method="post"> <h3 style="color: #6495ED; font-family: 'arial';">Registre un tipo de dispositivo o periférico</h3> <hr> <table> <tr> <td><label for="txtTipo">Tipo de dispositivo:</label></td> <td><input type="text" name="txtTipo" id="txtTipo" maxlength="20"> <label class="obligatorio"> *</label></td> </tr> <tr> <td><label for="txtClase">Clase de equipo:</label></td> <td> <select id="txtClase" name="txtClase">