?? password.jsp
字號:
<%--
模塊名稱:個人助理
模塊功能:密碼管理
版 本:V1.0
著 作 人:蔡靜
著作日期:2001-10-26
使用說明:
主要技術(shù)說明:
參考文獻:法律事務(wù)設(shè)計書
修改歷史:= = = = = = = = = = = = = = = = = = = = = = = = = =
修改日期:
修 改 人:
修改理由:
修改出處:
= = = = = = = = = = = = = = = = = = = = = = = = = =
--%>
<%@ page contentType= "text/html; charset=gb2312" %>
<%@ page language="java" import="java.sql.*" %>
<%@ page import="system.ExtendString" %>
<jsp:useBean id="db" class="dbconnection.DbConnection" scope="page" />
<%
String sql = "select passwd from t_employee where employee_id='";
sql = sql + session.getAttribute("employee_id") + "'";
String passwd = "";
ResultSet rs = db.executeQuery(sql);
if (rs.next()) {
passwd = rs.getString("passwd");
}
ExtendString es = new ExtendString();
passwd = es.decrypt(passwd);
%>
<html>
<head>
<title>密碼管理</title>
<%@ include file="../inc/config.jsp" %>
</head>
<body class=page>
<script language="javascript">
function checkForm() {
var oldpasswd = document.form1.oldpasswd.value;
var password = document.form1.passwd.value;
if (oldpasswd != "")
oldpasswd = oldpasswd.toUpperCase();
if ((oldpasswd != password) && ((oldpasswd!="") || (password!="123456"))){
alert("輸入的密碼與舊密碼不符,請重輸!");
document.form1.oldpasswd.value = "";
document.form1.oldpasswd.focus();
return false;
}
if (document.form1.newpasswd.value != document.form1.confirmpasswd.value) {
alert("兩次輸入的密碼不符,請重輸!");
document.form1.newpasswd.value = "";
document.form1.confirmpasswd.value = "";
document.form1.newpasswd.focus();
return false;
}
return true;
}
</script>
<!--顯示工具條-->
<table width="98%" align="center" cellspacing="0" border="0" cellpadding="0">
<tr>
<td> </td>
<td align="center" width="108" height="30" background="../images/title_bg.gif">
<script language=JavaScript>
document.write("<span class=\"title\">"+document.title+"</span>");
</script>
</td>
</tr>
</table>
<table width="98%" background="../images/line.gif" border="0" cellspacing="0" cellpadding="0" height="12" align="center">
<tr>
<td> </td>
</tr>
</table>
<!--顯示工具條結(jié)束-->
<form name="form1" method="post" action="PasswordRun.jsp">
<table width="50%" border="0" cellspacing="1" cellpadding="10" class="table_bg" align="center">
<tr>
<td width="28%" class="title_bg" height="4" align="right">舊密碼:</td>
<td width="72%" class="tr_bg1" height="0">
<input type="password" name="oldpasswd" size="20" class="input" maxlength="70">
</td>
</tr>
<tr>
<td width="28%" class="title_bg" height="9" align="right">新密碼:</td>
<td width="72%" class="tr_bg1" height="9">
<input type="password" name="newpasswd" size="20" class="input" maxlength="70">
</td>
</tr>
<tr>
<td width="28%" class="title_bg" align="right"> 密碼確認(rèn):</td>
<td width="72%" class="tr_bg1">
<input type="password" name="confirmpasswd" size="20" class="input" maxlength="70">
</td>
</tr>
</table>
<div align="center">
<input type="submit" name="save" value="保存" class="button" onClick="return checkForm()">
<input type="reset" name="reset" value="重寫" class="button">
</div>
<input type="hidden" name="passwd" value="<%=passwd%>">
</form>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -