📄 system.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%@ page import="DataBase.DBConn"%>
<%@ page import="java.sql.ResultSet"%>
<script language=javascript>
function check()
{
if (document.form1.pwd1.value=="")
{alert("请输入旧密码!");
document.form1.pwd1.focus();
return false;
}
if (document.form1.pwd2.value=="")
{alert("请输入新密码!");
document.form1.pwd2.focus();
return false;
}
if (document.form1.pwd3.value=="")
{alert("请再次输入密码!");
document.form1.pwd3.focus();
return false;
}
if (document.form1.pwd3.value!=document.form1.pwd2.value)
{alert("密码不一致!请重新输入");
document.form1.pwd2.focus();
document.form1.pwd3.focus();
return false;
}
document.form1.ctype.value="edit";
document.form1.submit();
}
</script>
<html>
<head>
<title>网上考试系统</title>
<link rel="stylesheet" type="text/css" href="css.css">
</head>
<body topmargin="0" leftmargin="0">
<p>
<p align="center"><font class=test1>系统管理</font></p>
<div align="center">
<center>
<form name=form1 method="post" action="yanzheng6.jsp">
<input type="hidden" name="ctype" >
<table border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="250">
<tr>
<td align="right" bgcolor="#CBEFDC" width="100">旧密码</td>
<td align="center" bgcolor="#CBEFDC">
<input type="password" name="pwd1" size="12" class="line" ></td>
</tr>
<tr>
<td align="right" bgcolor="#CBEFDC" width="100">新密码</td>
<td align="center" bgcolor="#CBEFDC">
<input type="password" name="pwd2" size="12" class="line" ></td>
</tr>
<tr>
<td align="right" bgcolor="#CBEFDC" width="100">重复密码</td>
<td align="center" bgcolor="#CBEFDC">
<input type="password" name="pwd3" size="12" class="line" ></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="button" value="修改密码" name="B1" onclick="check()"></td>
</tr>
</table></form>
</center>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -