📄 user_pwd_changed.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="java.util.Date" %>
<%@ page errorPage="/error/error.jsp" %>
<%
String sUserID = session.getAttribute("UserID").toString();
String loginuser = session.getAttribute("loginuser").toString();
String sPassword = session.getAttribute("Password").toString();
byte temp [];
temp=loginuser.getBytes("iso-8859-1");
loginuser=new String(temp);
temp=sPassword.getBytes("iso-8859-1");
sPassword=new String(temp);
%>
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html"; charset="gb2312">
<link href="css/style.css" rel="stylesheet" type="text/css">
<TITLE>更改工号 <%= loginuser %> 密码</TITLE>
<script src="js/checkdata.js" type="text/javascript"></script>
</HEAD>
<script language="JavaScript">
function CheckSubmit(){
if ( (document.all("OldPwd").value.length==0))
{
window.alert("请输入原始密码!");
document.all("OldPwd").focus();
return false;
}
if (getLength(document.all("OldPwd").value)>15)
{
window.alert("原始密码长度不能超过15位!");
document.all("OldPwd").focus();
return false;
}
if ( (document.all("NewPwd").value.length==0))
{
window.alert("请输入新的密码!");
document.all("NewPwd").focus();
return false;
}
if (getLength(document.all("NewPwd").value)>15)
{
window.alert("新的密码长度不能超过15位!");
document.all("NewPwd").focus();
return false;
}
if ( (document.all("ConPwd").value.length==0))
{
window.alert("请输入确认密码!");
document.all("ConPwd").focus();
return false;
}
if (getLength(document.all("ConPwd").value)>15)
{
window.alert("确认密码长度不能超过15位!");
document.all("ConPwd").focus();
return false;
}
if (document.all("OldPwd").value != document.all("TOldPwd").value){
window.alert("原始密码不正确,请重新输入!");
document.all("OldPwd").focus();
return false;
}
if (document.all("NewPwd").value != document.all("ConPwd").value){
window.alert("确认密码必须与新的密码相同,请重新输入!");
document.all("ConPwd").focus();
return false;
}
document.all("TNewPwd").value = document.all("NewPwd").value;
document.all("TConPwd").value = document.all("ConPwd").value;
return true;
}
function ResetValue(){
document.all("OldPwd").value="";
document.all("NewPwd").value="";
document.all("ConPwd").value="";
}
function modPwd(){
r=CheckSubmit();
if (r) {
ask=confirm("你确定修改原始密码吗?\n\n点“确定”继续,点“取消”返回");
if (ask){
sHref="User_Operate1.jsp?TUserID="+document.all("TUserID").value
+"&TUserCode="+document.all("TUserCode").value
+"&TUserName=-1"
+"&TUserPwd="+document.all("TNewPwd").value
+"&TRemark=-1"
+"&TOrganID=-1"
+"&TAction=changepwd";
window.open(sHref,"_self","left=300,top=300,width=200, height=150,status=no,menubar=no,location=no,resizable=no,alwaysRaised=yes,z-look=yes,depended=yes");
}
}
}
</script>
<BODY BGCOLOR=#FFFFFF border="0" LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr >
<td> </td>
<td> </td>
<td align="center" height="20" background="images/bg_main2.png">更改工号 <font color="blue"><%=loginuser%></font> 密码</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<table align="center" name="Organ" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td align="right"><font color="#31639C">原始密码:</font></td>
<td align="center" height="27"><input size="15" name="OldPwd" style="border:1px solid #127ace; FONT-SIZE: 9pt; COLOR: #078bdf; FONT-FAMILY: Verdana; float:left" type="password"></td>
<td><font color="red"> * </font></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td align="right"><font color="#31639C">新的密码:</font></td>
<td align="center" height="27"><input size="15" name="NewPwd" style="border:1px solid #127ace; FONT-SIZE: 9pt; COLOR: #078bdf; FONT-FAMILY: Verdana; float:left" type="password"></td>
<td><font color="red"> * </font></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td align="right"><font color="#31639C">确认密码:</font></td>
<td align="center" height="27"><input size="15" name="ConPwd" style="border:1px solid #127ace; FONT-SIZE: 9pt; COLOR: #078bdf; FONT-FAMILY: Verdana; float:left" type="password"></td>
<td><font color="red"> * </font></td>
<td> </td>
</tr>
</table>
<table align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td>
<table>
<tr>
<td>
<input type="hidden" name="TUserID" value=<%=sUserID%>>
<input type="hidden" name="TUserCode" value=<%=loginuser%>>
<input type="hidden" name="TOldPwd" value=<%=sPassword%>>
<input type="hidden" name="TNewPwd" value="">
<input type="hidden" name="TConPwd" value="">
<input type="button" value="提 交" name="B1" style="font-size: 12px; color: #078bdf; background: #ffffe0; line-height: 100%; font-family: 宋体; border: 1px solid #31639c; padding-top: 2px; padding-bottom: 0px"onclick="modPwd();">
<input type="button" value="重 置" name="B2" style="font-size: 12px; color: #078bdf; background: #ffffe0; line-height: 100%; font-family: 宋体; border: 1px solid #31639c; padding-top: 2px; padding-bottom: 0px" onclick="ResetValue()">
<input type="button" value="取 消" name="B3" style="font-size: 12px; color: #078bdf; background: #ffffe0; line-height: 100%; font-family: 宋体; border: 1px solid #31639c; padding-top: 2px; padding-bottom: 0px" onclick="javascript:window.close()">
</td>
</tr>
</table>
</td>
<td> </td>
</tr>
</table>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -