<%
select case site.object(site.object_p).argument(0)
case "user"
site.object(site.object_p).rs.open "select top "&site.object(site.object_p).qu&" * from jins_goods_list where goods_open=1 and "&site.object(site.object_p).argument(1)&"=1 order by goods_addtime "&site.object(site.object_p).argument(2)&" ",conn,1,1
case "auto"
site.object(site.object_p).rs.open "select top "&site.object(site.object_p).qu&" * from jins_goods_list where goods_open=1 order by "&site.object(site.object_p).argument(1)&" "&site.object(site.object_p).argument(2)&" , goods_addtime desc ",conn,1,1
end select
%>
<table cellpadding="0" <%=site.object(site.object_p).style%>>
	<tr><td height="34" width="100%" valign="top"  colspan="3">
	<%
	select case site.object(site.object_p).name
	case "newgoods"
	response.write "<a href='temp.asp?tr=goods|search&order_name=goods_addtime&order_action=desc'>"
	case "hotgoods"
	response.write "<a href='temp.asp?tr=goods|search&order_name=goods_clicknum&order_action=desc'>"
	case "sellgoods"
	response.write "<a href='temp.asp?tr=goods|search&order_name=goods_sellnum&order_action=desc'>"
	case "tuijian"
	response.write "<a href='temp.asp?tr=goods|search&mode=property&property_public_name=commend&property_public_value==1&order_name=goods_addtime&order_action=desc&object_print="&site.object(site.object_p).prints&"'>"
	case "tejia"
	response.write "<a href='temp.asp?tr=goods|search&mode=property&property_public_name=special&property_public_value==1&order_name=goods_addtime&order_action=desc&object_print="&site.object(site.object_p).prints&"'>"
	end select 
	%>
	<img border="0" src="<%=site.object(site.object_p).image%>/menu.gif" width="420" height="34"> </a></td></tr>
<%
if site.object(site.object_p).rs.eof then
	response.write"<td><center>目前还没有商品</center></td>"
else

	response.write "<tr>"
	response.write "<td height='18' width='100%'>"
	
	't1=timer
	'for nnn=1 to site.object(site.object_p).qu
	do while not site.object(site.object_p).rs.eof
		response.write "<img hspace=5 src='"&site.object(site.object_p).image&"/bullet01.gif' align='absmiddle'><input onclick=""window.location='temp.asp?tr=goods|detail&id="&site.object(site.object_p).rs("goods_id")&"';"" style='border:0px;width:100px;CURSOR:hand;' title='"&trim(site.object(site.object_p).rs("goods_name"))&"' type=text value='"&left(trim(site.object(site.object_p).rs("goods_name")),8)&"'>"
		response.write "[ <INPUT onmouseover=""mq.set(this); tID=setInterval('mq.scroll()', 180);"" style='BORDER: 0px;WIDTH: 200px; CURSOR: hand;' onmouseout='clearInterval(tID); mq.init();' readOnly type=text value='"&site.functions.CutHtml(left(site.object(site.object_p).rs("goods_content"),1000),50)&"...'> ]  "
		response.write "<a title='添加到购物车中！' href=""javascript:newwin=window.open('do.asp?tr=shopping|cart|add&id="&site.object(site.object_p).rs("goods_id")&"','jins_cart','toolbar=no,location=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=700,height=600');newwin.focus();"" ><img align='absmiddle' border='0' src='"&site.object(site.object_p).image&"/ProductBuy.gif' width='43' height='15'></a><br>"
		goods_show_middle=goods_show_middle+1
		site.object(site.object_p).rs.movenext
	loop
	'next
'response.write (timer-t1)&"</td></tr>"

end if
site.object(site.object_p).rs.close
%>					
	<tr><td height="10" width="100%" valign="top" align="center" colspan="3" ></td></tr>
	<tr><td height="1" width="100%" valign="top" align="center" colspan="3" background="<%=site.object(site.object_p).image%>/ico_dian.gif" ></td></tr>
</table>