📄 admin.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网络工程教研室后台管理</title>
</head>
<body>
<%
if request("nihao")="ok" then
uname=trim(request("uname"))
password=trim(request("password"))
if uname="" then
%>
<script language="javascript">
if (confirm("请输入用户名!"))
location.href="admin.asp";
</script>
<%
elseif password="" then
%>
<script language="javascript">
if (confirm("请输入密码!"))
location.href="admin.asp";
</script>
<%
end if
if uname<>"" and password<>"" then
Set rs1=Server.CreateObject("ADODB.Recordset")
sql1="select * from mima where uname='"&uname&"' and password='"&password&"'"
rs1.open sql1,conn,3,2
Set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from admin where uname='"&uname&"' and password='"&password&"'"
rs.open sql,conn,3,2
if not rs.eof then
session("uname")=rs("uname")
response.Redirect("admin_index.asp")
elseif not rs1.eof then
session("uname")=rs1("uname")
response.Redirect("admin_index.asp")
else
%>
<script language="javascript">
if (confirm("您输入的用户不存在!"))
location.href="admin.asp";
</script>
<%
end if
end if
else
%>
<table width="710" height="416" border="0" align="center" cellpadding="0" cellspacing="0" background="images/back.gif">
<form onSubmit="return verify_input(this);" name="form1" action="admin.asp">
<tr>
<td height="100"> </td>
<td height="100"> </td>
<td height="100"> </td>
<td width="100" height="150"> </td>
<td height="100"> </td>
<td height="100"> </td>
<td height="100"> </td>
<td height="100"> </td>
</tr>
<tr>
<td width="100"> </td>
<td width="100"> </td>
<td width="100"> </td>
<td height="218" colspan="4">
<table width="270" height="218" border="0" align="right" cellpadding="0" cellspacing="0" background="images/106.gif">
<tr>
<td width="270" valign="top" background="images/106.gif"><table width="100%" height="218" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td width="28%"><img src="images/103.gif" width="60" height="32"></td>
<td width="69%"><table width="132" height="22" border="0" cellpadding="0" cellspacing="0" background="images/004.gif">
<tr>
<td><input name="uname" type="text" id="uname2" size="19"></td>
</tr>
</table></td>
<td width="3%"> </td>
</tr>
<tr>
<td><img src="images/002.gif" width="58" height="25"></td>
<td width="69%">
<table width="132" height="22" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="images/004.gif"><input name="password" type="password" id="password2" size="20"></td>
<input name="nihao" type="hidden" id="nihao2" value="ok" size="19">
</tr>
</table></td>
<td> </td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td height="60" colspan="2"><div align="right">
<INPUT type=image height=95
src="images/032.gif" border=0 name=imageField>
</div></td>
<td height="60"> </td>
</tr>
</table> </td>
</tr>
</table>
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</form>
</table>
<% end if %>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -