<%temp_search_advanced_show=site.object_p%>
<!-- object[<%=site.object_p%>]::temp_search_advanced_show -->
<table cellpadding='0' cellspacing='0' width='100%' height='170'>
	<!-- MSTableType='nolayout' -->
	<tr>
		<td width='100%' align='left' valign='top' style='padding-top: 0px'>
<%
site.object(temp_search_advanced_show).rs.Open "select * from jins_object_list where "&site.pageshow.key_open&"=1 and object_up="&site.object(temp_search_advanced_show).id&" order by "&site.pageshow.key_num&" ",conn,1,1
If site.object(temp_search_advanced_show).rs.EOF Then
	response.write "<center>所有搜索频道都已被关闭！！"
Else
	Dim channal_temp_search(20, 3)
	Dim i_temp_search
	i_temp_search = 0

	response.write "       <form style=""margin:0px"" method='POST' name=temp_search_advanced >"
	response.write "            <div align='center' > <table cellpadding='0' cellspacing='0' width=100% height='30' >"
	response.write "                    <tr>"
	response.write "                        <td height='30' align='right' width=40% >"
	response.write "                        <b/>搜索频道：</b></td>"
	response.write "                        <td height='30'align='left' >"
	response.write "                        <select size='1' name='channal' onchange='temp_search_sort();'>"
	Do While Not site.object(temp_search_advanced_show).rs.EOF
	    if site.temp.customer.check.GradeCheck(site.object(temp_search_advanced_show).rs("object_customer_grade")) then
			response.write "                        <option value='" & site.object(temp_search_advanced_show).rs("object_name") & "'>" & site.object(temp_search_advanced_show).rs("object_description") & "</option>"
	
			channal_temp_search(i_temp_search, 0) = site.object(temp_search_advanced_show).rs("object_name")
			site.temp.search.sort_list = ""
			site.temp.search.list_sort " and sort_open=1 ","jins_" & site.object(temp_search_advanced_show).rs("object_name") & "_sort", 0, "全部分类"
			channal_temp_search(i_temp_search, 1) = site.temp.search.sort_list
			'//////////////////////////////////////////////////////
			'set rsss=conn.execute("select * from jins_object_list where "&site.pageshow.key_open&"=1 and object_print='"&site.object(temp_search_advanced_show).rs("object_print")&"_"&site.object(temp_search_advanced_show).rs("object_name")&"' order by "&site.pageshow.key_num&" ")
			set site.object(temp_search_advanced_show).rs_other(0)=conn.execute("select * from jins_object_list where "&site.pageshow.key_open&"=1 and object_print='"&site.object(temp_search_advanced_show).rs("object_print")&"_"&site.object(temp_search_advanced_show).rs("object_name")&"' order by "&site.pageshow.key_num&" ")
			key_temp_search="<div align='center' id='key_temp_search_"&i_temp_search&"' style='display:none;'><table cellpadding='0' cellspacing='0' width=100%  height='30'>"
			iii_temp_search = 0

			Do While Not site.object(temp_search_advanced_show).rs_other(0).EOF
			    if site.temp.customer.check.GradeCheck(site.object(temp_search_advanced_show).rs_other(0)("object_customer_grade")) then

					object_argument_temp_search = Split(site.object(temp_search_advanced_show).rs_other(0)("object_argument"), ",")
		
					key_temp_search=key_temp_search+"<tr><td align=right height=30 width=40% >"&site.object(temp_search_advanced_show).rs_other(0)("object_description")&"：<input type='hidden' id='property_public_temp_name_"&i_temp_search&"_"&iii_temp_search&"' value='"&site.object(temp_search_advanced_show).rs_other(0)("object_name")&"'></td>"
					key_temp_search = key_temp_search + "<td align=left>"
					'/////////////
					Select Case object_argument_temp_search(0)
		
					Case "0"
						key_temp_search=key_temp_search+"<input type='text' id='property_public_temp_value_"&i_temp_search&"_"&iii_temp_search&"' size='31' value=''>"
		
					Case "1"
						key_temp_search=key_temp_search+"<select id='property_public_temp_value_"&i_temp_search&"_"&iii_temp_search&"' >"
						object_argument_temp_search(1) = Split(object_argument_temp_search(1), "&")
						key_temp_search = key_temp_search + "<option value='' selected >随便</option>"
						For ii_temp_search = 0 To UBound(object_argument_temp_search(1))
							object_argument_temp_search(1)(ii_temp_search) = Split(object_argument_temp_search(1)(ii_temp_search), "/")
							key_temp_search = key_temp_search + "<option value=""" & object_argument_temp_search(1)(ii_temp_search)(1) & """>" & object_argument_temp_search(1)(ii_temp_search)(0) & "</option>"
						Next
						key_temp_search = key_temp_search + "</select>"
		
					Case "2"
						key_temp_search=key_temp_search+"<input type='hidden' id='property_public_temp_value_"&i_temp_search&"_"&iii_temp_search&"' value=''>"
						object_argument_temp_search(1) = Split(object_argument_temp_search(1), "&")
						key_temp_search=key_temp_search+"<input type='checkbox' style='border:0px' onclick=""side_search_check('property_public_temp_value_"&i_temp_search&"_"&iii_temp_search&"',"&ubound(object_argument_temp_search(1))&");"" id='property_public_temp_value_"&i_temp_search&"_"&iii_temp_search&"_' value=''>随便<br>"
						For ii_temp_search = 0 To UBound(object_argument_temp_search(1))
							object_argument_temp_search(1)(ii_temp_search) = Split(object_argument_temp_search(1)(ii_temp_search), "/")
							key_temp_search=key_temp_search+"<input type='checkbox' style='border:0px' onclick=""side_search_check('property_public_temp_value_"&i_temp_search&"_"&iii_temp_search&"',"&ubound(object_argument_temp_search(1))&");"" id='property_public_temp_value_"&i_temp_search&"_"&iii_temp_search&"_"&ii_temp_search&"' value="""&object_argument_temp_search(1)(ii_temp_search)(1)&""">"&object_argument_temp_search(1)(ii_temp_search)(0)&"<br>"
						Next
		
					Case "3"
						key_temp_search=key_temp_search+"<input type='text' id='property_public_temp_value_"&i_temp_search&"_"&iii_temp_search&"' size='31' value=''>"
		
					Case "4"
						key_temp_search=key_temp_search+"<input id='property_public_temp_value_"&i_temp_search&"_"&iii_temp_search&"' value='$' type='hidden'><input id='property_public_temp_value_s_"&i_temp_search&"_"&iii_temp_search&"' onchange=""temp_change_input('"&i_temp_search&"_"&iii_temp_search&"');"" size=13 value=''> 到 <input id='property_public_temp_value_e_"&i_temp_search&"_"&iii_temp_search&"' onchange=""temp_change_input('"&i_temp_search&"_"&iii_temp_search&"');"" size=13 value=''>"
		
					Case "5"
						key_temp_search=key_temp_search+"<input id='property_public_temp_value_"&i_temp_search&"_"&iii_temp_search&"' value='$' type='hidden'><input id='property_public_temp_value_s_"&i_temp_search&"_"&iii_temp_search&"' onchange=""temp_change_input('"&i_temp_search&"_"&iii_temp_search&"');"" size=13 value='1900-1-1'> 到 <input id='property_public_temp_value_e_"&i_temp_search&"_"&iii_temp_search&"' onchange=""temp_change_input('"&i_temp_search&"_"&iii_temp_search&"');"" size=13 value='"&year(now)&"-"&month(now)&"-"&day(now)&"'>"
		
		
					End Select
					'////////////
					key_temp_search = key_temp_search + "</td></tr>"
				    iii_temp_search = iii_temp_search + 1
				    
				end if
				site.object(temp_search_advanced_show).rs_other(0).movenext
			Loop
			key_temp_search = key_temp_search + "</table></div>"
			Set site.object(temp_search_advanced_show).rs_other(0) = Nothing
			'//////////////////////////////////////////////////////
			channal_temp_search(i_temp_search, 2) = key_temp_search
			channal_temp_search(i_temp_search, 3) = iii_temp_search
	
		    i_temp_search = i_temp_search + 1
		end if
		site.object(temp_search_advanced_show).rs.movenext
	Loop

	response.write "                        </select></td>"
	response.write "                    </tr></table></div>"
	response.write "            <div align='center' style='padding-bottom:15px;' id='sort_temp_search' style='display:none;'><table cellpadding='0' cellspacing='0' width=100%  height='30'>"
	response.write "                    <tr>"
	response.write "                        <td height='30' align='right' width=40% ><b>搜索分类：</b></td>"
	response.write "                        <td height='30' align=left><select size='1' name='sort'>$$$$</select></td>"
	response.write "                    </tr></table></div>"

	For ii_temp_search = 0 To i_temp_search
		response.write channal_temp_search(ii_temp_search, 2)
	Next

	response.write "            <div style='height:5px'></div>"
	response.write "            <div align='center' style='width:98%;border-top:1px solid #ebebeb;padding-top:5px;'><table cellpadding='0' cellspacing='0' width=100%  height='30'>"
	response.write "                    <tr>"
	response.write "                        <td align=right width=40% >"
	response.write "                           <input type=hidden value=''><input type='reset' value='重置'>&nbsp;&nbsp;</td>"
	response.write "                        <td align=left>"
	response.write "                           &nbsp;<input type='button' value='开始查询！' onclick='temp_search_submit()'></td>"
	response.write "                         </tr></table></div>"
	response.write "        </form>"

End If
site.object(temp_search_advanced_show).rs.Close

%>
		</td>
	</tr>
</table>
<script language=javascript defer>
var html_show_sort_temp=new Array;
var channal_show_sort_temp=new Array;
var n_show_sort_temp=new Array;
var search_sort;
var hh_temp;
var hk_temp;
var j_temp;
var jj_temp;
var n;
j_temp=0;
jj_temp=0;

<%
For ii_temp_search = 0 To i_temp_search - 1
	response.write "channal_show_sort_temp["&ii_temp_search&"]='"&channal_temp_search(ii_temp_search,0)&"';"&vbcrlf
	response.write "html_show_sort_temp["&ii_temp_search&"]="""&channal_temp_search(ii_temp_search,1)&""";"&vbcrlf
	response.write "n_show_sort_temp["&ii_temp_search&"]="""&channal_temp_search(ii_temp_search,3)&""";"&vbcrlf
Next
%>
function temp_change_input(a){
var b;
var c;
b='property_public_temp_value_s_'+a;
c='property_public_temp_value_e_'+a;
a='property_public_temp_value_'+a;
document.getElementById(a).value=document.getElementById(b).value+'$'+document.getElementById(c).value;
}

function temp_search_sort(){
var i;
for(i=0;i<=<%=i_temp_search-1%>;i++){
if(temp_search_advanced.channal.value==channal_show_sort_temp[i]){
/////////////
n=i;
if(html_show_sort_temp[i].length>0){
if(j_temp==0){
hh_temp=document.getElementById('sort_temp_search').innerHTML;
j_temp++;
}
document.getElementById('sort_temp_search').innerHTML=hh_temp.replace('$$$$',html_show_sort_temp[i]);
document.getElementById('sort_temp_search').style.display='';
}
else
{
document.getElementById('sort_temp_search').style.display='none';
}
////////////
document.getElementById('key_temp_search_'+i).style.display='';
}
else
{
document.getElementById('key_temp_search_'+i).style.display='none';
}
}
//auto_height();
}

function temp_search_submit(){
var url;
var i;
var j;
url='temp.asp?';
url=url+"tr="+temp_search_advanced.channal.value+"|search"
if(typeof(temp_search_advanced.sort) != "undefined")
url=url+"&sort_id="+temp_search_advanced.sort.value;
url=url+"&mode=property";
j=0;
for(i=0;i<n_show_sort_temp[n];i++){
if(document.getElementById('property_public_temp_value_'+n+'_'+i).value!='' && document.getElementById('property_public_temp_value_'+n+'_'+i).value!='$'){
if(j==0) 
url=url+"&property_public_name="+document.getElementById('property_public_temp_name_'+n+'_'+i).value;
else
url=url+"|"+document.getElementById('property_public_temp_name_'+n+'_'+i).value;
j++;
}
}
j=0;
for(i=0;i<n_show_sort_temp[n];i++){
if(document.getElementById('property_public_temp_value_'+n+'_'+i).value!='' && document.getElementById('property_public_temp_value_'+n+'_'+i).value!='$'){
if(j==0) 
url=url+"&property_public_value="+document.getElementById('property_public_temp_value_'+n+'_'+i).value;
else
url=url+"|"+document.getElementById('property_public_temp_value_'+n+'_'+i).value;
j++;
}
}

url=url+"&object_print=<%=site.object(temp_search_advanced_show).prints&"_"&site.object(temp_search_advanced_show).name%>";
window.location=url;
}

temp_search_sort();
</script>