<!--#include file=config.asp-->
<!--#include file=openconn.asp-->
<%set rs=createobject("adodb.recordset")%>
<%
dim id,title,webkey,webdoc,content,hits,nid
id=request("id")

if id="" then
rs.open "select top 1 * from help_list where istui=1 order by id desc",conn,3,3
if not rs.eof then
id=rs("id")
nid=rs("nid")
title=rs("title")
webkey=rs("webkey")
webdoc=rs("webdoc")
content=rs("content")
times=rs("time")
hits=rs("hits")
rs("hits")=hits+1
rs.update
else
response.write "未设置主页"
response.end
end if
rs.close


else

if not isnumeric(id) then response.end

rs.open "select * from help_list where id="&id,conn,3,3
if not rs.eof then
id=rs("id")
nid=rs("nid")
content=rs("content")
title=rs("title")
webkey=rs("webkey")
webdoc=rs("webdoc")
times=rs("time")
hits=rs("hits")
rs("hits")=hits+1
rs.update
else
response.write "数据不存在"
response.end
end if
rs.close 

end if



%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML><HEAD><TITLE><%=title%> - <%=web_title%> - <%=host%></TITLE>
<META charset=gbk>
<meta name="keywords" content="<%=webkey%>" />
<meta name="description" content="<%=webdoc%>" />
<LINK href="images/favicon.ico" type=image/x-icon rel="shortcut icon">
<LINK href="images/ju-v3-1.css" rel=stylesheet>
<META content="MSHTML 6.00.2900.6182" name=GENERATOR></HEAD>
<BODY class="">
<DIV id=page>
<!--#include file=head.asp-->
<!-- banner -->
        <div id="content" class="homepage">
    <!-- 左栏 -->
    <div class="ju-main" id="">
	
<div class="main-box  avil">
<div class="box-top">
</div>

<div class="box-body">
<div style="font-size:14px;line-height:23px;padding:20px;">
<strong><%=title%></strong>
<p>&nbsp;</p>
<%=content%>
<p>&nbsp;</p>
<p style="text-align:right;font-size:12px;color:#cccccc;">发布时间:<%=times%>&nbsp;阅读:(<%=hits%>)</p>
</div>
</div>
<div class="box-bottom"></div>
</div><!--/main-box-->

</div>
	
	
    <div class="ju-sider">

    <div class="sider-extend clearfix">

    <div class="sider-bar-bt">
<div class="bleft">
<%
set rs=createobject("adodb.recordset")
set rs1=createobject("adodb.recordset")
rs1.open "select * from help_class order by hits desc,id desc",conn,1,1
do while not rs1.eof
%>
<h2><%=rs1("title")%></h2>
<ul>
<%
rs.open "select nid,id,title from help_list where nid="&rs1("nid"),conn,1,1
do while not rs.eof
%>
<li><a href=about.asp?id=<%=rs("id")%>><%=rs("title")%></a></li>
<%
rs.movenext
loop
rs.close
%></ul><%
rs1.movenext
loop
rs1.close
set rs1=nothing
set rs=nothing
%>
</div>


</div>

<!--#include file=right_foot.asp-->
 	</div>
 	</div>
</div>
<!--#include file=footer.asp-->
</DIV></BODY></HTML>