?? gllydl.asp
字號:
<%response.expires=0%>
<!--#include file="function.asp"-->
<%
siteid=request("id")
if siteid="" Or Not isNumeric(siteid) then
call disp_error2("對不起,數據傳送錯誤!")
end if
'on error resume next
yhm=trim(request.form("yhm"))
mm=trim(request.form("mm"))
if yhm<>"" and mm<>"" then
%>
<!--#include file="conn.asp"-->
<%
session("lymanager")=0
set rs=server.createobject("adodb.recordset")
rs.open "select * from userinfo where id="&siteid,conn,1,1
if not rs.eof and not rs.bof then
if rs("yhm")<>yhm then
rs.close
conn.close
response.write("<script language='javascript'>")
response.write("alert('用戶名錯誤!');")
response.write("history.go(-1);")
response.write("</script>")
else
if rs("mm")<>mm then
rs.close
conn.close
response.write("<script language='javascript'>")
response.write("alert('密碼錯誤!');")
response.write("history.go(-1);")
response.write("</script>")
else
rs.close
conn.close
session("lymanager")=1
session("lysiteid")=siteid
response.write("<script language='javascript'>")
response.write("opener.location.href='glly.asp?id=0&siteid="&siteid&"&page=1';")
response.write("window.close();")
response.write("</script>")
end if
end if
end if
end if
%>
<html>
<head>
<meta http-equiv="expires" content="no-cache">
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>留言管理登錄</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script language="javascript">
function check_form(thisForm)
{
if (thisForm.yhm.value=="")
{
alert("請輸入用戶名!");
thisForm.yhm.focus();
return(false);
}
if (thisForm.yhm.value.length>10)
{
alert("用戶名太長!");
thisForm.yhm.focus();
return(false);
}
if (thisForm.mm.value=="")
{
alert("請輸入密碼!");
thisForm.mm.focus();
return(false);
}
if (thisForm.mm.value.length>16)
{
alert("密碼太長!");
thisForm.mm.focus();
return(false);
}
return(true);
}
</script>
</head>
<body leftmargin="1" topmargin="1">
<form method="post" action="gllydl.asp?id=<%=siteid%>" onsubmit="return check_form(this)">
<div align="center">
<center>
<table border="1" width="199" height="98" cellspacing="0" cellpadding="0" bordercolorlight="#000000" bordercolordark="#ffffff" bgcolor="#eeeeee">
<tr>
<td width="63" height="25">用戶名:</td>
<td width="120" height="25">
<p align="center"><input name="yhm" size="15" maxlength="10" ></td>
</tr>
<tr>
<td width="63" height="25">密 碼:</td>
<td width="120" height="25">
<p align="center"><input type="password" name="mm" size="15" maxlength="16"></td>
</tr>
<tr>
<td width="189" colspan="2" height="25">
<p align="center"><input type="submit" value=" 登 錄 " name="B1" height="22" style="FONT-FAMILY: 宋體; FONT-SIZE: 9pt; HEIGHT: 22px"> <input type="button" value=" 取 消 " name="B2" height="22" onclick="window.close()" style="FONT-FAMILY: 宋體; FONT-SIZE: 9pt; HEIGHT: 22px"></p></td>
</tr>
</table>
</center>
</div>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -