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

📄 edit_login.asp

📁 网上学生心里调查系统
💻 ASP
字号:
<!--#include file="config.asp" -->
<%
dim id,city,lx
id=trim(request("id"))
city=trim(request("ct"))

'+++++++++++++++++++++++++++++++++++++ 
'◆模块名称: 管理员登陆检查  
'+++++++++++++++++++++++++++++++++++++ 
sub admin_login()
  quhao=trim(request.form("quhao"))
  guanli=trim(request.form("guanli"))
  if quhao<>"" and guanli<>"" then
    set rs=server.createobject("adodb.recordset")
    rs.open "select * from city where 区号='"&quhao&"'",conn,1,1
    if rs.eof or rs.bof then 
      response.write "<font color=red>×</font>城市区号或密码错误!"
      response.redirect "edit_login.asp"
    end if
    str=rs("管理")
    checkgl=false
	if str="" then errwrite
	str=split(Cstr(str),"|")
	for i=0 to Ubound(str)
	  if guanli=Lcase(str(i)) then
        checkgl=true
	    exit for
	  else
	    checkgl=false
	  end if
    next
    
    if checkgl=false then
      response.write "<font color=red>×</font>城市区号或密码错误!"
    else
      session("quhao")=rs("区号")
      session("guanli")=rs("管理")
      response.redirect "edit_about.asp"
      response.end
    end if
  end if
end sub
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>管理登陆</title>
<link href="admin.css" rel="stylesheet" type="text/css">
</head>

<body>
<br>
<br>
<br>
<br>
<br>
<br>
<table width="480" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td align="center"></td>
  </tr>
  <tr> 
    <td>
      <table width="400" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#0066CC">
        <form name="adminform" method="post" action="edit_login.asp">
          <tr> 
            <td><font color="#FFFFFF">管理登陆&nbsp;&nbsp; <%call admin_login()%></font></td>
          </tr>
          <tr> 
            <td height="36" bgcolor="#FFFFFF" class="fontline1"> 
              <table width="100%" height="19" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr valign="middle"> 
                  <td height="40" align="center">城市区号: 
                  <input name="quhao" type="text" id="quhao" size="12" maxlength="20" value="<%=city%>">&nbsp;&nbsp;
                    密 码: 
                  <input name="guanli" type="password" size="13" maxlength="20" value=""><br> 
                  <input type="hidden" name="id" size="15" maxlength="20" value="<%=id%>"><br>
                    <input  type="submit" name="bubu" value="提 交"> 
                    <input  type="reset" name="sss" value="重 写"></td>
                </tr>
              </table></td>
          </tr>
        </form>
      </table></td>
  </tr>
  <tr>
    <td height="43" align="center"><font face="Geneva, Arial, Helvetica, sans-serif">Powered By 第1同志网</font></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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