Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
default.asp
Package: 56770yaopin.rar [view]
Upload User: feitengda
Upload Date: 2022-07-20
Package Size: 73k
Code Size: 2k
Category:
ERP-EIP-OA-Portal
Development Platform:
ASP/ASPX
- <!--#include file="conn.asp"-->
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link href=../css.css rel=STYLESHEET type=text/css>
- </head>
- <body bgcolor="#FFFFCC" text="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <td height="5"></td>
- </tr>
- </table>
- <%
- Select Case request("action")
- Case "login" :login()
- Case Else
- list()
- End Select
- Sub login
- admin_name=Trim(Replace(request("admin_name"),"'",""))
- admin_pass=Trim(Replace(request("admin_pass"),"'",""))
- If admin_name<>"" And admin_pass<>"" Then
- Set rs=conn.execute("select * from [56770_admin] where a_name='"&admin_name&"' and a_pass='"&admin_pass&"'")
- If rs.eof Then
- response.write "<script>alert('用户名或密码错误!~!');window.document.location.href='default.asp';</script>"
- response.End()
- Else
- session("admin_name")=admin_name
- response.redirect "manage.asp"
- End If
- Else
- response.redirect"default.asp"
- response.End()
- End If
- End Sub
- Sub list
- response.write"<table cellspadding='1' cellspacing='1' width='300' align='center' border='0' bgcolor='#E1DEDB'>"&_
- "<form method=post action=default.asp?action=login>"&_
- " <tr><td height=25 align=center colspan=2 bgcolor='#4685CA'>管理员登陆</td></tr>"&_
- " <tr><td width='20%'>用户名</td><td><input name=admin_name size=15 type=text></td></tr>"&_
- " <tr><td width='20%'>密 码</td><td><input name=admin_pass size=15 type=text></td></tr>"&_
- " <tr><td height=25 align=center colspan=2 bgcolor=#4685CA><input type=submit name=button value=登陆></td></tr>"&_
- " </form></table>"
- End Sub
- %>