<br>
<br>
<br>
<%
dim g
dim g_n
g=MySys.object.object_customer_grade
if g<>"" then g=split(g,"|")

function ListCustomerSort(kind)
dim rs_t
dim rs_tt
set rs_t=conn.execute("select sort_grade from jins_customer_sort order by sort_grade ")
do while not rs_t.eof 
	response.write "<input type="&kind&" value="&rs_t("sort_grade")&" >"
	set rs_tt=conn.execute("select sort_description,sort_name,sort_grade from jins_customer_sort where sort_grade="&rs_t("sort_grade")&" ")
	do while not rs_tt.eof 

		response.write rs_tt("sort_description")&" | "
		
		rs_tt.movenext
	loop
	rs_tt.close
	
	response.write "<br>"
	
	rs_t.movenext
loop
rs_t.close
'response.end
end function
%>
			<tr>
				<td  width="100%" align=left valign=top>
				<select name=customer_grade_0 onchange='gradeshow();'>
				<option value='>=' <%if g(0)=">=" then response.write "selected"%>>高于或等于</option>
				<option value='<=' <%if g(0)="<=" then response.write "selected"%>>低于或等于</option>
				<option value='=' <%if g(0)="=" then response.write "selected"%> >等于</option>
				</select>
				</td>
			</tr>
			<tr>
				<td  width="100%" align=left valign=top>
				<div id=radio ><%ListCustomerSort("radio")%></div>
				<div id=checkbox ><%ListCustomerSort("checkbox")%></div>
				</td>
			</tr>
			<tr>
			    <td height='1' colspan="8" width='100%' background='images/dot03.gif'></td>
			</tr>
	<script >
	function gradeshow(){
	if (object_basic.customer_grade_0.value=='='){
	document.getElementById("radio").style.display="none";
	document.getElementById("checkbox").style.display="";
	}
	else
	{
	document.getElementById("radio").style.display="";
	document.getElementById("checkbox").style.display="none";
	}
	
	}
	</script>
