<%@ Language=VBScript%>
<!--#include file="conn.asp"-->
<!--#include file="config.asp"-->
<%
request_BoardID=ChkRequest(Request.QueryString("ID"),1)	'防注入
if request_BoardID="" then
Response.Write "<script>alert('未指定参数');history.back()</script>"
response.end
else

if not IsNumeric(request_BoardID) then
 response.write "<script>alert('非法参数');history.back()</script>"
 response.end
else

set rs=server.CreateObject("ADODB.RecordSet")
rs.Source="select * from "& db_Board_Table &" where id="&request_BoardID&" order by ID"
rs.Open rs.Source,conn,1,1
if rs.EOF then
Response.Write "<script>alert('该公告不存在');history.back()</script>"
else
title=rs("title")
rs.close
set rs=nothing
end if

%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>公告详细内容_<%=title%></title>
<LINK href=news.css rel=stylesheet>
</head>

<body topmargin="0">
<!--#include file="top.asp"-->
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr valign="top">
    <td width="777">
      <div align="center">
        <table width="100%" height="234" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="3" bgcolor="#FFFFFF"><img src="IMAGES/kb.gif" width="9" height="3"></td>
          </tr>
          <tr>
            <td height="25" background="IMAGES/lmenu_bg.gif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font class=m_tittle>&nbsp;</font>栏目导航<b>&nbsp;&nbsp; 当前位置：<a class="daohang" href="./" >网站首页</a>&gt;&gt;<a class="daohang" href="./E_Board.asp" >全部公告</a>&gt;&gt;公告详细内容</b></td>
          </tr>
          <tr>
            <td height="25"><div align="center"> <font color=red><a class=daohang href="./" >
                <script language=javascript src=./zongg/ad.asp?i=13></script>
            </a> </font></div></td>
          </tr>
          <tr>
            <td height="25" background="IMAGES/lmenu_bg.gif" class="daohang">&nbsp;</td>
          </tr>
          <tr>
            <td height="156">
              <div align="center">
                <table width="95%" height="154" border="0" align="center" cellpadding="0" cellspacing="0" id="AutoNumber3" style="border-collapse: collapse">
                  <tr>
                    <td height="10" valign=top>&nbsp;</td>
                  </tr>
                  <tr>
                    <td height="52" valign=top><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3" height="45">
                        <tr>
                          <td width="100%" height="45">
                            <%
set rs2=server.CreateObject("ADODB.RecordSet")
rs2.Source="select * from "& db_Board_Table &" where id="&request_BoardID&" order by ID"
rs2.Open rs2.Source,conn,1,1
content=trim(rs2("content"))
%>
                            <table border="0" cellpadding="0" cellspacing="0" width="99%" style="border-collapse: collapse">
                              <tr>
                                <td width="50%" height="20" ><b>公告标题：</b><%=rs2("title")%></td>
                              </tr>
                              <tr>
                                <td width="50%" height="20" >发布人：<%=rs2("upload")%></td>
                                <td width="50%" height="20" align=right>发布时间：<%=rs2("dateandtime")%><br></td>
                              </tr>
                              <tr>
                                <td width="100%" height="20" colspan="2" >
                                  <hr width="100%" size="1">
                                  <%	
DisplayContent=Content
Response.Write "&nbsp;&nbsp;&nbsp;&nbsp;" & displaycontent
%>                                </td>
                              </tr>
                          </table></td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td height="16" valign=top>&nbsp;</td>
                  </tr>
                </table>
            </div></td>
          </tr>
        </table>
    </div></td>
  </tr>
</table>

<!--#include file="bottom.asp"-->
</body>
</html>
<%
rs2.close
set rs2=nothing
%>
<%
end if
end if 
%>
