<%temp_search_help_list_show=site.object_p%>
<!-- object[<%=site.object_p%>]::temp_search_help_list_show -->
<%
dim mode
dim sort_id
dim porperty_name
dim porperty_value
mode=request("mode")
sort_id=request("sort_id")
if sort_id="" then sort_id=0
if mode="" then mode="sort"
'///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////查询！！
if mode="sort" then
site.temp.search.sort("help")
select_content=site.temp.search.select_content
end if
if mode="property" then
site.temp.search.property("help")
 '导航栏内容
select_content=site.temp.search.select_content
end if
'################################################################################################################################################################
'结果分页显示

dim n_pages,n_all,n_pepage,n_page,c

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

c_order="帮助标题$help_title|加入时间$help_addtime|浏览次数$help_clicknum,升序$|降序$desc"

c="<table cellpadding='0' cellspacing='0' width='98%' height='20'"&site.object(temp_search_help_list_show).style&">"
c=c+"	<tr>"
c=c+"		<td height='30' width='60' align=right>"
c=c+"		<img border='0' src='"&site.object(temp_search_help_list_show).image&"/dotorange.gif'></td>"
c=c+"		<td height='30' width='65%' style='padding-left:15'><a href='temp.asp?tr=help|detail&id=$$help_id$$'>$$help_title,20$$</a></td>"
c=c+"		<td height='30' width='30%'>浏览次数：$$help_clicknum$$</td>"
c=c+"	</tr>"
c=c+"	<tr>"
'c=c+"		<td height='1' width='156'></td>"
c=c+"		<td height='1' width='100%' colspan='3' background='"&site.object(temp_search_help_list_show).image&"/dot03.gif'></td>"
c=c+"	</tr>"
c=c+"</table>"

'------------显示函数
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

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(temp_search_help_list_show).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(temp_search_help_list_show).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(temp_search_help_list_show).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(temp_search_help_list_show).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(temp_search_help_list_show).image&"/btn_next.gif' width='18' height='21' alt='最后一页'></a></td>"
response.write "</tr>"
response.write "</table>"

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