<%middle_goods_list_show=site.object_p%>
<!-- object[<%=site.object_p%>]::middle_goods_list_show -->
<table cellSpacing="0" cellPadding="0" width="583" border="0"<%=site.object(site.object_p).style %>>
	<!-- MSTableType="nolayout" -->
	<tr>
		<td>
		<table cellSpacing="0" cellPadding="0" width="583" border="0" >
			<tr>
				<td>
<%
	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

	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 src="<%=site.object(site.object_p).image%>/menu.gif" width="583" height="34" border="0"></a></td>
				</tr>
				<tr>
					<td background="<%=site.object(site.object_p).image%>/bg.gif" height="100" style="padding-top: 5px; padding-bottom: 0px">
					<table cellpadding="0" cellspacing="0" width="100%" height="100%">
						<!-- MSTableType="layout" -->
<%
if site.object(site.object_p).rs.eof then

	response.write"<tr><td><center>目前还没有商品</center></td></tr>"
	
else
		
	n_show=1
	response.write "<tr>"
	dim ims(2)
	do while not site.object(site.object_p).rs.eof
	 
		response.write "<td width=20% align=center valign=bottom height=170px style='line-height:20px;'>"
		response.write "<a target=_blank href=temp.asp?tr=goods|detail&id="&site.object(site.object_p).rs("goods_id")&">"
		
		cc="<img height='$h$' width='$w$' vspace=5 style='border:1px solid #E3E3E3;' src='$src$' onmouseover=this.style.borderColor='#FF0000'; onmouseout=this.style.borderColor='#E3E3E3';>"
		site.image.showimages site.object(site.object_p).rs("goods_pic"),site.object(site.object_p).rs("goods_picture"),cc,90,90
		
		response.write "</a><br><a href=temp.asp?tr=goods|detail&id="&site.object(site.object_p).rs("goods_id")&" target=_blank title='"&trim(site.object(site.object_p).rs("goods_name"))&"'>"&left(trim(site.object(site.object_p).rs("goods_name")),8)&"</a><br>"
		
		if site.check.dbnamesearch("jins_goods_list","goods_price_"&site.temp.customer.info.sort_name_e) then
			response.write site.temp.customer.info.sort_name&"价:"&site.info.unit_money(1)&site.object(site.object_p).rs("goods_price_"&site.temp.customer.info.sort_name_e)
		else
			response.write "市场价:"&site.info.unit_money(1)&" "&site.object(site.object_p).rs("goods_price_mart")
		end if
		
		response.write "<br><a 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();"" >"
		response.write "<img height=20 src='"&site.object(site.object_p).image&"/buy.gif' width=45 border=0 hspace=2></a>"
		response.write "<a href=""javascript:newwin=window.open('do.asp?tr=shopping|wishlist|add&id="&site.object(site.object_p).rs("goods_id")&"','jins_wishlist','toolbar=no,location=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=700,height=600');newwin.focus();"" >"
		response.write "<img height=20 src='"&site.object(site.object_p).image&"/shoucang.gif' width=45 border=0 hspace=2></a>"
		response.write "</td>"
		site.object(site.object_p).rs.movenext
		if n_show mod 5 =0 and n_show>0 then response.write "</tr>"
		n_show=n_show+1
		
	loop
	response.write "</tr>"
		
end if
site.object(site.object_p).rs.close
%>
                </table>

				</td>
			</tr>
			<tr>
				<td>
				<img height="10" src="<%=site.object(site.object_p).image%>/bottom.gif" width="582"></td>
			</tr>
		</table>
		</td>
	</tr>
</table>