<!-- #include file="include/con_help.asp" -->
<!-- #include file="include/jk_page_cute.asp" -->
<!-- #include file="include/jk_pagecute.asp" -->
<!-- #include file="include/jk_ubb.asp" -->
<%

dim nummer,nums,rssum,page,pageurl,viewpage,thepages
nummer=5
nums=nummer
page=1

select case action
case "forum"
  tit="论坛公告"
case else
  action="news"
  tit="网站更新"
end select
pageurl="?action="&action&"&"

call web_head(0,0,0,0,0)
'----------------------------左边 开始----------------------------
response.write "<table cellspacing=1 cellpadding=4 class=table>" & _
	       "<tr><td class=td0>&nbsp;"&img_skin("m_help")&"更新公告</td></tr>" & _
	       "<tr><td class=bg_td align=center>" & _
	       "  <table border=0 width=80>" & _
	       "  <tr><td height=20>"&img_skin("m_help2")&"<a href='?action=news'"
if action="news" then response.write " class=red"
response.write ">网站更新</a></td></tr>" & _
	       "  <tr><td height=20>"&img_skin("m_help2")&"<a href='?action=forum'"
if action="forum" then response.write " class=red"
response.write ">论坛公告</a></td></tr>" & _
	       "  </table>" & _
	       "</td></tr>" & _
	       "</table>"
call left_action()
'----------------------------左边 结束----------------------------
call web_center(0)
'----------------------------中间 开始----------------------------

sql="select count(id) from bbs_cast where sort='"&action&"'"
set rs=joekoe_cms.exec(sql,1)
rssum=rs(0)
rs.close
call format_pagecute()
sql="select top "&nummer*viewpage&" * from bbs_cast where sort='"&action&"' order by id desc"
call joekoe_cms.exec("",-1)
rs.open sql,conn,1,1
if int(viewpage)>1 then rs.move (viewpage-1)*nummer
if int(viewpage*nummer)>int(rssum) then nums=nummer-(viewpage*nummer-rssum)
for i=1 to nums
%>
<a name="<%response.write rs("id")%>"></a>
<table cellspacing=1 cellpadding=4 class=table>
<tr><td class=td0>&nbsp;<%response.write img_skin("m_")&joekoe_cms.code_html(rs("topic"),1,0)%></td></tr>
<tr><td class=bg_td align=center>
  <table border=0 width='98%' class=tf>
  <tr><td class=bw><font class=htd><%response.write code_jk(rs("word"))%></font></td></tr>
  </table>
</td></tr>
<tr><td class=bg_tds align=center><font class=gray><%response.write joekoe_cms.web_name%>&nbsp;&nbsp;发布人：<%response.write format_user_name(rs("username"),1,"")%>&nbsp;&nbsp;发布时间：<%response.write left(joekoe_cms.time_type(rs("tim"),2),18)%></font></td></tr>
</table>
<%
  rs.movenext
next
rs.close
%>
<table cellspacing=1 cellpadding=4 class=table>
<tr class=bg_tds height=30><td>&nbsp;共有<font class=red><%response.write rssum%></font>条<%response.write tit%>&nbsp;页次：<font class=red><%response.write viewpage&"</font>/<font class=red>"&thepages%></font>&nbsp;分页：<% response.write jk_pagecute(nummer,thepages,viewpage,pageurl,5,"#ff0000") %></td></tr>
</table>
<%
response.write ukong
'----------------------------中间 结束----------------------------
call web_end(0,0)
%>