www.gusucode.com > 山寨版广告信息招贴网源码程序 > 山寨版广告信息招贴网源码程序/ewuyi/dir_发布/admin/login.asp

    <!-- #include file="conn.asp"-->
<!-- #include file="md5.asp"-->
<%
if Request.Form("username")<>"" Then
if Request.Form("passcode")<>Session("GetCode") Then
Call AlertBack("验证码填写错误!")
Response.End
End if
set rs=Server.CreateObject("ADODB.recordset")
sql="select * from ewuyi_admin where ewuyi_user='"&Replace(request.Form("username"), "'", "''")&"' and ewuyi_pass='"&md5(Replace(request.Form("password"), "'", "''"))&"'"
rs.open sql,conn,1,1
if Not Rs.EOF Then
Session("user")=rs("ewuyi_user")
Session("password")=rs("ewuyi_pass")
rs.close
set rs=nothing
conn.close
set conn=nothing
Response.Redirect "index.asp"
Else
rs.close
set rs=nothing
conn.close
Call AlertBack("密码不正确")
End if
End if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>用户登录 - 帐户中心 - ewuyi.net 中文网站信息 ewuyi.net</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-cn" />
<link href="../css/accounts.css" type="text/css" rel="stylesheet" />
<script language="javascript" type="text/javascript">
function repwd(){
location.href="getpass.asp";
}
function form_onsubmit(){
var filter=/^[a-zA-Z0-9_ ]{2,16}$/;
if (!filter.test(document.form.username.value)) { 
 alert("请输入2-16位用户名!"); 
 document.form.username.focus();
 return false; 
 } 
if (!filter.test(document.form.password.value)) { 
 alert("请输入登录密码!"); 
 document.form.password.focus();
 return false; 
 } 
var filter=/^\d{4,4}$/;
if (!filter.test(document.form.passcode.value)){
alert("请填写4位数字验证码!");
document.form.passcode.focus();
return false;
}
}
</script>
</head>
<body bgcolor="#FFFFFF">
<DIV id=Head>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
 <tr>
 <td width="220" align="center" style="padding:1px 0px 0px 0px;"><a href="../index.asp" onFocus="this.blur();"><img src="../img/logo.gif" width=206 height=50 vspace=7 border=0 alt="分类广告网管理系统"></a></td>
 <td valign="top" style="padding:1px 0px 0px 0px;"><table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
 <tr>
 <td align="right" valign="top" style="padding:6px 16px 0px 0px;"><a href="../index.asp" class="linkNo">网站首页</a> </td> </tr></table></td> </tr>
</table> 
 <table width="100%" border="0" cellpadding="2" cellspacing="1" style="border-top:1px solid #99B2CC; border-bottom:1px solid #99B2CC;">
 <tr>
 <td height="20" bgcolor="#DBE9F4">&nbsp;您的位置:<strong></strong> 后台管理中心</td>
 </tr>
 </table>
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td valign="top" style="padding:6px 16px 10px 16px;"><BR><BR>
<strong>登陆帐户 管理您网站的注册会员 </strong><BR>
<BR>
 <strong>非管理员请离开!</strong><BR><BR><BR>
 </td>
 <td width="1" background="../img/dot_line.gif"></td>
 <td width="60%" valign="top" style="padding:6px 0px 0px 6px;">
 
<table width="100%" border="0" cellspacing="1" cellpadding="2">
 <tr>
<td class="f60b14">管理员登录</td>
 </tr>
 <tr>
<td style="padding:6px 0px 10px 16px;">&nbsp;
<table width="100%" border="0" cellspacing="0" cellpadding="2" align="center">
<form name="form" action="login.asp" method="post" onSubmit="return form_onsubmit();">
<tr valign="bottom">
 <td height="20" colspan="2" style="font-size:12px; font-weight:bold; padding-left:32px;"></td>
</tr>
<tr>
 <td width="130" align="right">用户名:</td>
 <td><input name="username" type="text" maxlength="16"></td>
</tr>
<tr>
 <td align="right">密 码:</td>
 <td><input name="password" type="password" maxlength="16"></td>
</tr>
<tr>
 <td align="right">验证码:</td>
 <td><input name="passcode" type=text id=passcode size="6" maxlength=4>&nbsp;<img src="code.asp" width="40" height="10" OnClick="this.src='code.asp'" style="cursor:hand" alt="点击图片,更换验证码"></td>
</tr>
<tr>
 <td height="40" colspan="2" align="center"><input name="Submit" type="Submit" value="登录">
 </td>
</tr>
<tr>
 <td height="30" colspan="2" align="center">&nbsp;</td>
</tr>
 </form>
</table>
</td>
 </tr>
</table>
 
 </td>
 </tr>
 </table><%call footer%>
</div>
</body>
</html>