📄 logon.jsp
字号:
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page isELIgnored="false" %>
<html>
<head>
<title>登录页面</title>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../pub/common.css">
<script language="javascript">
function checkvalue()
{
var f = document.forms["main"];
if( f.username.value.length==0 )
{
alert( "请输入用户名!" );
f.username.focus();
return false;
}
if( f.password.value.length==0 )
{
alert( "请输入密码!" );
f.password.focus();
return false;
}
return true;
}
function jumptoreg()
{
window.location="register.jsp";
}
</script>
</head>
<body>
<center>
<table border="0" width="350">
<tr>
<td colspan="2" align="center">用户登录</td>
</tr>
<tr>
<td colspan="2" align="left"><font color="red">${msg}</font></td>
</tr>
<form name="main" method="post" action="logon" onsubmit="return checkvalue();"/>
<tr>
<td align="right">用户名:</td>
<td><input type="text" name="username"></td>
</tr>
<tr>
<td align="right">密码:</td>
<td><input type="password" name="password"></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="登 录">
<input type="reset" value="重 填">
<input type="button" value="注 册" onClick="javascript:jumptoreg();">
</td>
</tr>
</form>
</table>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -