?? 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 + -