<%site.object_p=site.object_p%>
<!-- object[<%=site.object_p%>]::site.object_p -->
<%
dim price_show
dim price_name
dim mode
dim porperty_name
dim porperty_value
mode=request("mode")
if mode="" then mode="sort"
'///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////查询！！
if mode="sort" then
site.temp.search.sort("goods")
select_content=site.temp.search.select_content
end if
if mode="property" then
site.temp.search.property("goods")
 '导航栏内容
select_content=site.temp.search.select_content
end if
'################################################################################################################################################################
'游客与普通会员价格一致
price_show=site.temp.customer.info.sort_name_e
price_name=site.temp.customer.info.sort_name
if price_show="guest" then 
'price_show="user"
price_name="普通会员"
end if

'结果分页显示
dim n_pages,n_all,n_pepage,n_page,c

n_pepage=site.object(site.object_p).qu
n_page=int(request("n_page"))
if n_page=0 then n_page=1 

c_order="加入时间$goods_addtime|商品价格$goods_price_"&price_show&"|商品名称$goods_name|销售量$goods_addtime|浏览次数$goods_clicknum|推荐度$goods_commend,升序$|降序$desc"

c="<table border='0' width='507' height='95' cellpadding='0' cellspacing='0' background='"&site.object(site.object_p).image&"/bg.gif'"&site.object(site.object_p).style&">"
c=c+"<tr>"
'pic
if site.object(site.object_p).Search_Object(site.object(site.object_p).id,"picture") then
c=c+"<td width='105' align='center'>"
c=c+"<table  cellpadding='0' cellspacing='0' width='95' height='85' style='border: 1px solid #F2F2F2;' onmouseout=this.style.borderColor='#F2F2F2'; onmouseover=this.style.borderColor='#FF0000';>"
c=c+"<tr><td  height='100%' width='100%' align='center'><a href='temp.asp?tr=goods|detail&id=$$goods_id$$'>"&vbcrlf
		
'c=c+"<%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';>"""&vbcrlf
c=c+"<%cc=""<img height='$h$' width='$w$' vspace=2  src='$src$' border=0 >"""&vbcrlf
c=c+"site.image.showimages ""$$goods_pic$$"",""$$goods_picture$$"",cc,85,75 "&vbcrlf
c=c+"%\\>"&vbcrlf

c=c+"</a></td></tr>"
c=c+"</table>"
c=c+"</td>"
end if

'content
if site.object(site.object_p).Search_Object(site.object(site.object_p).id,"content") then
c=c+"<td width='302' valign='top'>"
c=c+"<table cellpadding='0' cellspacing='0' width='100%' height='100%'>"
c=c+"<tr><td height='30%' width='100%'valign='middle'><img  height='15' hspace='2' src='"&site.object(site.object_p).image&"/ico_arrow_rd.gif' width='15' align='absmiddle' border='0'><a  href='temp.asp?tr=goods|detail&id=$$goods_id$$'> <font color='#FF0000'>$$goods_name$$</font></a></td></tr>"
c=c+"<tr><td height='70%' width='100%' valign='top'><p align='justify' style='line-height: 15px; margin-left: 5px'>"
c=c+"$$*goods_content,100$$"
c=c+"</td></tr>"
c=c+"</table>"
c=c+"</td>"
end if

c=c+"<td  width='100' valign='top'>"
c=c+"<table cellpadding='0' cellspacing='0' width='100%' height='100%'>"

'price
if site.object(site.object_p).Search_Object(site.object(site.object_p).id,"price") then
c=c+"<tr><td  height='45' width='100%' align='center' valign='center'><p align='center' style='line-height: 150%;'><font color='#FF0000'>"&price_name&"价<br>"&site.info.unit_money(1)&" $$goods_price_"&price_show&",,N/A$$ "&site.info.unit_money(0)&"</font></td></tr>"
end if

'cart/wishlist 
if site.object(site.object_p).Search_Object(site.object(site.object_p).id,"wishlist") then
c=c+"<tr>"
c=c+"<td  height='50' width='100%' align='center'valign='top'>"
c=c+"<a href=""javascript:newwin=window.open('do.asp?tr=shopping|cart|add&id=$$goods_id$$','jins_cart','toolbar=no,location=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=700,height=600');newwin.focus();"" ><img height='20' src='"&site.object(site.object_p).image&"/goumai.gif' width='65' vspace='2' border='0'></a><br>"
c=c+"<a href=""javascript:newwin=window.open('do.asp?tr=shopping|wishlist|add&id=$$goods_id$$','jins_wishlist','toolbar=no,location=no,status=no, menubar=no,scrollbars=yes,resizable=no,width=700,height=600');newwin.focus();"" ><img height='20' src='"&site.object(site.object_p).image&"/shoucang1.gif' width='65' border='0'></a></td>"
c=c+"</tr>"
end if

c=c+"</table>"

c=c+"</td>"
c=c+"</tr>"
c=c+"</table><br>"

'c="dfdfd %\>"
'response.end

'------------显示函数
dim ar_send(5)

ar_send(0)=n_pepage
ar_send(1)=n_page
ar_send(2)=select_content
ar_send(3)=c_order
ar_send(4)=c_h
ar_send(5)=c
'response.write "hjhjh"&InStr(1,ar_send(5),"%\>")

n_pages=site.functions.thing_list(ar_send)
'-----------显示函数
site.temp.url_request=replace(site.temp.url_request,"&n_page="&request("n_page"),"")

response.write "<br>"
response.write "<table border='0' width='507' cellspacing='1' cellpadding='0' "&site.object(site.object_p).style&">"
response.write "<tr>"
response.write "<td align='center' >"
response.write "<a href='temp.asp?"&site.temp.url_request&"&n_page=1'><img align='absmiddle' border='0' src='"&site.object(site.object_p).image&"/btn_pre.gif' width='19' height='21' alt='第一页'></a>"
if n_page>1 then  response.write "<a href='temp.asp?"&site.temp.url_request&"&n_page="&n_page-1&"'><img align='absmiddle'  border='0' src='"&site.object(site.object_p).image&"/btn_pre2.gif' width='47' height='21' alt='上一页'></a> "
response.write "一共有"&n_pages&"页&nbsp; 现在是第"&n_page&"页"

for num_page_show=1 to n_pages
response.write "[<a href='temp.asp?"&site.temp.url_request&"&n_page="&num_page_show&"'>"&num_page_show&"</a>] "
next

if n_page<n_pages then  response.write "<a href='temp.asp?"&site.temp.url_request&"&n_page="&n_page+1&"'><img align='absmiddle'  border='0' src='"&site.object(site.object_p).image&"/btn_next2.gif' width='46' height='21' alt='下一页'></a>"
response.write "<a href='temp.asp?"&site.temp.url_request&"&n_page="&n_pages&"'><img align='absmiddle'  border='0' src='"&site.object(site.object_p).image&"/btn_next.gif' width='18' height='21' alt='最后一页'></a></td>"
response.write "</tr>"
response.write "</table>"

'结果分页显示结束
'################################################################################################################################################################
%>
