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

📄 admin.asp

📁 公文签收系统,短小精悍
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="md5.inc"-->

<% '登录检测
   user=trim(request.form("user"))
   password=ucase(md5(trim(request.form("password"))))
   if instr(user,"'")<>0 then m=9 end if
   if instr(user,"&")<>0 then m=9 end if
   if user<>"" and password<>"" and m<>9 then
       str="select * from user where 用户名='"&user&"' and 密码='"&password&"'"
	   set rs=conn.execute(str)
	   if not rs.eof then
	       if rs("用户类别")="超级管理员" then
		        session("adminadminadmin")=true
				session("adminadmin")=true
				session("admin")=true
		   else
		       if rs("用户类别")="栏目管理员" then
			       session("adminadmin")=true
				   session("admin")=true
			   else
			       if rs("用户类别")="一般用户" then
				      session("admin")=true
				   else
		   
				   end if
			   end if
		   end if
		   session("user_name")=rs("单位")
		   session("user")=user
		   response.redirect("list.asp")
	   else
           
	   end if
   end if
%>






<HTML><HEAD><TITLE>文件签收管理登录</TITLE>
<!--#include file="css.css"-->
<SCRIPT language=JavaScript>
 function form_check(){
  if(document.form1.user.value==""){window.alert("登录名不能为空");document.form1.user.focus();return (false);}
   if(document.form1.password.value==""){window.alert("登录密码不能为空");document.form1.password.focus();return (false);}
     }
</SCRIPT>
</HEAD>
<BODY leftmargin=0 topmargin=0 >
  	<FORM name="form1" onsubmit="return form_check();" method="post" action="admin.asp">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="90" class="unnamed18"> 
      <div align="center"><font color="#FF00FF"><!--#include file="top.asp"--></font></div></td>
  </tr>
</table>

<TABLE  width="760" height="385" border=0 align="center" cellPadding=0 cellSpacing=0 id=Table1>
 <TR>
    <TD 
    style="BACKGROUND-POSITION: left top; BACKGROUND-REPEAT: no-repeat; BACKGROUND-COLOR: #7e9fd8" 
    align=middle>      <TABLE width=260 border=0 align="center" cellPadding=5 cellSpacing=0 id=Table4>
          
          <TR>
            <TD height=25>              <TABLE id=Table5 cellSpacing=0 cellPadding=0 width="100%" 
              border=0>
                
                  <TR>
                    <TD align=right><IMG id=Image7 src="images/login_arrow.gif" 
                  border=0></TD>
                    <TD align=middle><IMG id=Image8 src="images/login_font.jpg"  border=0></TD></TR>
              </TABLE></TD></TR>
          <TR>
            <TD>
			
			
			
              <TABLE id=Table7 cellSpacing=0 cellPadding=5 width="100%" 
            bgColor=#9cb5e1 border=0>
                
          <tr> 
            <td height="40" class=loginBorderB > 
              <div align="center">用 户 名: 
                <input name="user" type="text" id="user" size="16" maxlength="20">
              </div></td>
          </tr>
          <tr> 
            <td height="40" class=loginBorderB > 
              <div align="center">用户密码: 
                <input name="password" type="password" id="password" size="16" maxlength="20">
              </div></td>
          </tr>
				
              </TABLE>
				
				
			</TD></TR>
          <TR>
            <TD height=35>
              <TABLE id=Table6 cellSpacing=0 cellPadding=0 width="100%" 
              border=0>
                <TR>
                  <TD align=middle width="50%">
                    <INPUT id=btnEnter   onmouseover="this.src='Images/login_btnLogin_hover.jpg'" 
                  onclick="return form_check();" 
                  onmouseout="this.src='Images/login_btnLogin.jpg'" type=image 
                  src="images/login_btnLogin.jpg" border=0 
                  name=btnEnter>
                  </TD>
                  <TD align=middle>
                    <INPUT id=btnExit  onmouseover="this.src='Images/login_btnCancel_hover.jpg'"    onclick=window.close() 
                  onmouseout="this.src='Images/login_btnCancel.jpg'" type=image  src="images/login_btnCancel.jpg" border=0 
                  name=btnExit>
                </TD></TR>
				
			  </TABLE>
				
			</TD></TR>
				
      </TABLE>
      </TD>
  </TR>
  <TR>
    <TD bgColor=#07359b height=4><IMG src="images/login_line2.jpg" width="582" height="4" border=0 id=Image6></TD>
  </TR>
  <TR>
    <TD align=middle bgColor=#07359b height=40>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
       
        <TR>
          <TD align=middle>&nbsp;</TD>
        </TR></TABLE></TD></TR>
		
	  </TABLE>
</FORM>
		  <%conn.close%>
</BODY></HTML>

⌨️ 快捷键说明

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