📄 login.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>管理员登陆</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
color: #6666FF;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
-->
</style></head>
<script language="javascript">
function check(){
if(login.UserName.value==""){
alert("请输入用户名");
return false;
history.back();
login.UserName.focus();
}
if(login.Password.value==""){
alert("请输入你的登录密码");
return false;
history.back();
login.Password.focus();
}
}
</script>
<body>
<table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th width="58" background="image/admin_bg_1.gif" scope="col"> </th>
<th width="400" height="27" background="image/admin_bg_1.gif" scope="col"> </th>
</tr>
<tr>
<th align="left" valign="top" background="image/admin_bg.gif" scope="row"><img src="image/u=1725436035,1126197281&gp=1.jpg" width="58" height="140"></th>
<th height="125" align="left" valign="middle" background="image/admin_bg.gif" scope="row">
<form name="login" method="post" action="login_check.jsp">
<table width="350" border="0" cellspacing="0" cellpadding="0">
<tr>
<th colspan="2" scope="col"> </th>
</tr>
<tr>
<th width="131" height="25" scope="row"><div align="left"> 管理员名称</div></th>
<th width="269" scope="row"><div align="left">
<input name="UserName" type="text" id="UserName">
</div></th>
</tr>
<tr>
<th height="26" scope="row"><div align="left"> 管理员密码</div></th>
<th scope="row"><div align="left">
<input name="Password" type="password" id="Password">
</div></th>
</tr>
<tr>
<th colspan="2" scope="row">
<input type="submit" name="Submit" value="登陆" onClick="return check()">
<input name="reset" type="reset" id="reset" value="重写"></th>
</tr>
</table>
</form></th>
</tr>
<tr>
<th background="image/admin_bg_1.gif" scope="row"> </th>
<th height="10" background="image/admin_bg_1.gif" scope="row"> </th>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -