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

📄 news.asp

📁 网上电子购物的动态程序,有丰富的后台管理 功能,多种付款方式选择.
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<html>
<head>
<title><%=webname%>--新闻查看</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/css.css" rel="stylesheet" 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">
<%dim newsid
newsid=request.QueryString("id")
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shop_news where newsid="&newsid,conn,1,3
rs("viewcount")=rs("viewcount")+1
rs.update
%>
<br>
<table width="748" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td background="images/dd_1.gif" height="10"></td>
  </tr>
  <tr>
    <td background="images/dd_2.gif">
      <table width="726" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr> 
          <td> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td rowspan="2"> 
                  <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="0" cellspacing="0">
                                <tr> 
                                  <td> 
                                    <div align="center"><font color=#ff0000><%=trim(rs("newsname"))%></font></div>
                                  </td>
                                </tr>
                                <tr> 
                                  <td height="97" valign="top"> 
                                    <table width="90%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
                                      <tr> 
                                        <td height="5"></td>
                                      </tr>
                                    </table>
                                    <table width="94%" border="0" align="center" cellpadding="1" cellspacing="1">
                                      <tr> 
                                        <td colspan="2"><%=trim(rs("newscontent"))%></td>
                                      </tr>
                                      <tr> 
                                        <td height="5" colspan="2"></td>
                                      </tr>
                                      <tr> 
                                        <td width="49%" valign="bottom"> 
                                          <div align="center"><a href='javascript:window.close()'>点击关闭窗口</a></div>
                                        </td>
                                        <td width="51%" style="PADDING-LEFT: 20px">发布人:<%=trim(rs("addname"))%><br>
                                          发布时间:<%=year(rs("adddate"))&"年"&month(rs("adddate"))&"月"&day(rs("adddate"))&"日"%><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>
      </table>
    </td>
  </tr>
  <tr>
    <td background="images/dd_3.gif" height="21">&nbsp;</td>
  </tr>
</table>
<br>
<%rs.close
set rs=nothing%>
</body>
</html>

⌨️ 快捷键说明

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