<%side_goods_list_show=site.object_p%>
<!-- object[<%=site.object_p%>]::side_goods_list_show -->
<%

select case site.object(side_goods_list_show).argument(0)
case "user"
site.object(side_goods_list_show).rs.open "select top "&site.object(side_goods_list_show).qu&" * from jins_goods_list where goods_open=1  and "&site.object(side_goods_list_show).argument(1)&"=1 order by goods_addtime "&site.object(side_goods_list_show).argument(2)&" ",conn,1,1
case "auto"
site.object(side_goods_list_show).rs.open "select top "&site.object(side_goods_list_show).qu&" * from jins_goods_list where goods_open=1 order by "&site.object(side_goods_list_show).argument(1)&" "&site.object(side_goods_list_show).argument(2)&",goods_addtime desc ",conn,1,1
end select
%>
<table cellpadding="0" cellspacing="0" width="17%" height="109"<%=site.object(side_goods_list_show).style%>>
   	<tr><td height="2%" width="100%" valign="top">
	<%
	select case site.object(side_goods_list_show).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(side_goods_list_show).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(side_goods_list_show).prints&"'>"
	end select 
	%>
	<img border="0" src="<%=site.object(side_goods_list_show).image%>/menu.gif" width="175" height="46" border='0'>
	</a>
	</td></tr>
	<tr>
		<td height="260%" width="99%" valign="top" align="center" style="padding-bottom: 5px; padding-top:5px">
		<table width="100%"  cellpadding="0" cellspacing="0">
<%
if site.object(side_goods_list_show).rs.eof then
                 response.write "<tr><td><center>目前还没有商品</center></td></tr>"
else

                  response.write "<tr><td height='24' background='"&site.object(side_goods_list_show).image&"/dp_bg.gif' style='line-height: 24px; padding-left: 18px'>"
do while not site.object(side_goods_list_show).rs.eof
if site.object(side_goods_list_show).name="newgoods" then  response.write "["&year(site.object(side_goods_list_show).rs("goods_addtime"))&"/"&month(site.object(side_goods_list_show).rs("goods_addtime"))&"/"&day(site.object(side_goods_list_show).rs("goods_addtime"))&"]<a href=temp.asp?tr=goods|detail&id="&site.object(side_goods_list_show).rs("goods_id")&"  title='["&site.object(side_goods_list_show).rs("goods_name")&"] >>> 此商品加入日期["&site.object(side_goods_list_show).rs("goods_addtime")&"]'>"
if site.object(side_goods_list_show).name="tuijian" then  response.write "<a href=temp.asp?tr=goods|detail&id="&site.object(side_goods_list_show).rs("goods_id")&"  title='["&site.object(side_goods_list_show).rs("goods_name")&"] >>> 此商品加入日期["&site.object(side_goods_list_show).rs("goods_addtime")&"]'>"
if site.object(side_goods_list_show).name="tejia" then  response.write "<a href=temp.asp?tr=goods|detail&id="&site.object(side_goods_list_show).rs("goods_id")&"  title='["&site.object(side_goods_list_show).rs("goods_name")&"] >>> 此商品加入日期["&site.object(side_goods_list_show).rs("goods_addtime")&"]'>"
if site.object(side_goods_list_show).name="hotgoods" then  response.write "<a href=temp.asp?tr=goods|detail&id="&site.object(side_goods_list_show).rs("goods_id")&"  title=此商品已浏览"&site.object(side_goods_list_show).rs("goods_clicknum")&"次>"
if site.object(side_goods_list_show).name="sellgoods"  then response.write "<a href=temp.asp?tr=goods|detail&id="&site.object(side_goods_list_show).rs("goods_id")&"  title=此商品已销售"&site.object(side_goods_list_show).rs("goods_sellnum")&"件>"

if site.object(side_goods_list_show).name="newgoods" then
if len(trim(site.object(side_goods_list_show).rs("goods_name")))>6 then
				  response.write left(trim(site.object(side_goods_list_show).rs("goods_name")),5)&".."
else
				  response.write trim(site.object(side_goods_list_show).rs("goods_name"))
end if
else
if len(trim(site.object(side_goods_list_show).rs("goods_name")))>12 then
				  response.write left(trim(site.object(side_goods_list_show).rs("goods_name")),11)&".."
else
				  response.write trim(site.object(side_goods_list_show).rs("goods_name"))
end if
end if

				  response.write "</a><br>"
site.object(side_goods_list_show).rs.movenext
loop
                  response.write "</td>"
                  response.write "</tr>"
end if
site.object(side_goods_list_show).rs.close
%>
		</table>
		</td>
	</tr>						
</table>