📄 login.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html>
<head>
<title>管理界面</title>
<style type="text/css">
<!--
body {
background-image: url(images/bg.gif);
margin: 0px;
background-repeat: repeat-x;
}
table,td{
font-family:"宋体";
font-size:12px;
}
.inputtext{
border-left:1px solid balck;
border-right:1px solid balck;
border-top:1px solid balck;
border-bottom:1px solid balck;
}
.loginbg {
font-size: 12px;
width: 59px;
height: 26px;
background-image: url(images/login_bg.gif);
border: none;
padding-top: 3px;
color:white;
-->
</style>
</head>
<body>
<script language="javascript">
function checklogin()
{
if(document.loginForm.username.value=='')
{alert('请输入用户名');
document.loginForm.username.focus();
return false
}
if (document.loginForm.password.value=='')
{alert('请输入密码');
document.loginForm.password.focus();
return false
}
if (document.loginForm.rand.value=='')
{alert('请输入验证码');
document.loginForm.rand.focus();
return false
}
}
</script>
<html:form action="/admin/login" onsubmit="return checklogin();">
<table width="100%" height="98" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="50%" align="center" height="34" border="0"
cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/admin_02.gif" width="291" height="34"></td>
</tr>
</table>
<table width="100%" height="30" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
<table width="50%" height="261" border="0" align="center"
cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<table width="464" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3"><img src="images/admin_05.gif" width="457"
height="40" border="0" usemap="#Map"></td>
</tr>
<tr>
<td width="142" rowspan="3"><img src="images/admin_07.gif"
width="142" height="250"></td>
<td width="240" valign="top"><img src="images/admin_08.gif"
width="240" height="42"></td>
<td width="82" rowspan="3"><img src="images/admin_09.gif"
width="75" height="250"></td>
</tr>
<tr>
<td height="107" valign="top" background="images/images_10.gif">
<table width="85%" align="center" height="100%" border="0"
cellpadding="0" cellspacing="0">
<tr>
<td width="20%" height="30">用 户:</td>
<td width="80%" height="30"><html:text property="username"
maxlength="14" size="10" styleClass="inputtext" /></td>
</tr>
<tr>
<td height="25">密 码:</td>
<td height="25"><html:password property="password" maxlength="14"
size="10" styleClass="inputtext" redisplay="false" /></td>
</tr>
<tr>
<td height="25">验证码:</td>
<td height="25"><html:text property="rand" size="10"
maxlength="14" styleClass="inputtext" /> <img border=0
src="../imageservlet"><font color="#FF0000" /></td>
</tr>
<tr>
<td height="25" colspan="2" align="center"><html:errors /></td>
</tr>
<tr>
<td height="25" colspan="2">
<p align="center"> <html:submit styleClass="loginbg">登 陆</html:submit>
<html:reset styleClass="loginbg">清 除</html:reset>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="72" valign="bottom"><img src="images/admin_11.gif" width="240"
height="64"></td>
</tr>
</table>
</td>
</tr>
</table>
</html:form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -