Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
[email protected] web/email now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!

Paste

Pasted as JavaScript by LS ( 9 years ago )
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="es">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <link rel="stylesheet" href="/AgendaWeb/resources/css/cssLayout.css">
  <link rel="stylesheet" href="/AgendaWeb/resources/css/cssComponente.css">
  <link rel="stylesheet" href="/AgendaWeb/resources/css/jquery-ui.min.css">
 </head>
 <body>
  <jsp id="usuario" class="AgendaWeb.modelo.jb.JbTusuario" scope="request"></jsp>
  
  <form id="formModificarTusuario" action="/MiAgendaWeb/ServletModificarTusuarios" method="post">
   <h2>Modificar usuario del sistema</h2>
   <label for="txtNombre" class="label">Nombre:</label>
   <input type="text" id="txtNombre" name="txtNombre" class="text" value="<%=usuario.getNombreUsuario()%>" />
   <br>
   <label for="txtCorreo" class="label">Correo:</label>
   <input type="text" id="txtCorreo" name="txtCorreo" class="text" value="<%=usuario.getCorreoUsuario()%>" />
   <br>
   <label for="txtPermisos" class="label">Permisos:</label>
   <select name="txtPermisos" class="text">
    <option value="<%=usuario.getPermisos()%>" selected="selected"><%=usuario.getPermisos()%></option>
    <option value="Usuario">Usuario</option>
    <option value="Admin">Administrador</option>
   </select> <br>
   <br>
   <label for="radioCambiarClave" class="label">¿Cambiar contraseña?</label>
   <br>
   <input type="radio" id="radioCambiarClaveSi" name="radioCambiarClave" onclick="visibilidadRadio(this.value)" value="Si" />Si
   <input type="radio" id="radioCambiarClaveNo" name="radioCambiarClave" checked="checked" onclick="visibilidadRadio(this.value)" value="No" />No
   <input type="text" id="aux" style="display: none" />
   <br>
   <div id="divCambiarClave" xss=removed>
    <label for="txtClaveActual" class="label">Contraseña actual:</label>
    <input type="password" id="txtClaveActual" name="txtClaveActual" class="text" />
    <br>
    <label for="txtClaveNueva" class="label">Contraseña nueva:</label>
    <input type="password" id="txtClaveNueva" name="txtClaveNueva" class="text" />
    <br>
    <label for="txtClaveNueva2" class="label">Repita contraseña:</label>
    <input type="password" id="txtClaveNueva2" name="txtClaveNueva2" class="text" />
    <br>
   </div>
   <input type="submit" value="Modificar usuario" class="button" />
  </form>
  </section>
 </body>
 [removed][removed]
 [removed][removed]
 [removed]
  function visibilidadRadio(radioCambiarClave) {
   
   document.getElementById("aux").value = radioCambiarClave;
  
   if (document.getElementById("aux").value == "Si") { 

    document.getElementById("divCambiarClave").style.display = "inherit";
   
   } else {
       
    document.getElementById("divCambiarClave").style.display = "none";
    document.getElementById("txtClaveActual").value="";
    document.getElementById("txtClaveNueva").value="";
    document.getElementById("txtClaveNueva2").value="";
    
   }
  }
 [removed]

</html>

 

Revise this Paste

Children: 80902
Your Name: Code Language: