⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin_login.jsp

📁 用Jsp实现的图书管理系统代码
💻 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>
<script language=javascript>
<!--
function SetFocus()
{
if (document.Login.username.value=="")
	document.Login.username.focus();
else
	document.Login.username.select();
}
function CheckForm()
{
	if(document.Login.username.value=="")
	{
		alert("请输入用户名!");
		document.Login.username.focus();
		return false;
	}
	if(document.Login.password.value == "")
	{
		alert("请输入密码!");
		document.Login.password.focus();
		return false;
	}
	}
//-->
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>管理员登录</title>
<style type="text/css">
<!--
body {
	background-color: #99CCCC;
}
body,td,th {
	font-size: 14px;
	color: #000000;
}
a:link {
	color: #333333;
}
a:visited {
	color: #996600;
}
a:active {
	color: #999900;
}
-->
</style></head>

<body>
<form name="Login" method="post" action="admin_logincheck.jsp">
  <table width="100%"  border="0">
    <tr>
      <td width="25%" height="295">&nbsp;</td>
      <td width="14%">&nbsp;</td>
      <td width="36%"><img src="../images/b2aaa.gif" width="345" height="117">
        <table width="100%"  border="0" cellpadding="0" cellspacing="8">
        <tr align="center">
          <td height="34" colspan="2"><span class="style1"><font size="3"><strong>图书管理系统后台管理员登录</strong></font></span></td>
          </tr>
        <tr>
          <td align="right">用户名称:</td>
          <td><input name="username"  type="text"  id="username" maxlength="20" style="width:160px;border-style:solid;border-width:1;padding-left:4;padding-right:4;padding-top:1;padding-bottom:1" onmouseover="this.style.background='#D6DFF7';" onmouseout="this.style.background='#FFFFFF'" onFocus="this.select(); "></td>
        </tr>
        <tr>
          <td align="right">用户密码:</td>
          <td><input name="password"  type="password" id="password" style="width:160px;border-style:solid;border-width:1;padding-left:4;padding-right:4;padding-top:1;padding-bottom:1" onFocus="this.select(); " onmouseover="this.style.background='#D6DFF7';" onmouseout="this.style.background='#FFFFFF'" maxlength="20"></td>
        </tr>
        <tr align="center">
          <td colspan="2"> <input name="Submit"   type="submit"   value=" 确&nbsp;认 " onClick="CheckForm()">
                &nbsp;
                <input name="reset" type="reset"  id="reset" value=" 清&nbsp;除 " >
                <br>
                <br>
                若忘记用户名或密码,请与管理人员联系<br>
            <strong> </strong> </div></td>
          </tr>
      </table>      </td>
      <td width="25%" align="right" valign="top"><a href="../index.jsp">返回首页</a></td>
    </tr>
  </table>
</form>
<script language="JavaScript" type="text/JavaScript">
SetFocus();
</script>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -