<%side_search_all_show=site.object_p%>
<!-- object[<%=site.object_p%>]::side_search_all_show -->
<%
site.object(site.object_p).rs.Open "select * from jins_object_list where "&site.pageshow.key_open&"=1 and object_up="&site.object(site.object_p).id&" order by "&site.pageshow.key_num&" ",conn,1,1
%>
<table<%=site.object(site.object_p).style%> cellSpacing="0" cellPadding="0" width="163" border="0">
	<tr>
		<td width="1" height="1"></td>
		<td width="1" bgColor="#dadada" height="1"></td>
		<td bgColor="#d0d9ef" height="1"></td>
		<td width="1" bgColor="#dadada" height="1"></td>
		<td width="1"></td>
	</tr>
	<tr>
		<td width="1" bgColor="#dadada" height="1"></td>
		<td width="1" bgColor="#d0d9ef" height="1"></td>
		<td bgColor="#ffffff" height="1"></td>
		<td width="1" bgColor="#d0d9ef" height="1"></td>
		<td width="1" bgColor="#eaeaea"></td>
	</tr>
		<form name=side_search_all>
	<tr>
		<td width="1" bgColor="#d0d9ef" height="1"></td>
		<td width="1" bgColor="#ffffff"></td>
		<td vAlign="top" bgColor="#ffffff">
		<table cellSpacing="0" cellPadding="1" width="159" align="center" border="0" height="59">
			<tr>
				<td height="8" align="center" colspan="3">
				<img border="0" src="<%=site.object(site.object_p).image%>/suyaimg_accbanner0411_01.gif" width="156" height="27"></td>
			</tr>
			<tr>
				<td width="41" height="25" align="center" >
				关键字</td>
				<td  height="25" width="114">
				<input type="text" name="property_public_value" size="14"></td>
				<input type="hidden" name="property_public_name" size="14"></td>
			</tr>
			<tr>
				<td width="41" height="25" align="center">
				搜&nbsp; 索</td>
				<td  height="25" width="114" >
				<select size="1" name="channal" onchange='side_search_sort();'>
<%
set site.object(site.object_p).rs_other(0)=server.CreateObject("adodb.recordset")
i_search_all=0
dim object_show_side_search_all(20,2)
do while not site.object(site.object_p).rs.eof

	response.write "<option value="""&site.object(site.object_p).rs("object_name")&""" "
	if i_search_all=0 then response.write " selected "
	response.write ">"&site.object(site.object_p).rs("object_description")&"</option>"
	
	object_show_side_search_all(i_search_all,0)=site.object(site.object_p).rs("object_name")
	object_show_side_search_all(i_search_all,2)=site.object(site.object_p).rs("object_argument")
	
	site.object(site.object_p).rs_other(0).open "select sort_id,sort_name from jins_"&site.object(site.object_p).rs("object_name")&"_sort where sort_up=0 and sort_open=1 order by sort_num desc",conn,1,1
	if not site.object(site.object_p).rs_other(0).eof then
		
		site.temp.search.sort_list=""
		site.temp.search.list_sort " and sort_open=1 ","jins_"&site.object(site.object_p).rs("object_name")&"_sort",0,"全部分类"
		object_show_side_search_all(i_search_all,1)=site.temp.search.sort_list
		
	end if
	site.object(site.object_p).rs_other(0).close
	site.object(site.object_p).rs.movenext
	i_search_all=i_search_all+1
loop
%>
				</select>
				</td>
			</tr>
			<tr>
			    <td colspan="2"><div id=search_sort style='display:none;'>
<table cellspacing='0' cellpadding='0'>
<tr>
<td width='41' height='25' align='center'>分&nbsp; 类</td>
<td height='25' style='padding-left:2'>
<select size='1' name='sort' style="width:110px " >
$$$$
</select></td></tr></table>
			    </div></td>
			</tr>
			<tr>
				<td width="160" height="35" colspan="2">
				<p align="center"><input type="button" value="查询" name="B1" onclick='side_search_submit();'>
				<input type="button" value="高级搜索" name="B2" onclick='window.location="temp.asp?tr=search|advanced"'></td>
			</tr>
		</table>
		</td>
		<td width="1" bgColor="#abacad" height="1">　</td>
		<td width="1" bgColor="#e5eaf5">　</td>
	</tr>
	<input type=hidden name=property_name>
		</form>
	<tr>
		<td width="1" bgColor="#dadada" height="1"></td>
		<td width="1" bgColor="#d0d9ef" height="1"></td>
		<td bgColor="#abacad" height="1"></td>
		<td width="1" bgColor="#d0d9ef" height="1"></td>
		<td width="1" bgColor="#ebebeb"></td>
	</tr>
	<tr>
		<td width="1" height="1"></td>
		<td width="1" bgColor="#dadada" height="1"></td>
		<td bgColor="#d0d9ef" height="1"></td>
		<td width="1" bgColor="#d9d9d9" height="1"></td>
		<td width="1"></td>
	</tr>
</table>
<br>
<script language=javascript defer>
var html_show_sort=new Array;
var channal_show_sort=new Array;
var key_show_sort=new Array;
var search_sort;
var j;
var hh;
j=0;

<%
for ii_search_all=0 to i_search_all-1
response.write "channal_show_sort["&ii_search_all&"]='"&object_show_side_search_all(ii_search_all,0)&"';"&vbcrlf
response.write "html_show_sort["&ii_search_all&"]="""&object_show_side_search_all(ii_search_all,1)&""";"&vbcrlf
response.write "key_show_sort["&ii_search_all&"]='"&object_show_side_search_all(ii_search_all,2)&"';"&vbcrlf
next
%>

function side_search_sort(){
var i;
for(i=0;i<=<%=i_search_all-1%>;i++){
if(side_search_all.channal.value==channal_show_sort[i]){
if(html_show_sort[i].length>10){
if(j==0){
hh=document.getElementById('search_sort').innerHTML;
j++;
}
document.getElementById('search_sort').innerHTML=hh.replace('$$$$',html_show_sort[i]);
document.getElementById('search_sort').style.display='';
}
else
{
document.getElementById('search_sort').style.display='none';
}

document.side_search_all.property_public_name.value=key_show_sort[i];

}
}
}

function side_search_submit(){
var url;
url='temp.asp?';
url=url+"tr=search|"+side_search_all.channal.value
if(typeof(side_search_all.sort) != "undefined")
url=url+"&sort_id="+side_search_all.sort.value;
url=url+"&mode=property";
url=url+"&property_public_name="+side_search_all.property_public_name.value;
url=url+"&property_public_value="+side_search_all.property_public_value.value;
url=url+"&object_print=<%=site.object(site.object_p).prints&"_"&site.object(site.object_p).name%>";
window.location=url;
}

side_search_sort();
</script>
<%
set site.object(site.object_p).rs_other(0)=nothing
site.object(site.object_p).rs.close
%>