?? yd631_angela_admin.asp
字號:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="yd631_conn.asp"-->
<!--#include file="md5.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>后臺管理//YD631_Angela_Order2.0 簡易產(chǎn)品定單系統(tǒng)</title>
<link href="yd631_style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
<SCRIPT language=JavaScript>
<!--
function form1_onsubmit()
{
if (document.form1.yd631_username.value=="")
{
alert("后臺登陸用戶名一定要填寫!")
document.form1.yd631_username.focus()
return false
}
else if(document.form1.yd631_password.value=="")
{
alert("后臺登陸密碼一定要填寫!")
document.form1.yd631_password.focus()
return false
}
}
-->
</SCRIPT>
</head>
<body><center>
<%if request.Form("sub")="sub" then
yd631_username=trim(request.Form("yd631_username"))
yd631_username=replace(yd631_username,"'","")
yd631_password=trim(request.Form("yd631_password"))
yd631_password=replace(yd631_password,"'","")
yd631_password=md5(yd631_password)
if yd631_username="" or yd631_password="" then
response.Redirect("yd631_angela_admin.asp")
else
set rs=server.CreateObject("adodb.recordset")
sql="select * from yd631_angela_admin where angela_username='"&yd631_username&"' and angela_password='"&yd631_password&"'"
rs.open sql,conn,1,1
if not (rs.eof and rs.bof) then
session("yd631_angela")="yd631_angela"
response.Redirect("yd631_angela_main.asp")
else
response.write "<SCRIPT language=JavaScript>alert('用戶名或密碼不正確!');"
response.write "this.location.href='vbscript:history.back()';</SCRIPT>"
response.end
end if
end if
rs.close
set rs=nothing
end if
%>
<form action="yd631_angela_admin.asp" method="post" name="form1" onSubmit="return form1_onsubmit()">
<p> </p>
<p> </p>
<p> </p>
<table width="496" height="288" border="0" cellpadding="0" cellspacing="0" class="linetable">
<tr>
<td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="28" align="center" bgcolor="#006699"><span class="style1">YD631_Angela_Order1.0 簡易產(chǎn)品定單系統(tǒng)</span></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="yd631_img/login.jpg" width="494" height="171"></td>
</tr>
</table>
<table width="100%" height="88" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="31%" align="right" bgcolor="#E6E6E6">用戶名:</td>
<td width="69%" bgcolor="#E6E6E6"><input name="yd631_username" type="text" id="yd631_username" size="15"></td>
</tr>
<tr>
<td align="right" bgcolor="#E6E6E6">密 碼:</td>
<td bgcolor="#E6E6E6"><input name="yd631_password" type="password" id="yd631_password" size="15"></td>
</tr>
<tr>
<td bgcolor="#E6E6E6"> </td>
<td bgcolor="#E6E6E6"><input type="submit" name="Submit" value=" 提交 ">
<input onClick="javascript:window.opener=null;window.close();" type=button value=" 關(guān)閉 ">
<input type="hidden" name="sub" value="sub">
</td>
</tr>
</table></td>
</tr>
</table>
<p> </p>
</form>
</center>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -