📄 login_index.jsp
字号:
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/view_admin/inc/publictag.jsp"%>
<%@ taglib uri="/auth.tld" prefix="authcode"%>
<html:html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><bean:message key="Login.about"/></title>
<link href="/News/css/style.css" rel="stylesheet" type="text/css">
<script type='text/javascript' src='/News/dwr/interface/LoginDWR.js'></script>
<script type='text/javascript' src='/News/dwr/engine.js'></script>
<script type='text/javascript' src='/News/dwr/util.js'></script>
</head>
<script type="text/javascript">
function load()
{
document.getElementById('username').value = '';
document.getElementById('pwd').value = '';
document.getElementById('username').focus();
}
function focusTo(key)
{
if(event.keyCode == 0x0D)
{
document.getElementById(key).focus();
}
}
function login()
{
var username = document.getElementById('username').value;
var pwd = document.getElementById('pwd').value;
if(username == '' || pwd == '')
{
alert('请输入用户名及密码!');
return;
}
LoginDWR.login(username, pwd, {callback:function(url){redirectTo(url);}, errorHandler:function(msg){load(); alert(msg);}});
}
function redirectTo(url)
{
location.href = url;
}
</script>
<BODY leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor="#799AE1" onload="load();">
<br>
<br>
<br>
<html:form action="/admin_Action.do?method=login" method="POST">
<table width="413" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#EEEAD6">
<tr>
<td height="29" colspan="3" background="images/topbg.gif">
<table width="95%" align="right" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="middle">
<B><bean:message key="Login.titlelogin"/></B>
</td>
<td width="8%" align="right"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="3" background="images/link.GIF"></td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="75" background="images/bgtop.gif">
<table width="100%" height="75" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="30%" align=center>
<bean:message key="Login.versionlogin"/>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="95%" border="0" align="center">
<tr>
<td>
<fieldset>
<legend accesskey="F" align="left"><bean:message key="Login.form"/></legend>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="10%"></td>
<td width="20%"></td>
<td>
<bean:message key="Login.username"/>
<html:text property="username" size="10" onkeypress="focusTo('pwd');"/>
</td>
</tr>
<tr>
<td width="10%"></td>
<td width="20%"></td>
<td>
<bean:message key="Login.pwd"/>
<html:password property="pwd" size="12" onkeypress="focusTo('submit');"/>
</td>
</tr>
<tr>
<td width="10%"></td>
<td width="20%"></td>
<td>
验证码:
<input type="text" name="authcode" id="authcode" size="4"/>
<authcode:Auth/>
</td>
</tr>
<tr>
<td width="10%"></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="3" align="center">
<html:button property="submit" onclick="login();">
<bean:message key="Login.submit"/>
</html:button>
</td>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="3" background="images/link.GIF"></td>
</tr>
<tr>
<td height="3" background="images/linkbom.GIF" colspan="3"></td>
</tr>
</table>
</html:form>
<jsp:include flush="true" page="loadingfooter.jsp"/>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -