www.gusucode.com > 星云DJ舞曲 4.5a源码程序 > news_id.asp

    <!--#include file="connkkp.asp"--><%
id=request("id")
if id="" then response.redirect "/"
set rs=server.createobject("adodb.recordset")
sql="select * from Announce where id="&id
rs.open sql,conn,1,1
if rs.eof then
response.redirect "/"
else
Title=rs("Title")
Content=rs("Content")
Author=rs("Author")
DateAndTime=rs("DateAndTime")
end if
rs.close
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>最新公告</title>
<style type=text/css>
body { background:#f0f0f0; font-size: 12px; margin-top:0px;}
TD {
	FONT-SIZE: 12px
}
INPUT {
	BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 12px; BORDER-BOTTOM-WIDTH: 1px; BORDER-RIGHT-WIDTH: 1px
}
TEXTAREA {
	BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 12px; BORDER-BOTTOM-WIDTH: 1px; BORDER-RIGHT-WIDTH: 1px
}
SELECT {
	BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 12px; BORDER-BOTTOM-WIDTH: 1px; BORDER-RIGHT-WIDTH: 1px
}
SPAN {
	FONT-SIZE: 12px; POSITION: static
}
A:link {
	COLOR: #000000; TEXT-DECORATION: none
}
A:visited {
	COLOR: #000000; TEXT-DECORATION: none
}
a:hover  { color:#428EFF;text-decoration:underline; }
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table cellpadding=1 cellspacing=0 border=1 width=100% style="border-collapse: collapse" bordercolor="#0D5777">
<tr>
<td align="center" colspan="2" bgcolor=#336699 height="30"><font color=#ffffff><b><%=Title%>-最新公告</b></font></td> 
</tr>
<TR>
<TD height="220" width="15%">&nbsp;详细内容:</TD>
<TD width="80%" align="left">  <%=Content%></TD>
</TR>
<tr>
<td align="right" colspan="2" height="22"> 发 布 人:<%=Author%> </td> 
</tr>
<tr>
<td align="right" colspan="2" height="22"> 发布日期:<%=DateAndTime%> </td> 
</tr>
</TABLE>
</body>
</html>
<%
set rs=nothing
conn.close
set conn=nothing%>