<!--#include file="conn.asp"-->
<!--#include file="config.asp"-->
<title><%=webname%>--最新公告</title>
<%dim newsid
newsid=SafeRequest("id",1)
set rs=server.CreateObject("adodb.recordset")
if newsid="" then
rs.open "select top 1 newsid,newsname,newscontent,addname,adddate,viewnum from news order by adddate desc",conn,1,3
else
rs.open "select * from news where newsid="&newsid&"",conn,1,3
end if
rs("viewnum")=rs("viewnum")+1
rs.update
%> 
<!--#include file="include/css.asp"-->
<table align="center" width="400" border="0" cellpadding="0" cellspacing="0">
  <tr><td width="12"><img src="images/top1.gif" border="0"></td>
  <td background="images/top2.gif" width="98%"></td>
  <td width="65"><img src="images/top3.gif" border="0"></td></tr>
  </table>
<table width="400" border="0" align="center" cellpadding="0" cellspacing="0" class=table-zuoyou>
  <tr> 
    <td HEIGHT="30" align="center" background="images/titlebg.gif"><%=trim(rs("newsname"))%></td>
  </tr>
  <tr> 
    <td height="200" valign="top" class=table-xia>　　<%=trim(rs("newscontent"))%> 
    </td>
  </tr>
  <tr> 
    <td align="center" class=table-xia height="25">发布人：<%=trim(rs("addname"))%> 发布时间：<%=year(rs("adddate"))&"年"&month(rs("adddate"))&"月"&day(rs("adddate"))&"日"%> 已被浏览 <font color=red><%=rs("viewnum")%></font> 次
      </td>
  </tr>
  <tr> 
    <td align="center" HEIGHT="20">
      <a href='javascript:window.close()'>点击关闭窗口</a></td>
  </tr>
</table>
<%rs.close
set rs=nothing
conn.close
set conn=nothing
%> 
<table align="center" width="400" border="0" cellpadding="0" cellspacing="0">
  <tr><td width="12"><img src="images/end1.gif" border="0"></td>
  <td background="images/end2.gif" width="98%"></td>
  <td width="65"><img src="images/end3.gif" border="0"></td></tr>
  </table>