📄 changepwd.jsp
字号:
<%@ include file="../checklogin.jsp" %>
<%@ page contentType="text/html; charset=gb2312"%>
<%@ page language="java"%>
<%@ page import="java.util.ArrayList" %>
<%@ page import="com.know.Module" %>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<%request.setCharacterEncoding("gb2312");%>
<script language="javascript">
var ctimer;
function init(){
if (document.all){
tim2.style.left=tim1.style.posLeft;
tim2.style.top=tim1.style.posTop+tim1.offsetHeight-6;
settimes();
}
}
function settimes(){
var time= new Date();
years=time.getYear();
months=time.getMonth();
days=time.getDay();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
if (hours<10)
hours="0"+hours;
if(mins<10)
mins="0"+mins;
if (secs<10)
secs="0"+secs;
tim1.innerHTML=years+"-"+months+"-"+days+" "+hours+":"+mins+":"+secs
tim2.innerHTML=years+"-"+months+"-"+days+" "+hours+":"+mins+":"+secs
ctimer=setTimeout('settimes()',960);}
function check(){
if(form1.pwd.value==""){
alert("请输入新密码!");
}else if(form1.rpwd.value==""){
alert("请重复新密码!");
}else if(form1.pwd.value!=form1.rpwd.value){
alert("两次密码输入不一致!");
}
else{
form1.submit();
}
}
</script>
<style type="text/css">
<!--
.STYLE6 {
font-size: 12px;
font-weight: bold;
}
.STYLE7 {font-size: 12px}
-->
</style>
<link href="../css/left.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
background-image: url(../images/aa.gif);
}
-->
</style></head>
<html>
<body onLoad="init()">
<div align="center" Id="tim1" Style="position:absolute; width:102px; height:11px; top:19px; left:180px"
class="time"></div>
<div Id="tim2"
Style="position:absolute; filter:flipv() alpha(opacity=20); font-style:italic"
class="time"></div>
<link href="../css/left.css" rel="stylesheet" type="text/css">
<form action="change.jsp" method="post" name="form1" >
<br />
<table width="731" border="0" align="center" >
<tr>
<td width="43"> </td>
<td width="559"><span class="STYLE7">当前时间:</span></td>
<td width="115"><a href="../../index.jsp" target="_blank">网站首页</a></td>
</tr>
</table>
<br />
<table width="712" border="0" align="center" class="tableBorder">
<tr >
<td colspan="2"><span class="STYLE7">·</span><span class="STYLE6">修改密码</span></td>
</tr>
<tr >
<td width="100"><div align="right" class="STYLE7">输入新密码:</div></td>
<td><div align="left">
<input name="pwd" type="password" class="textbox" id="pwd" >
</div></td>
</tr>
<tr >
<td><div align="right" class="STYLE7">重复新密码:</div></td>
<td><input name="rpwd" type="password" class="textbox" id="rpwd" ></td>
</tr>
<tr >
<td colspan="2">
<input type="button" name="Submit" value="提交" onClick="check()" class="btn">
<INPUT type=reset name=b2 value="重填" class="btn"> </td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -