<!--#include file="conn.asp"-->
<!--#include file="buy2buysys.asp"-->
<title><%=webname%>--最新新闻</title>
<style type="text/css">
<!--
body {
}
.style1 {
	color: #FF3300;
	font-weight: bold;
	font-size: 15px;
}
-->
</style><table width="80%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC">
  <tr>
    <td bgcolor="#FFFFFF"><table width="95%"  border="0" align="center" cellpadding="5" cellspacing="5">
      <tr>
        <td><%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
%> 
          <br>
          <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td HEIGHT="50" align="center"><table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="40" align="center" valign="top"><span class="style1"><%=trim(rs("newsname"))%></span></td>
    </tr>
</table>

      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" align="center" bgcolor="#f7f7f7">发布人：<%=trim(rs("addname"))%> 发布时间：<%=year(rs("adddate"))&"年"&month(rs("adddate"))&"月"&day(rs("adddate"))&"日"%> 已被浏览 <font color=red><%=rs("viewnum")%></font> 次
</td>
  </tr>
</table>
</td>
  </tr>
  <tr> 
    <td height="200" valign="top">　　<%=trim(rs("newscontent"))%> 
    </td>
  </tr>
</table>

<%rs.close
set rs=nothing
%> 
</td>
      </tr>
    </table></td>
  </tr>
</table>
