📄 login.ftl
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<meta name="description" content="description"/>
<meta name="keywords" content="keywords"/>
<meta name="author" content="author"/>
<link rel="stylesheet" type="text/css" href="../css/default.css" media="screen"/>
<title>用户登陆页面</title>
</head>
<body>
<link rel="stylesheet" type="text/css" href="style/basic.css">
<div class="rounded">
<h2> </h2>
<div class="main">
<form id="loginForm" method="post" action="login.do" onSubmit="return checkForm(this)">
<table width="350" align="center" border="1" class="table">
<caption><h1>用户登录</h1></caption>
<tr>
<td align="right">用户名:</td>
<td> <input name="username" type="text" /></td>
<td width="20%">
<font color="red">${fieldErrors.get("username")?if_exists}</font>
</td>
</tr>
<tr>
<td align="right">密 码:</td>
<td><input name="password" type="password" /></td>
<td width="20%">
<font color="red">${fieldErrors.get("password")?if_exists}</font></td>
</tr>
<TR><td colspan="2" >下一次记住我<input type="checkbox" name="rememberMe"/></td></TR>
<tr>
<td colspan=3 align="center">
<input name="power" type="hidden" value="0"/>
<input class="btn" type="submit" value="提交"/>
<input name="reset" type="reset" class="btn" value="重置"/>
<a href="register!init.do">注册新用户</a>
</td>
</tr>
</table>
</form>
<script language="javascript">
function checkForm(form){
if(isEmpty(form.username)||isEmpty(form.password)){
alert("请将必填项填写完整的登录信息!");
return false;
}
}
</script>
</div>
<div class="footer"><p> </p></div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -