<%

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
%>
<form name=side_search_all>
<div style='float:left;' >
<img align=top vspace=1 src="template/folders/sys/main_img09.gif" >
<input type="text" name="property_public_value" size="35" class="search_all" value='关键字'>
<input type="hidden" name="property_public_name" size="14">
<select size="1" name="channal" onchange='side_search_sort();' class="search_all">
<%
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.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

	site.object(site.object_p).rs.movenext
	i_search_all=i_search_all+1
loop
%>
</select>
</div>
<div style='float:left;padding-top:1px;padding-left:10px' id=search_sort>
<select size='1' name='sort'  class="search_all" style='width:150px'>
$$$$
</select>
</div>
<div >
<img vspace=1 align=top hspace=5 src="template/folders/sys/navi_btn01.gif" style="cursor:hand" alt='查询' onclick='side_search_submit();'>
<img vspace=1 align=top src="template/folders/sys/navi_btn02.gif" style="cursor:hand" alt='高级搜索' onclick='window.location="temp.asp?tr=search|advanced"'>
</div>
<div >
<input type=hidden name=property_name>
</div>
</form>

<SCRIPT language=javascript >
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="+side_search_all.channal.value+"|search"
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>
<%
site.object(site.object_p).rs.close
%>