<!-- #INCLUDE file="page2.asp" -->

<style type="text/css">
<!--
li {
	font-size: 13px;
	line-height: 22px;
	border-bottom-width: 1px;
	border-bottom-style: dashed;
	border-bottom-color: #EEEEEE;
	margin-right:5px;
}
-->
</style>
<table width="98%" align="center" bgcolor="#E6F4FF">
  <form name="form1" method="post" action="help.asp"><tr>
    <td>
      搜索:
          <input name="keywords" type="text" id="keywords">
          <input type="submit" name="Submit" value="GO"></td>
    <td><a href="help.asp">全部</a></td>
  </tr> </form>
</table> 
<%
if request("keywords")<>"" then 
	lan_pre(79)
	response.Write(":<font color=red>"&request("keywords")&"</font>")
end if
	classID=replace(replace(cur_file,".asp",""),"h","")
where="where del=0 and classId="&classID&" order by id desc"	
	if classID="elp" or classID="" then 
		where="where del=0 order by id desc"	
		classID=""
	end if
if request("keywords")<>"" then'如果是搜索
	where=" where del=0 and title like '%"&request("keywords")&"%' order by id desc"
end if

response.Write("<ol>")

set rs=server.createobject("adodb.recordset") 
sql="select * from FAQ "&where
rs.open sql,conn,1,1 
if rs.recordcount=0 then
	response.Write"<br><br><font align=center color=red>"
	lan(83)'没有相关信息
	response.write"</font>"
	response.End()
end if


rs.pagesize=100
response.Cookies("count_of_page")=count_of_page

page=clng(request("Page"))
if page=empty then page=1
response.Cookies("page")'写入当前页数，供page.asp用
rs.AbsolutePage=page

for i=1 to rs.pagesize'显示的条数

	if rs.eof then exit for 

	pic_x="pic/x/+.gif"

	title=rs("title")
	if title="" then title="No title"
	
	response.Write("<li><a target=_blank href=h/f"&rs("id")&".htm>"&title&"</a>")

rs.movenext
next

response.Write("</ol>")
call fy("100%","#EFF7FC","center","style='border:#BAD6F1 1px solid;'")'调用分页

rs.close
set rs=nothing
%> 