📄 cn86login.asp
字号:
<!--#include file="conn.asp"-->
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<title>后台登陆</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body>
<table width="778" border="0" cellspacing="0" cellpadding="0" background="images/top-back.gif" align="center">
<tr>
<td height="74" align="center"><img src="images/top.gif" width="778" height="80"></td>
</tr>
</table>
<table width="778" border="1" cellspacing="0" cellpadding="0" bgcolor="#7894AF" align="center">
<tr bgcolor="#eeeeee">
<td height="25" ><%=why%> 欢迎来到 <%=bb%>!<%
RESPONSE.Write "CM提醒你---你来访的时间是: " & YEAR(date()) & "年" & MONTH(date()) & "月" & DAY(date()) & "日"
%></td>
</tr>
</table>
<p>
<%yhm=request.form("yhm")
pass=request.form("pass")
if yhm<>"" and pass<>"" then
set rs=server.createobject("adodb.recordset")
exec="select * from admin where yhm='"+yhm+"'"
rs.open exec,conn,1,1
if not rs.eof then
if setpwd(pass)<>rs("pass") then response.redirect "cn86login.asp"
else
response.redirect "cn86login.asp"
end if
session("newspass") = pass
session("newsyhm") = rs("yhm")
rs.close
conn.close
response.redirect "admin.asp"
end if%>
<font color="#E3E9F1" size="6" face="华文行楷"><%=bb%></font><br>
</p>
<form name="from" method="post" action="cn86login.asp?dz=<%=dz%>">
<table align="center">
<tr>
<td> 用户名</td>
<td>
<input type="text" name="yhm" size="10" maxlength="10"></td>
</tr>
<tr>
<td>密 码</td>
<td>
<input type="password" name="pass" size="10" maxlength="10"> </td>
</tr>
</table>
<table cellpadding="4" cellspacing="0" align="center">
<tr>
<td align="center">
<input type=submit onclick="javascript:return dl(yhm.value,pass.value);" value="登 陆">
<input type="button" value="返 回" onClick="javascript:window.location='news.asp';">
</td>
</tr>
</table>
</form>
</center>
<div align="center">
<p> </p>
<p> </p>
<p><font color="#E3E9F1" size="6" face="华文行楷">CM 新 闻 发 布 系 统 V 1。0</font> </p>
</div>
</body>
</htm>
<script language='javascript'>
function dl(yhm,pass)
{
if (yhm=="")
{alert('输入用户名!');
document.from.yhm.focus();
return false;}
if (pass=="")
{alert('输入密码!');
document.from.pass.focus();
return false;}}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -