<!-- #include file="include/con_forum.asp" -->
<!-- #include file="include/con_forum_main.asp" -->
<%
iframe=true
dim isonline
isonline=false
tit=tit_fir
tit_fir=""
call web_head(0,0,h_var3,0,0)
call forum_load(0,0,0,0)

'----------------------------中间 开始----------------------------

call forum_user_stat(5)
%>
<table width="777" border="0" align="center" cellpadding="0" cellspacing="0" style="BORDER: #d8d8d8 1px solid;">
  <tr>
    <td><table width="387" border="0" cellspacing="0" cellpadding="0" style="BORDER-right: #d8d8d8 1px solid;">
        <tr>
          <td  class=td1>&nbsp;<img border=0 src='/skin/skin_1/small/m_forum.gif' align=absmiddle>&nbsp;&nbsp;<font color=red>论坛最新贴</font></td>
        </tr>
        <tr>
          <td>
		  <table border=0 cellspacing=0 cellpadding=0 width='387'>
<%
function forum_new_list1(v_n) 
  dim n_id,n_topic,n_forum_id,n_forum_name,temp1 
  sql="SELECT Top "&v_n&" bbs_topic.id, bbs_topic.forum_id, bbs_forum.forum_name, bbs_topic.topic FROM bbs_topic INNER JOIN bbs_forum ON bbs_topic.forum_id = bbs_forum.forum_id ORDER BY bbs_topic.id DESC" 
  set rs=joekoe_cms.exec(sql,1) 
  do while not rs.eof 
   n_id=rs(0) 
   n_topic=rs(3) 
   n_forum_id=rs(1) 
   n_forum_name=rs(2) 
    temp1=temp1&vbcrlf&" <tr><td>· <a href='forum_view.asp?forum_id="&n_forum_id&"&view_id="&n_id&"'>"&joekoe_cms.code_html(n_topic,1,17)&"</a></td><td><a href='forum_list.asp?forum_id="&n_forum_id&"' class=blue>["&n_forum_name&"]</a></td></tr>" 
    rs.movenext 
  loop 
  rs.close 
  forum_new_list1=temp1 
end function
response.write forum_new_list1(10)
%>
</table></td>
        </tr>
      </table></td>
    <td><table width="388" border="0" cellspacing="0" cellpadding="0">
         <tr>
          <td  class=td1>&nbsp;<img border=0 src='/skin/skin_1/small/m_forum.gif' align=absmiddle>&nbsp;&nbsp;<font color=red>论坛热门帖</font></td>
        </tr>
		<tr><td>
		  <table border=0 cellspacing=0 cellpadding=0 width='388'>
<%
function forum_new_list(v_n) 
  dim n_id,n_topic,n_forum_id,n_forum_name,temp1 
  sql="SELECT Top "&v_n&" bbs_topic.id, bbs_topic.forum_id, bbs_forum.forum_name, bbs_topic.topic FROM bbs_topic INNER JOIN bbs_forum ON bbs_topic.forum_id = bbs_forum.forum_id ORDER BY counter desc, bbs_topic.id DESC" 
  set rs=joekoe_cms.exec(sql,1) 
  do while not rs.eof 
   n_id=rs(0) 
   n_topic=rs(3) 
   n_forum_id=rs(1) 
   n_forum_name=rs(2) 
    temp1=temp1&vbcrlf&" <tr><td>· <a href='forum_view.asp?forum_id="&n_forum_id&"&view_id="&n_id&"'>"&joekoe_cms.code_html(n_topic,1,17)&"</a></td><td><a href='forum_list.asp?forum_id="&n_forum_id&"' class=blue>["&n_forum_name&"]</a></td></tr>" 
    rs.movenext 
  loop 
  rs.close 
  forum_new_list=temp1 
end function
response.write forum_new_list(10)
%>
</table></td></tr>
      </table></td>
  </tr>
</table>
<table width="777" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="10"></td>
  </tr>
</table>
<%
call forum_main()
call forum_today_star()
call user_birthday()
call forum_links()
call forum_down()
'----------------------------中间 结束----------------------------
call forum_end()
call web_end(0,0)
%>