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

📄 news.asp

📁 漂亮公司企业网站自助建站系统 .asp.rar
💻 ASP
字号:
<%if IsNumeric(request.QueryString("id"))=False then
response.write("<script>alert(""参数错误!"");location.href=""index.asp"";</script>")
response.end
end if
dim id
id=request.QueryString("id")
if not isinteger(id) then
response.write"<script>alert(""参数错误!"");location.href=""index.asp"";</script>"
end if%>
<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<html><head><title><%=webname%>--新闻查看</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="description" content="网趣购物系统,网趣购物系统完美版,网趣商城,网趣购物程序,网趣购物,商城源码,网上商店,网上购物系统,自助网店,域名注册,虚拟主机,恒伟网络">
<meta name="keywords" content="网趣购物系统,网趣购物系统完美版,网趣商城,网趣购物程序,网趣购物,商城源码,网上商店,网上购物系统,自助网店,域名注册,虚拟主机,恒伟网络">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/css.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<!--#include file="webtop.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width=772 align=center border=0>
  <TBODY>
    <TR>
      <td width="1" height="229" background="image/bgbg.gif"></td>
      <TD class=b vAlign=top align=left width=764><table width="770" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="178" height="206" valign="top"><img src="image/hydl.gif" width="178" height="34">
		  <!--#include file="info_user.asp"-->
                   <!--#include file="searc.asp"-->
		  <!--#include file="info_brand.asp"-->
		  <!--#include file="info_vote.asp" --></td>
          <td width="1" background="image/bgbg.gif"></td>
          <td width="571" valign="top"><table width="590" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><img src="image/news.gif" width="590" height="33"></td>
            </tr>
          </table>
            <br>  
            <table width="535" border="1" cellspacing="0" cellpadding="0" bordercolor="#EDECEC" align="center">
            <tr>
              <td width="580" valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
                <div align="center">
                  <%dim newsid
newsid=request.QueryString("id")
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from wq_news where newsid="&newsid,conn,1,3
rs("viewcount")=rs("viewcount")+1
rs.update
%>
                  <br>
                  <table width="438" height="161" border="0" align="center" cellpadding="0" cellspacing="0">
                    
                    <tr>
                      <td height="138" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td rowspan="2">
                            <table width="99%" 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="0" cellspacing="0">
                                          <tr>
                                            <td height="28" valign="top">
                                              <div align="center"><font color=#ff0000><b><%=trim(rs("newsname"))%></b></font></div></td>
                                          </tr>
                                          <tr>
                                            <td height="97" valign="top">
                                              <table width="94%" border="0" align="center" cellpadding="1" cellspacing="1">
                                                <tr>
                                                  <td colspan="2" style="table-layout:fixed;word-break:break-all"><%=trim(rs("newscontent"))%></td>
                                                </tr>
                                                <tr>
                                                  <td height="5" colspan="2"></td>
                                                </tr>
                                                <tr>
                                                  <td width="60%" valign="bottom">
                                                    <div align="center">发布人:<%=trim(rs("addname"))%><br>
                                发布时间:<%=year(rs("adddate"))&"年"&month(rs("adddate"))&"月"&day(rs("adddate"))&"日"%></div></td>
                                                  <td width="40%" style="PADDING-LEFT: 20px"><br>
                                                      <br>
                              此新闻已被浏览 <font color=red><%=rs("viewcount")%></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>
                                      </table></td>
                                    </tr>
                                </table></td>
                              </tr>
                          </table></td>
                        </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td height="21" align="center"><a href='javascript:window.close()'><font color="#FF6633"><strong>点击关闭窗口</strong></font></a></td>
                    </tr>
                  </table>
                  <%rs.close
set rs=nothing%>
              </div></td>
            </tr>
          </table></td>
        </tr>
      </table></TD>
      <td width="1" background="image/bgbg.gif"></td>
    </TR>
  </TBODY>
</TABLE>
<!--#include file="webfoot.asp"-->
</body>
</html>

⌨️ 快捷键说明

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