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

📄 news.asp

📁 顶级影视站ASP源代码系统。很全面很强大。数据库用access
💻 ASP
字号:
<!--#include file="HMconnection.asp"-->
<!--#include file="webconfig.asp"-->
<!--#include file="ImageFile.asp"-->
<html>
<head>
<title><%=webname%>--新闻公告发布--
</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="http://127.0.0.1/newmovie/images/CNFNOT.ICO" rel="shortcut icon">
<LINK REL="stylesheet" HREF="style/style.css" TYPE="text/css">
<style>
td{font-size:9pt;line-height:120%;color:#353535} 
body{font-size:9pt;line-height:120%} 

a:link          { color: #000000; text-decoration: none }
a:visited       { color: #000000; text-decoration: none }
a:active        { color: #000000; text-decoration: none }
a:hover         { color: #336699; text-decoration: none; position: relative; right: 0px; top: 1px }
</style>
</head>
<body leftmargin="5" topmargin="20" marginwidth="0" marginheight="0" onLoad="javascript:window.focus();" >
<%dim newsid
newsid=request.QueryString("news_id")
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from news where news_id="&newsid,conn,1,3
if rs.eof then
    response.write "对不起,此信息不存在或者已被删除"
else
	rs("count")=rs("count")+1
	rs.update
	response.write year(rs("news_date"))&"年"&month(rs("news_date"))&"月"&day(rs("news_date"))&"日发布>>>&nbsp;"&trim(rs("news_title"))
%>
<table width="400" border="1" cellspacing="0" cellpadding="1" bordercolor="#0099FF" align="center">
  <tr> 
    <td> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="9" background="images/back_3.gif" rowspan="2"></td>
          <td class="12v"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="12v">
              <tr> 
                <td class="12v" > 
                  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="AutoNumber3" height="0" width="100%">
                    <tr> 
                      <td>
                        <table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#00CCFF">
                          <tr> 
                            <td> <div align="center"><font color=#ffffff><%=trim(rs("news_title"))%></font></div></td>
                          </tr>
                          <tr> 
                            <td height="97" valign="top" bgcolor="#E8F1FF"> <table width="90%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr> 
                                  <td height="5"></td>
                                </tr>
                              </table>
                              <table width="90%" border="0" align="center" cellpadding="1" cellspacing="1">
                                <tr>
								  <% dim Ffile
								  Ffile=FIfile(trim(rs("newspic")))
								  if trim(rs("npicname"))<>"" then
								    response.Write "<tr><td align=center valign=middle colspan='2'><img src="&Ffile&trim(rs("npicname"))&" title='新闻图片'><br><br></td></tr>"
								  else
								    response.Write "<tr><td align=center valign=middle colspan='2'><img src='newspic/defaut1.jpg' title='新闻图片'><br><br></td></tr>"
								  end if
								  %> 
                                  <td  colspan="2"><%=trim(rs("news_content"))%></td>
                                </tr>
                                <tr> 
                                  <td height="5" colspan="2"></td>
                                </tr>
                                <tr> 
                                  <td width="49%" valign="bottom">&nbsp; </td>
                                  <td width="51%" style="PADDING-LEFT: 20px">发布人:<%=trim(rs("newsauthor"))%><br>
                                    发布时间:<%=year(rs("news_date"))&"年"&month(rs("news_date"))&"月"&day(rs("news_date"))&"日"%><br>
                                    此新闻已被浏览 <font color=red><%=rs("count")%></font> 次</td>
                                </tr>
                              </table>
                              <table width="90%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr> 
                                  <td height="5"></td>
                                </tr>
                              </table></td>
                          </tr>
                          <tr>
                            <td valign="top" bgcolor="#00CCFF">
<div align="center"><a href='javascript:window.close()'><font color="#FFFFFF">点击关闭窗口</font></a></div></td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
          <td class="12v" background="images/back_3.gif" width="9" rowspan="2"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br>
<br>
<%
end if
rs.close
set rs=nothing%>
</body>
</html>

⌨️ 快捷键说明

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