?? updatenursepasssword.jsp
字號:
?
+
<%@ page language="java" pageEncoding="gbk"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/Css/LightBlue_Css.css"/>
<script type="text/javascript">
function check(form){
if(form.password1.value==""){
alert("請輸入密碼,檢查您輸入的是否正確!");
}else{
document.nursePasswordForms.submit();
}
}
</script>
<title>護士信息表</title>
</head>
<body>
<form action="<%=request.getContextPath()%>/updatePasswordServlet?opertion=3" method="post" name="nursePasswordForms">
<table class="simple textCss">
<tr>
<th colspan="2" align="center" class="title">護士密碼修改</th>
</tr>
<tr>
<th width="30%" align="right">登錄名:</th>
<td><input type="text" name="loginName" value="<%=session.getAttribute("nurseName")%>" class="txt" disabled="disabled"></td>
</tr>
<tr>
<th width="30%" align="right">舊密碼:</th>
<td>
<input type="password" name="loginPassword" class="txt" onchange="pass(this)">
<script type="text/javascript">
function pass(obj){
var ob=obj.value;
var pa=<%=(String)session.getAttribute("nursePassword")%>
if(ob!=pa){
alert("您輸入的密碼和登錄時的密碼不一樣!!");
obj.value="";
return;
}
}
</script></td>
</tr>
<tr>
<th width="30%" align="right">新密碼:</th>
<td>
<input type="password" name="password" class="txt" onchange="nursepass1(this)">
<script type="text/javascript">
function nursepass1(obj){
var pass1=obj.value;
var pa2=<%=(String)session.getAttribute("nursePassword")%>
if(pass1==pa2){
alert("您輸入的新密碼和原密碼相同!!");
document.nursePasswordForms.password.value="";
return ;
}
}
</script></td>
</tr>
<tr>
<th width="30%" align="right">確認密碼:</th>
<td>
<input type="password" name="password1" class="txt" onchange="nursepass()">
<script type="text/javascript">
function nursepass(){
var pass3=document.nursePasswordForms.password.value;
var pass2=document.nursePasswordForms.password1.value;
if(pass3!=pass2){
alert("您兩次輸入的密碼不一樣!!");
document.nursePasswordForms.password1.value="";
return;
}
}
</script></td>
</tr>
<tr>
<td colspan="2" background="imgs/color/color_qianse.jpg">
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="button" value="提交" class="buttonClass"onclick="return check(this.form);"></td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -