📄 changpassword.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GB2312"%>
<jsp:directive.page import="com.captainli.struts.form.LoginForm"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>checkPassword</title>
<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="../css/sys.css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
body {
background-color:#FFFFFF;
margin-left: 5px;
margin-top: 5px;
margin-right: 5px;
margin-bottom: 5px;
}
a:link {
color: #1A438E;
text-decoration: underline;
}
a:hover {
color: #000000;
text-decoration: none;
}
a:visited {
text-decoration: underline;
}
a:active {
text-decoration: underline;
}
.style1 {
color: #1A438E;
font-size: 12px;
}
</style>
<script language="javascript" type="text/javascript">
function check(){
if(document.form1.pwd_old.value==""){
window.alert("请输入原始密码!");
document.form1.pwd_old.focus();
return false;
}
if(document.form1.pwd_new.value==""){
window.alert("请输入新密码!");
document.form1.pwd_new.focus();
return false;
}
if(document.form1.pwd_new.value != document.form1.pwd_new2.value){
window.alert("两次密码输入不一致!");
return false;
}
if(document.form1.pwd_old.value != document.form1.old_pwd.value){
window.alert("请正确输入您的原始密码!");
document.form1.pwd_old.focus();
return false;
}
}
</script>
</head>
<%
LoginForm form = (LoginForm)session.getAttribute("users");
String l_password = form.getL_password().toString();
%>
<body>
<form name="form1" method="post" action="../changPwd.do">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
<tr>
<td><img src="../images/system/r_1.gif" alt="" width="6" height="27" /></td>
<td width="100%" background="../images/system/r_0.gif">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td> <span class="style1">修改密码</span></td>
<td align="right"> </td>
</tr>
</table>
</td>
<td><img src="../images/system/r_2.gif" alt="" width="6" height="27" /></td>
</tr>
<tr>
<td></td>
<td>
<table align="center" cellpadding="4" cellspacing="1" class="toptable grid" border="1">
<tr>
<td width="25%" height="30" align="right" class="style1">原密码:</td>
<td width="75%" class="category"><input type="password" id="pwd_old" name="pwd_old" style="width:200px">
<input name="old_pwd" type="hidden" id="old_pwd" value="<%= l_password %>"></td>
</tr>
<tr>
<td height="30" align="right" class="style1">新密码:</td>
<td class="category"><input type="password" name="pwd_new" id="pwd_new" style="width:200px"></td>
</tr>
<tr>
<td height="30" align="right" class="style1">确认新密码:</td>
<td class="category"><input type="password" name="pwd_new2" id="pwd_new2" style="width:200px"></td>
</tr>
<tr>
<td height="30"> </td>
<td class="category">
<input type="submit" value=" 确认修改 " onClick="return check()" class="button">
<input type="reset" value=" 重置 " class="button">
</td>
</tr>
</table>
</td>
<td></td>
</tr>
<tr>
<td><img src="../images/system/r_4.gif" alt="" width="6" height="6" /></td>
<td> </td>
<td><img src="../images/system/r_3.gif" alt="" width="6" height="6" /></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -