📄 menu.asp
字号:
<%
dim user,pwd,a
if request("action") = "login" then
user=request.form("user")
pwd=request.form("pwd")
sql="select * from customers where name='"&user&"'and pwd='"&pwd&"'"
rs.open sql,conn,3,3
if rs.eof then
response.write "<script language='javascript'>"
response.write "alert('帐号不存在或密码出错');"
response.write "history.go(-1);"
response.write "</script>"
else
a=1
rs.close
end if
end if
%>
<!--判断关键字是否为空-->
<script language="JavaScript">
function checksou()
{
if (document.sousuo.search.value==""){
window.alert("请输入您要搜索的关键字!");
document.sousuo.search.focus();
return false;
}
if (document.sousuo.search.value.substr(0,1)==" "){
window.alert("第一个关键字不能为空!");
document.sousuo.search.focus();
return false;
}
return true;
}
</script>
<table width="850" border="0" align="center" cellpadding="0" cellspacing="0" class="table_2">
<tr>
<td width="450" height="32" background="../images/seach_bg.gif">
<%if a<>1 then%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<form name="form1" method="post" action="../index.asp?action=login">
<tr>
<td><div align="center"><img src="../images/seach_id.gif" width="29" height="12"></div></td>
<td><input name="user" type="text" class="input_2" id="user" size="15"></td>
<td><div align="center"><img src="../images/seach_pwd.gif" width="39" height="12"></div></td>
<td><input name="pwd" class="input_2" type="text" id="pwd" size="15"></td>
<td><input name="Submit" type="image" id="Submit" src="../images/login_button.gif" width="47" height="17" border="0"></td>
</tr>
</form>
</table>
<%else%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="35" colspan="3" class="hangao">
<div align="center"><span class="font12_red"><%=user%></span>你已经成功的登录 <a href="out.asp">退出</a> </div></td>
</tr>
</table>
<%end if%></td>
<td width="211" background="../images/seach_bg.gif"> </td>
<td width="244" background="../images/seach_bg.gif">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<form action="../search.asp" method="post" name="sousuo" onSubmit="return checksou()">
<tr>
<td><img src="../images/seach_ph.gif" width="19" height="16"></td>
<td><div align="center">
<input name="search" type="text" class="input_2" id="search2" size="20">
</div></td>
<td>
<input name="imageField" type="image" src="../images/seach_button.gif" width="47" height="17" border="0"></td>
</tr></form>
</table>
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -