?? search.asp
字號(hào):
<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<html>
<head>
<title><%=webname%>--高級(jí)查訊</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/css.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<tr>
<td >
<!--#include file="webtop.asp"-->
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" background="images/bj.gif">
<tr>
<td><div align="center">
<table width="748" height="1" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="1" background="images/bj_x.gif"></td>
</tr>
</table>
<p> </p>
<p><font color="#000000"><b>高 級(jí) 查 訊</b></font></p>
</div>
</td>
</tr>
<tr>
<td height="120" valign="top">
<table width="60%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#FFFFFF">
<form name="form2" method="post" action="research.asp">
<tr>
<td width="36%" style="padding-left:6px">
<div align="center">關(guān) 健 字:</div>
</td>
<td width="64%" style="padding-left:6px">
<input name="searchkey" type="text" id="searchkey">
</td>
</tr>
<tr>
<td style="padding-left:6px" width="36%">
<div align="center">查找方式:</div>
</td>
<td style="padding-left:6px" width="64%">
<script>
var selects111=[];
<%dim i
set rs=server.createobject("adodb.recordset")
rs.open "select * from Pingpai order by pingpaiorder",conn,1,1
'有大類
%>
selects111['2']=new Array(
<%
if rs.recordcount>0 then
for i=1 to rs.recordcount
if i=rs.recordcount then
%>
new Option('<%=trim(rs("pingpainame"))%>','<%=trim(rs("pingpainame"))%>'));
<% else
%>
new Option('<%=trim(rs("pingpainame"))%>','<%=trim(rs("pingpainame"))%>'),
<%
end if
rs.movenext
next
else
%>
new Option('',''));
<%
end if
rs.close
set rs=nothing
set rs=server.createobject("adodb.recordset")
rs.open "select * from shihe order by shiheorder",conn,1,1
'有大類
%>
selects111['3']=new Array(
<%
if rs.recordcount>0 then
for i=1 to rs.recordcount
if i=rs.recordcount then
%>
new Option('<%=trim(rs("shihename"))%>','<%=trim(rs("shihename"))%>'));
<% else
%>
new Option('<%=trim(rs("shihename"))%>','<%=trim(rs("shihename"))%>'),
<%
end if
rs.movenext
next
else
%>
new Option('',''));
<%
end if
rs.close
set rs=nothing
%>
function showselect()
{
if ((document.form2.action.value=="2")||(document.form2.action.value=="3")) {
T_select.style.display = "";
//加入內(nèi)容
with (document.form2){
if(action.value) {
selectname.options.length=0;
for(var i=0;i<selects111[action.value].length;i++){
selectname.add(selects111[action.value][i]);
}
}
}
}else{
T_select.style.display = "none";
}
}
</script>
<table border="0" cellspacing="0" cellpadding="0">
<tr><td>
<select name="action" id="action" onchange="showselect();">
<option value="1" selected>商品名稱</option>
<option value="2">品牌</option>
<option value="3">適合年齡</option>
<option value="4">內(nèi)容簡(jiǎn)介</option>
</select></td><td>
<table border="0" cellspacing="0" cellpadding="0" id=T_select style="DISPLAY: none">
<tr>
<td>
<select name="selectname">
</select>
</td>
</tr>
</table>
</td></tr>
</table>
</td>
</tr>
<tr>
<td style="padding-left:6px" width="36%">
<div align="center">價(jià)格范圍:</div>
</td>
<td style="padding-left:6px" width="64%">
<select name="jiage" id="jiage">
<option value="20">20元以下</option>
<option value="30">30元以下</option>
<option value="50" selected>50元以下</option>
<option value="100">100元以下</option>
<option value="500">500元以下</option>
<option value="1000">1000元以下</option>
</select>
</td>
</tr>
<tr>
<td height="18" style="padding-left:6px" width="36%">
<div align="center">商品分類:</div>
</td>
<td style="padding-left:6px" width="64%">
<%set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shop_anclass order by anclassidorder",conn,1,1
%>
<select name="anclassid">
<option value="0">查訊所有分類</option>
<%do while not rs.eof%>
<option value="<%=rs("anclassid")%>"><%=trim(rs("anclass"))%></option>
<%rs.movenext
loop
rs.close
set rs=nothing%>
</select>
</td>
</tr>
<tr>
<td height="18" colspan="2" style="padding-left:6px">
<div align="center">
<input type="image" border="0" name="submit" src="images/kscx.gif" width="54" height="18" onclick="return checkk();">
</div>
</td>
</tr>
</form>
</table>
<p> </p><table width="748" height="1" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="1" background="images/bj_x.gif"></td>
</tr>
</table>
</td>
</tr>
</table>
<!--#include file="service.asp"-->
<!--#include file="copyright.asp"-->
</body>
</html>
<SCRIPT LANGUAGE="JavaScript">
<!--
function checkk()
{
if(checkspace(document.form2.searchkey.value)&&((document.form2.action.value=="4")||(document.form2.action.value=="1"))) {
document.form2.searchkey.focus();
alert("請(qǐng)輸入查訊關(guān)鍵字!");
return false;
}
document.form2.submit();
}
//-->
</script>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -