⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 changepassword.jsp

📁 前台
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<script>
    function check(){
        var theform = document.sun;
        if(theform.password.value==""){
            alert("您的现用密码不能为空!");
            theform.password.focus();
            return false;
        }
        if(theform.name.value==""){
            alert("新密码不能为空!");
            theform.name.focus();
            return false;
        }
        if(theform.tele.value==""){
            alert("确认密码不能为空!");
            theform.tele.focus();
            return false;
        }
    }
</script>
  <head>
<script>
    function checkpassword(){    
        var pas = document.getElementById("password");
        var pd = document.getElementById("tel").value;
        var pwd = document.getElementById("name").value;        
               
        if(pwd != pd){
            password.innerHTML = "您两次输入的密码不一致,请重新输入!";
            document.getElementById("name").focus();
            document.getElementById("name").value="";
            document.getElementById("tel").value="";
            return false;
        }else{
            password.innerHTML = "";
        }
    }
</script>
    <base href="<%=basePath%>">
    
    <title>交易撮合</title>
 <style type="text/css">
<!--
a:link {
	COLOR: #3e4a59; LINE-HEIGHT: 18px; FONT-FAMILY: "Verdana";text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
-->
</style>   
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
       <table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td height="21" bgcolor="#CEE7F7">
								<span class="STYLE27">&nbsp;&nbsp;您所在的位置:<a href="/webpk/userplatform/ptuserchange.jsp">个人信息</a> >>> 密码更改</span>								
							</td>
						</tr>
						
					</table> <br>
		<div align="center">
		   <form name="sun" action="/webpk/ptchangepassword.do" method="post" onSubmit="return check();">
			 <table border="0">			  
				<tr>
					<td>密码</td>
					<td><input type="password" name="password" value=""></td>	
					<td></td>			
				</tr>
				
				<tr>
					<td>新密码</td>
					<td><input type="password" name="name" id="name" ></td>
					<td></td>	
				</tr>
				<tr>
					<td>确认新密码</td>
					<td><input type="password" name="tel" id="tel" onblur="checkpassword();"></td>
						
				</tr>
				<tr>
				    <td colspan="2"><label id="password"></label></td>
				</tr>			
				<tr align="right">
				    <td colspan="2"><input type="submit" value="保 存"></td>
				</tr>				
			 </table>
		   </form>	
		</div>			
  </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -