<!-- #include file="../db/conn.asp" -->
<!-- #include file="../../public/public/language.asp" -->
<link href="css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	margin-left: 18px;
	margin-top: 2px;
	word-break:break-all;
}
.b {
	height: 16px;
}
.tr_bg {
	font-size: 14px;
	font-weight: bold;
	text-align: center;
	background-color: #dddddd;
}
body,td,th {
	font-size: 13px;
}
a:link {
	color: #316AC5;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #316AC5;
}
a:hover {
	text-decoration: underline;
	color: #FF0000;
}
a:active {
	text-decoration: none;
	color: #FF0000;
}
-->
</style>
<body onLoad="parent.document.all.rightFrame.style.height=document.body.scrollHeight+10">
<br><form name="form1" method="post" action="">
<table width="100%" bgcolor="#E6F4FF">
  <tr>
    <td width="23%" align="center"><a href="?" onClick="parent.leftFrame.location.reload()"><%lan_pub(75)%></a> | <a href="#ddd" onClick="window.open('help_add.asp','','width=500,height=450')"><%lan_pub(76)%></a></td>
    <td width="77%">
      <%lan_pub(77)%>:
          <input name="keywords" type="text" id="keywords">
          <input type="submit" name="Submit" value="<%lan_pub(78)%>">
      </td>
  </tr>
</table> </form> 
<%
if request("keywords")<>"" then 
	lan_pub(79)
	response.Write(":<font color=red>"&request("keywords")&"</font>")
end if
	classID=request("classId")
	if classID="" then classID=1
where="where del=0 and classId="&classID&" order by id desc"
if request("classid")="" then where=" where del=0 order by id desc"'如果返回的classid为空，就显示全部
if request("keywords")<>"" then'如果是搜索
	where=" where del=0 and title like '%"&request("keywords")&"%' order by id desc"
end if

response.Write("<table width=100% border=1 bordercolor=#cccccc bordercolordark=#FFFFFF cellspacing=0 cellpadding=4>")
response.write"<tr class=tr_bg><td width='1%' nowrap>"
lan_pub(80)'序号
response.write"</td><td width='70%'>"
lan_pub(81)'主题
response.write"</td><td width='15%' nowrap>"
lan_pub(82)'加入时间
response.write"</td><td width='5%' nowrap>"
lan_pub(74)'浏览
response.Write"</td><td width='5%' nowrap>"
lan_pub(72)'回复
response.Write"</td></tr>"
set rs=server.createobject("adodb.recordset") 
sql="select * from FAQ "&where
rs.open sql,conn,1,1 
if rs.recordcount=0 then
	response.Write"<tr><td colspan=5 align=center><font color=red>"
	lan_pub(83)'没有相关信息
	response.write"</font></td></tr>"
end if
for i=1 to rs.recordcount
pic_x="pic/x/+.gif"


	'取出classid对应中文名
	set rs1=server.CreateObject("adodb.recordset")
	sql="select * from FAQ_class where classid="&rs("classid")
	rs1.open sql,conn,1,1
	if rs1.recordcount>0 then
		className=rs1("className")
	end if
	rs1.close
	set rs1=nothing
	'取出classid对应中文名
	title=rs("title")
	if title="" then title="No title"
	
	response.Write("<tr><td>"&i&".</td><td><a href=help_look.asp?id="&rs("id")&" target=_blank>"&title&"</a></td><td nowrap>"&rs("addTime")&"</td><td>"&rs("browser_count")&"</td><td>"&rs("re_count")&"</td></tr>")

rs.movenext
next
rs.close
set rs=nothing
response.Write("</table>")
%> 


