<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Conn.asp"-->
<%On Error Resume Next
Randomize%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>帮助中心-<%=titles%></title>
<meta name="Author" content="交换网-有什么？换什么？">
<meta name="description" content="<%=descriptions%>">
<meta name="keywords" content="<%=keywords%>">
<link rel="icon" href="ico.ico" type="image/x-icon" />
<link rel="shortcut icon" href="ico.ico" type="image/x-icon" />
<link rel="stylesheet" href="../css/css.css" type="text/css">
</head>

<body>
<!--#include file="top.asp"-->
<table width="980"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="240" valign="top" bgcolor="#F9FBFD"><!--#include file="left.asp"--></td>
    <td width="10">&nbsp;</td>
    <td valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td background="../images/nei_1.gif">&nbsp;帮助搜索</td>
        <td width="25"><img src="../images/nei.gif" width="25" height="28"></td>
      </tr>
    </table>
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="10" style="line-height:25px"><%
set rs=server.CreateObject("adodb.recordset")
if request("action")="helpsubmit" then
	tempSql=""
	tempSql="title like '%"&request("title")&"%'"
end if
	sql="Select * from help_news where "&tempSql&" order by id desc"
	rs.open sql,conn,1,1
if not rs.eof and not rs.bof then
%></td>
        </tr>
		<%if request("page")="" then
		page=1
	else
		page=clng(request("page"))
	end if
	m=0
	dim nt
	rs.pagesize=20'每页显示新闻条数
	if page<1 then page=1
	if page>rs.pagecount then page=rs.pagecount 
	if rs.pagecount>0 then rs.absolutepage=page
	do while not rs.eof and m<rs.pagesize%>
        <tr>
          <td height="25" class="text">&nbsp;<a href="news_show.asp?id=<%=rs("id")%>" title="<%=rs("title")%>" class="text" style="font-size:12px"><%=left(rs("title"),50)%></a></td>
        </tr>
        <tr>
          <td height="1" background="../images/line.gif" style="line-height:25px"></td>
        </tr>
		  <%
rs.movenext
m=m+1
loop
%>
        <tr>
          <td height="40" class="text" style="line-height:25px"><div align="center">当前共<font color="#FF3300"><%=rs.recordcount%></font> 条信息 当前页次：<font color="#FF3300"><%=page%></font> / <font color="#FF3300"><%=rs.pagecount%></font> 页 <a href="?PAGE=1&title=<%=request("title")%>&action=helpsubmit" class="text">首 页</a>
                    <%if rs.pagecount>1 then 
     if page=1 then%>
          | 上一页 | <a href="?PAGE=<%=(page+1)%>&title=<%=request("title")%>&action=helpsubmit" class="text"> 下一页</a>
          <%else
      if page=rs.pagecount then%>
          | <a href="?PAGE=<%=(page-1)%>&title=<%=request("title")%>&action=helpsubmit" class="text">上一页</a> | 下一页
          <%else%>
          | <a href="?PAGE=<%=(page-1)%>&title=<%=request("title")%>&action=helpsubmit" class="text">上一页</a> | <a href="?PAGE=<%=(page+1)%>&title=<%=request("title")%>&action=helpsubmit" class="text"> 下一页</a>
          <%end if%>
          <%end if%>
          <%end if%>
          | <a href="?PAGE=<%=rs.pagecount%>&title=<%=request("title")%>&action=helpsubmit" class="text"> 尾 页</a> </div></td>
        </tr>
		<%
end if
rs.close
%>
      </table>    </td>
  </tr>
</table>
<!--#include file="bottom.asp"-->
</body>
</html>
