⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 news_contentdisplay.asp

📁 ASP程序实现的科技期刊系统
💻 ASP
字号:
<!--#include file="../Include/AdoConn.asp"-->
<!--#include file="../Include/online.asp"-->
<%
NewsTitle=request.querystring("NewsTitle")
SendDate=Cdate(request.querystring("SendDate"))
StrSQL="select * from XT_VD_UserMessage where 消息题名='"&NewsTitle&"'and 发送日期='"&SendDate&"'"

set rst=server.CreateObject ("adodb.recordset")
	rst.CursorType =3
	rst.CursorLocation =3
	rst.LockType =2
	rst.Open strsql,strconn
if not rst.EOF then	
%>
<html>
<head>
<title>新闻内容</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="/CssLib/Cssbutton.css">
</head>

<body bgcolor="#FFFFFF" text="#000000" >
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td width="6" background="../public/images/content_1.gif" height="20"></td>
    <td width="20" background="../public/images/content_2.gif" height="20">&nbsp;</td>
    <td width="586" background="../public/images/content_2.gif" height="20">&nbsp;</td>
    <td width="20" background="../public/images/content_2.gif" height="20">&nbsp;</td>
    <td width="6" background="../public/images/content_3.gif" height="20"></td>
  </tr>
  <tr> 
    <td width="6" background="../public/images/content_1.gif" height="20"></td>
    <td width="20" background="../public/images/content_2.gif" height="20">&nbsp;</td>
    <td width="586" height="60" align="center"> 
      <table style="font-size:9pt" width="450" border="1" cellspacing="0" cellpadding="0" align="center" bordercolor="#CCCCCC" bgcolor="#F5F5F5">
        <tr> 
          <td width="48" height="18" bgcolor="#E8E8E8"> 
            <div align="center">标 题</div>
          </td>
          <td colspan="3" height="18" bgcolor="#E8E8E8"><%=rst("消息题名")%>&nbsp;</td>
          <td height="18" bgcolor="#E8E8E8">附件列表</td>
        </tr>
        <tr> 
          <td width="48" height="18" bgcolor="#E8E8E8"> 
            <div align="center">发送者</div>
          </td>
          <td width="100" height="18" bgcolor="#E8E8E8"><%=rst("发送人姓名")%></td>
          <td width="64" height="18" bgcolor="#E8E8E8"> 
            <div align="center">发送日期</div>
          </td>
          <td width="97" height="18" bgcolor="#E8E8E8"><%=rst("发送日期")%></td>
          <td width="97" height="18" bgcolor="#E8E8E8"> 
            <%if rst("附件号")<>"0" then 
					fjFileName=split(rst("附件名"),"/")
					for i=1 to ubound(fjFileName)
						Response.Write "<a href=..\news\fj\" + server.URLEncode(fjFileName(i))+" class=blank target='_blank'><img src='images/fj.gif' width='16' height='16' border='0'></a>"
					next
		   else 
		   response.write "无"
		   end if
		   %>
            </td>
        </tr>
      </table>
      
      <input type="button" name="Submit" value="打印" class="button" onClick="window.print()">
      <input type="button" name="Submit2" value="关闭" class="button" onClick="window.close()">
    </td>
    <td width="20" background="../public/images/content_2.gif" height="20">&nbsp;</td>
    <td width="6" background="../public/images/content_3.gif" height="20"></td>
  </tr>
  <tr> 
    <td width="6" background="../public/images/content_1.gif" height="20"></td>
    <td width="20" background="../public/images/content_2.gif" height="20">&nbsp;</td>
    <td width="586" height="25" bgcolor="#FFFFFF"> 
      <div align="center"><font color="#0066CC" size="3"> <font color="#663399">*****</font><font color="#663399">*****</font><font color="#663399"> 
        消 息 内 容</font><font color="#0066CC" size="3"><font color="#663399">*****</font></font><font color="#663399">*****</font><font color="#663399">**</font></font></div>
    </td>
    <td width="20" background="../public/images/content_2.gif" height="20">&nbsp;</td>
    <td width="6" background="../public/images/content_3.gif" height="20"></td>
  </tr>
  <tr> 
    <td width="6" background="../public/images/content_1.gif" height="150"></td>
    <td width="20" background="../public/images/content_2.gif" height="150">&nbsp;</td>
    <td height="150"> 
      <table style="font-size:9pt; LINE-HEIGHT: 180%" width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr> 
          <td background="../public/images/content_4.gif" height="250" valign="top"> 
            <font color="#3366CC"><%=replace(rst("消息内容"),chr(10),"<br>")%></font> </td>
        </tr>
      </table>
    </td>
    <td width="20" background="../public/images/content_2.gif" height="150">&nbsp;</td>
    <td width="6" background="../public/images/content_3.gif" height="150"></td>
  </tr>
  <tr> 
    <td width="6" background="../public/images/content_1.gif" height="20"></td>
    <td width="20" background="../public/images/content_2.gif" height="20">&nbsp;</td>
    <td width="586" background="../public/images/content_2.gif" height="20">&nbsp;</td>
    <td width="20" background="../public/images/content_2.gif" height="20">&nbsp;</td>
    <td width="6" background="../public/images/content_3.gif" height="20"></td>
  </tr>
</table>
</body>
</html>
<%end if%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -