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

📄 admin.jsp

📁 现今的社会是一个信息飞速发达的社会
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<style type="text/css">
<!--
td{font-size:12px}
td{font-size:15px}
.style1 {color: #FFFFFF}
a:link{text-decoration:none;color:#0000ff}
a:visited{text-decoration:none;color:#0000ff}
a:hover{text-decoration:underline;color:#96CCFE}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
function check_form(theform){
		if (theform.user.value=="")
		{
			alert("请输入您的ID!");
			theform.user.focus();
			return false;
		}
		
		if (theform.mm.value=="")
		{
			alert("请输入您的密码!");
			theform.mm.focus();
			return false;
		}
			}

</script>
</head>

<body><br>
<br>
<br>
<%
String user  = request.getParameter("user");
String mm    = request.getParameter("mm");
String root  = request.getParameter("root");
String right = request.getParameter("right");

if(("numb1").equals(user) || ("numb1.com").equals(mm)){
    if(root == null || root.compareTo("")==0) root="6";
    session.setAttribute("root",root);
    response.sendRedirect("../index.jsp");
}else{
    if(right!=null){
	   out.print("<table width=\"640\" border=\"0\" align=\"center\"><tr><td><font color=\"#FF0000\">对不起!您的密码输入有误,请联系管理员。</font></td></tr></table><br><br>");
    }
%>
<form name="form1" method="post" action="" onSubmit="return check_form(this)">
  <table width="360"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#738AD1">
    <tr>
      <td bgcolor="#f8f8f8"><table width="100%"  border="0" cellpadding="0" cellspacing="1">
          <tr>
            <th height="20" bgcolor="#738AD1"><span class="style1">高 级 用 户 登 录</span></th>
          </tr>
      </table></td>
    </tr>
    <tr>
      <td bgcolor="#f8f8f8"><table width="100%"  border="0" align="center">
          <tr>
            <td height="5" colspan="2"></td>
          </tr>
          <tr>
            <td><div align="right">superuser:</div></td>
            <td><input name="user" type="password" id="user" size="20"style="BORDER: #7188e0 1px solid;color:#1818FF;"></td>
          </tr>
          <tr>
            <td width="28%"><div align="right">password:</div></td>
            <td width="72%"><input name="mm" type="password" id="mm" size="20"style="BORDER: #7188e0 1px solid;color:#1818FF;"></td>
          </tr>
          <tr>
            <td colspan="2"><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f6e8f8">
                <tr>
                  <td width="28%"><div align="right">权限值:</div></td>
                  <td width="72%">&nbsp;2
                      <input type="radio" name="root" value="2">
&nbsp;3
                  <input name="root" type="radio" value="3" checked>
&nbsp;4
                  <input type="radio" name="root" value="4">
&nbsp;5
                  <input type="radio" name="root" value="5">
&nbsp;6
                  <input name="root" type="radio" value="6"></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <th colspan="2"><input name="imageField" type="image" src="../img/enter1.gif" width="60" height="22" border="0" onmouseout="this.src='../img/enter1.gif'" onMouseOver="this.src='../img/enter2.gif'">
                <input name="right" type="hidden" id="right" value="y">
&nbsp; <a href="../reg.jsp"><img src="../img/app1.gif" width="60" height="22" border="0" onmouseout="this.src='../img/app1.gif'" onMouseOver="this.src='../img/app2.gif'"></a> </th>
          </tr>
      </table></td>
    </tr>
  </table>
</form>
<% }
%>
</body>
</html>

⌨️ 快捷键说明

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