?? poplogon.asp
字號:
<!--#include file="conn.asp" -->
<!--#include file="../char.asp" -->
<html>
<title>會話過期,請重新登錄</title>
<head>
<meta http_Equiv="Progma" content="no-cache">
<%
Response.Write "<script language=javascript>"
Response.Write "window.moveTo(200,200);"
Response.Write "</script>"
%>
<link rel="stylesheet" href="../style.css" type="text/css">
<script language=javascript>
function Check()
{
if(form1.UserName.value==""){
alert("請輸入用戶名!");
return false;
}else{return true;};
}
</SCRIPT>
</head>
<%
If Request.Form("form") = 1 Then
UserName = Request.Form("UserName")
PassWord = Request.Form("PassWord")
sql="select * from admin where UCase(password)='"&UCase(password)&"' and UCase(username)='"&UCase(username)&"'"
Set Rs = Conn.Execute(Sql)
If Not Rs.Eof Then
session("admin")=rs("username")
session("flag")=rs("flag")
Response.write "<script language=javascript>"
Response.Write "window.opener.document.location.reload();"
Response.Write "window.close();"
Response.Write "</script>"
Else
Response.write "<script language=javascript>"
Response.Write "alert(""不正確的用戶名或密碼!"");"
Response.Write "</script>"
End If
Set Rs = Nothing
Set Conn = Nothing
End If
%>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="6" >
<form name="form1" method="post" action="" onsubmit='return Check();'>
<table width="340" border="0" cellspacing="0" cellpadding="0" height="0" align="center" class="fmat">
<tr>
<td rowspan="4" bgcolor="#7A9BDE" width="20" align="center" valign="middle">
<table width="3" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" height="9">
<tr>
<td></td>
</tr>
</table>
</td>
<td width="98" class="text" align="right" valign="bottom" bgcolor="#F1F4FC" height="25">用戶名:</td>
<td width="154" align="left" valign="middle" bgcolor="#F1F4FC" height="25">
<input type=text name=UserName class="bokcss">
</td>
<td rowspan="4" bgcolor="#7A9BDE" width="20" align="center" valign="middle">
<table width="3" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" height="9">
<tr>
<td></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="98" class="text" align="right" valign="bottom" bgcolor="#F1F4FC" height="25">密碼:</td>
<td width="154" align="left" valign="middle" bgcolor="#F1F4FC" height="25">
<input type=password name=PassWord class="bokcss">
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#F1F4FC" height="30">
<div align="center">
<input type=submit value=確認 name="submit" >
<input type=button value=關閉 name="reset" onclick='window.opener.close();window.close();'>
<input type=hidden name=form value="1">
</div>
</td>
</tr>
</table>
</form>
</body>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -