<!--#include file="Inc/conn.asp"-->
<%
dim ID
dim sqlAnnounce
dim rsAnnounce
dim AnnounceNum
ID=Trim(request("ID"))
if ID<>"" then
	sqlAnnounce="select * from Announce where ID=" & Clng(ID) & " order by ID desc"
else
	sqlAnnounce="select * from Announce where IsSelected=True order by ID desc"
end if
Set rsAnnounce= Server.CreateObject("ADODB.Recordset")
rsAnnounce.open sqlAnnounce,conn,1,1
%>
<html>
<head>
<title>3鸟设社[色彩连视版]本站通告</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
a:active { text-decoration: none; color: #0000FF}
a:hover { text-decoration: none; color: #FF0000}
a:link { text-decoration: none; color: #0000FF}
a:visited { text-decoration: none; color: #990000}
BODY { text-decoration: none; font-size: 12px}
TABLE { text-decoration: none; font-size: 12px}
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<br>
<TABLE WIDTH=327 BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>
  <TR>
		<TD COLSPAN=3>
			<IMG SRC="images/nw_1.jpg" WIDTH=327 HEIGHT=62 ALT=""></TD>
	</TR>
	<TR>
		<TD ROWSPAN=2>
			<IMG SRC="images/nw_2.jpg" WIDTH=27 HEIGHT=238 ALT=""></TD>
		
    <TD width="275" height="211"> <div align="center">
        <%
if rsAnnounce.bof and rsAnnounce.eof then 
	response.write "<p>&nbsp;&nbsp;没有通告或找不到指定的通告</p>" 
else 
	AnnounceNum=rsAnnounce.recordcount
	dim i
	do while not rsAnnounce.eof
		response.Write "<p align='center'>" & rsAnnounce("title") & "</p><p align='left'>&nbsp;&nbsp;&nbsp;&nbsp;" & rsAnnounce("Content") & "</p><p align='right'>" & rsAnnounce("Author") & "&nbsp;&nbsp;<br>" & FormatDateTime(rsAnnounce("DateAndTime"),1) & "</p>"
		rsAnnounce.movenext
		i=i+1
		if i<AnnounceNum then response.write "<hr>"
	loop	
end if  
%>
      </div></TD>
		<TD ROWSPAN=2>
			<IMG SRC="images/nw_4.jpg" WIDTH=25 HEIGHT=238 ALT=""></TD>
	</TR>
	<TR>
		<TD>
			<IMG SRC="images/nw_5.jpg" WIDTH=275 HEIGHT=27 ALT=""></TD>
	</TR>
</TABLE>
</BODY>
</HTML>
<%
rsAnnounce.close
set rsAnnounce=nothing
call CloseConn()
%>