<!--#include file="conn.asp"-->
<%
sort_id=Request("sort_id")
chkid(sort_id)
showp="../sort.asp?sort_id="&sort_id
set rs=server.createobject("adodb.recordset")
sql="select sort_name,sort_skin,sort_title,sort_keyword,sort_d,sort_page from WrzcNethtml_sort where sort_id="&sort_id&""
rs.open sql,conn,1,1
if not rs.eof then
sort_name=rs("sort_name")
sort_keyword=rs("sort_keyword")
sort_title=rs("sort_title")
sort_d=rs("sort_d")
sort_page=rs("sort_page")
if rs("sort_skin")<>"" then WrzcNethtml_skin=rs("sort_skin")
end if
rs.close
set rs=nothing

if seo_sort1=1 then
	seo_title=sort_title
else
	seo_title=seo_sort2
	if seo_title<>"" then
		seo_title=replace(replace(replace(seo_title,"*S",sort_name),"*Z",sitename),"*C",company)
	end if
end if

if seo_sort3=1 then
	seo_keyword=sort_keyword
else
	seo_keyword=seo_sort4
	if seo_keyword<>"" then
		seo_keyword=replace(replace(replace(seo_keyword,"*S",sort_name),"*Z",sitename),"*C",company)
	end if
end if

if seo_sort5=1 then
	seo_d=sort_d
else
	seo_d=seo_sort6
	if seo_d<>"" then
		seo_d=replace(replace(replace(seo_d,"*S",sort_name),"*Z",sitename),"*C",company)
	end if
end if
order=request("order")
page=request("page")
orderx=getorder(order)
page=getpage(page)
%>
<!--#include file="WrzcNethtml_top.asp"-->
<div align="center">
<table cellpadding="0" cellspacing="0" class="all_t1">
<tr><td class="all_l_td" valign="top">
<script language="JavaScript1.1" src="../WrzcNethtml_logs.asp"></script><div class="d5"></div>
<!--#include file="WrzcNethtml_sort.asp"--><div class="d5"></div>
<!--#include file="all_ph.asp"--><div class="d5"></div>
</td>
<td valign="top" class="all_c_td">
<table width="99%" border="0" cellpadding="0" cellspacing="0">
<%
set rs=server.createobject("adodb.recordset")
sql="select banner,url from WrzcNethtml_logo where sort="&sort_id&""
rs.open sql,conn,1,1
do while not rs.eof%><tr><td align="center" height="85"><%showflash rs("banner"),rs("url"),775,null,"banner"%></td></tr>
<%rs.movenext
loop
rs.close
set rs=nothing%>
<%
set rs=server.createobject("adodb.recordset")
sql="select hw_id,hw_name,hw_price1,hw_price2,hw_pic,hw_content from WrzcNethtml_hw where hw_kucun>0 and sort_id="&sort_id&" order by "&orderx&""
rs.open sql,conn,1,1
if rs.eof then%>
<tr><td class="sort">&nbsp;<IMG src="../Skin/<%=WrzcNethtml_skin%>/home.gif" border=0 align="absmiddle">  
	<a href="../index.html">Home</a> >>&nbsp;<%=sort_name%>
</td></tr>
<tr><td align="center" height="30">No Data</td></tr>
<%else
rs.pagesize=lookpage
totalrec=rs.recordcount
totalpage=rs.pagecount
if page>totalpage then page=totalpage
rs.absolutepage=page
rs.cachesize=rs.pagesize
%>
<tr><td class="sort">&nbsp;<IMG src="../Skin/<%=WrzcNethtml_skin%>/home.gif" border=0 align="absmiddle">  
	<a href="../index.html">Home</a> >>&nbsp;<%=sort_name%>&nbsp;(Total:<%=totalrec%>,The page show:<%=(page-1)*rs.pagesize+1%>-<%if page+1<=totalpage then%><%=page*rs.pagesize%><%else%><%=totalrec%><%end if%>)
</td></tr>
<tr><td height=5>
<%
getnsort sort_id
getpinpai sort_id,"sort"
%>
</td></tr>
<tr><td id="sorta">
<!--#include file="WrzcNethtml_ins.asp"-->

<table width="100%" border="0" cellpadding="0" cellspacing="0"><form action=<%=showp%> method=post>
<tr><td id="page"> 
<%
if page<=pagecc then
spage=1
else
spage=page-pagecc
end if
if page>=totalpage-pagecc then
lpage=totalpage
else
lpage=page+pagecc
end if
%>
Page:<%=page%>/Total:<%=totalpage%>&nbsp;&nbsp;
<a href="sort<%=sort_id%>-1.html" class="page_h"></a>
<%if page-1>0 then%><a href="sort<%=sort_id%>-<%=page-1%>.html" class="page_p"></a><%else%><span class="page_p0"></span><%end if%>
<%for i=spage to lpage
if i=page then%><span class="page_a0"><%=i%></span>
<%else%><a href="sort<%=sort_id%>-<%=i%>.html" class="page_a"><%=i%></a><%end if
next%>
<%if page+1<=totalpage then%> <a href="sort<%=sort_id%>-<%=page+1%>.html" class="page_n"></a><%else%><span class="page_n0"></span><%end if%>
<a href="sort<%=sort_id%>-<%=totalpage%>.html" class="page_l"></a>
</td></tr></table>
</td></tr>
<%end if
rs.close
set rs=nothing%>
</table>
</td></tr></table></div><!--#include file="WrzcNethtml_copy.asp"-->