?? qq_dl.asp
字號:
<!--#include file="conn.asp"-->
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<title>
用戶登陸
</title>
</head>
<%yhm=request.form("yhm")
pass=request.form("pass")
dz=request.querystring("dz")
pass=setpwd(pass)
zl = "全部"
if yhm<>"" and dz="sc" 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
grmm=rs("pass")
xb=rs("xb")
jb=rs("jb")
if pass<>grmm then response.redirect "qq_dl.asp"
else
response.redirect "qq_dl.asp"
end if
session("qqyhm")=yhm
session("qqpass")=pass
session("qqjb")=jb
session("qqnc")=rs("nc")
session("qqxb")=rs("xb")
application.lock
xm = "<font color=#663333>" + session("qqnc") + "</font>"
application(zl) = "<tr bgcolor=#E3E9F1 height=25 style='table-layout:fixed;word-break:break-all'><td align=left>" + xm + "(" + cstr(time) + "):" + ys + "大家好!我剛上來!</font><br>" + application(zl)
application.unlock
response.redirect "qq.asp"
end if
if dz="yk" then
session("qqjb") = "1"
session("qqyhm") = "游客" + replace(cstr(time),":","")
session("qqnc") = "臨時"
application.lock
xm = "<font color=#663333>" + session("qqnc") + "</font>"
application(zl) = "<tr bgcolor=#E3E9F1 height=25 style='table-layout:fixed;word-break:break-all'><td align=left>" + xm + "(" + cstr(time) + "):" + ys + "大家好!我剛上來!</font><br>" + application(zl)
application.unlock
response.redirect "qq.asp"
end if%>
<body>
<!--#include file="qq_wjt.asp"-->
<br>
<center>
<form name="from" method="post" action="qq_dl.asp?dz=sc">
<table align="center">
<tr height="25"><td>用戶名</td>
<td><input type=text name=yhm size="10"></td>
</tr>
<tr height="25"><td>密碼</td>
<td><input type="password" name="pass" size="10"> </td>
</tr>
</table>
<table cellpadding="4" cellspacing="0" align="center">
<tr height="25">
<td align="center">
<input type="button" onclick="javascript:window.location='qq_dl.asp?dz=yk';" value="游 客">
<input type=submit onclick="javascript:return dl(yhm.value,pass.value);" value="登 陸">
<input type=button onclick="javascript:window.location='qq_zc.asp';" value="注 冊"></td>
</tr>
</table>
</center>
</form>
</center>
</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 + -