<%temp_detail_goods_list_property_stat_show=site.object_p%>
<!-- object[<%=site.object_p%>]::temp_detail_goods_list_property_stat_show -->
<table cellpadding="0" cellspacing="0" height="100%" width="100%" style="border: 1px solid #EBEBEB" bgcolor="#FFFFFF"<%=site.object(site.object_p).style%>><tr>
						<td align="center" style="padding: 15px">
					<table cellpadding="0" cellspacing="0" height=25 width="100%" style="border: 1px solid #EBEBEB;border-bottom:0px">
						<!-- MSTableType="nolayout" -->
						<tr>
							<td height="25" width="40%" align="center" bgcolor='#F7F7F7' style='border-bottom: 1px solid #EBEBEB;'>　[<%=site.object(temp_detail_goods_detail_show).rs_other(0)("goods_name")%>]综合数据排名</td>
							<td height="25" width="30%" align="center" bgcolor='#F7F7F7' style='border-bottom: 1px solid #EBEBEB;'>　分类排名</td>
							<td height="25" width="30%" align="center" bgcolor='#F7F7F7' style='border-bottom: 1px solid #EBEBEB;'>　全站排名</td>
						</tr>
<%
'///////////人气排名
%>
						<tr>
							<td height="25" width="40%" align="center" bgcolor='#F7F7F7' style='border-bottom: 1px solid #EBEBEB;border-right: 1px solid #EBEBEB'>　人气排名</td>
							<td height="25" width="30%" style='padding-left:30px;border-bottom: 1px solid #EBEBEB;'>
<%
n_temp_detail=conn.execute("select count(goods_id) from jins_goods_list where goods_clicknum<"&site.object(temp_detail_goods_detail_show).rs_other(0)("goods_clicknum")&" and sort_id="&site.object(temp_detail_goods_detail_show).rs_other(0)("sort_id"))(0)+1
response.write n_temp_detail
if n_temp_detail<=10 then response.write "<img align=absmiddle hspace=5 src='"&site.object(site.object_p).image&"/hot.gif'>"
%>

							</td>
							<td height="25" width="30%" style='padding-left:30px;border-bottom: 1px solid #EBEBEB;'>
<%
n_temp_detail=conn.execute("select count(goods_id) from jins_goods_list where goods_clicknum<"&site.object(temp_detail_goods_detail_show).rs_other(0)("goods_clicknum"))(0)+1
response.write n_temp_detail
if n_temp_detail<=20 then response.write "<img align=absmiddle hspace=5 src='"&site.object(site.object_p).image&"/best.gif'>"
%></td>
						</tr>
<%
'///////////销售排名
%>
						<tr>
							<td height="25" width="40%" align="center" bgcolor='#F7F7F7' style='border-bottom: 1px solid #EBEBEB;border-right: 1px solid #EBEBEB'>　销量排名</td>
							<td height="25" width="30%" style='padding-left:30px;border-bottom: 1px solid #EBEBEB;'>
<%=conn.execute("select count(goods_id) from jins_goods_list where goods_sellnum<"&site.object(temp_detail_goods_detail_show).rs_other(0)("goods_sellnum")&" and sort_id="&site.object(temp_detail_goods_detail_show).rs_other(0)("sort_id"))(0)+1%>

							</td>
							<td height="25" width="30%" style='padding-left:30px;border-bottom: 1px solid #EBEBEB;'>
<%=conn.execute("select count(goods_id) from jins_goods_list where goods_sellnum<"&site.object(temp_detail_goods_detail_show).rs_other(0)("goods_sellnum"))(0)+1%></td>
						</tr>

					</table>
                    <p align=left>·同类商品人气排行 <font color=red>TOP10</font></p>
					<table cellpadding="0" cellspacing="0" height=25 width="100%" style="border: 1px solid #EBEBEB;border-bottom:0px">
						<!-- MSTableType="nolayout" -->
						<tr>
							<td height="25" width="15%" align="center" bgcolor='#F7F7F7' style='border-bottom: 1px solid #EBEBEB;border-right: 1px solid #EBEBEB'>　排名</td>
							<td height="25" width="45%" align="center" bgcolor='#F7F7F7' style='border-bottom: 1px solid #EBEBEB;border-right: 1px solid #EBEBEB'>　商品名称</td>
							<td height="25" width="20%" align="center" bgcolor='#F7F7F7' style='border-bottom: 1px solid #EBEBEB;border-right: 1px solid #EBEBEB'>　价格(元)</td>
							<td height="25" width="20%" align="center" bgcolor='#F7F7F7' style='border-bottom: 1px solid #EBEBEB'>　点击</td>
						</tr>
<%
site.object(site.object_p).rs.open "select top 10 goods_id,goods_name,goods_addtime,goods_price_"&site.temp.customer.info.sort_name_e&",goods_clicknum from jins_goods_list where sort_id="&site.object(temp_detail_goods_detail_show).rs_other(0)("sort_id")&" order by goods_clicknum desc ",conn,1,1
n_temp_detail=1
do while not site.object(site.object_p).rs.eof 
response.write"<tr>"
response.write"<td height='25' width='15%' align='center' bgcolor='#F7F7F7' style='border-bottom: 1px solid #EBEBEB;border-right: 1px solid #EBEBEB'>"&n_temp_detail&"</td>"
response.write"<td height='25' width='45%' align='center' style='border-bottom: 1px solid #EBEBEB;border-right: 1px solid #EBEBEB'><a href='temp.asp?"
response.write site.temp.url_request&"&id="&site.object(site.object_p).rs("goods_id")&"'>"&site.object(site.object_p).rs("goods_name")&"</a></td>"
response.write"<td height='25' width='20%' align='center' style='border-bottom: 1px solid #EBEBEB;border-right: 1px solid #EBEBEB'>"&site.info.unit_money(1)&site.object(site.object_p).rs("goods_price_"&site.temp.customer.info.sort_name_e)&"</td>"
response.write"<td height='25' width='20%' align='center' style='border-bottom: 1px solid #EBEBEB'>"&site.object(site.object_p).rs("goods_clicknum")&"</td>"
response.write"</tr>"
n_temp_detail=n_temp_detail+1
site.object(site.object_p).rs.movenext
loop
site.object(site.object_p).rs.close
%>
					</table>
					
					
					
					
					
					</td></tr></table>