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

📄 news.asp

📁 电子商务网络购物系统
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="config.asp"-->
<html>
<head>
<title><%=webname%>--新闻查看</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="include/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" BGCOLOR=<%=bgclr3%>>
<%dim newsid
newsid=request.QueryString("id")
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from news where newsid="&newsid&"",conn,1,3
rs("viewnum")=rs("viewnum")+1
rs.update
%> <table width="98%" 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="400" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor=<%=bgclr1%>> 
<tr> <td HEIGHT="23"> <div align="center"><TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD HEIGHT="1" WIDTH="100%" BGCOLOR=#FFFFFF><FONT COLOR="#FFFFFF"><IMG SRC="#" WIDTH="1" HEIGHT="1"></FONT></TD></TR><TR><TD WIDTH="100%" BGCOLOR=<%=bgclr1%> HEIGHT="18"><DIV ALIGN="CENTER"><FONT COLOR=#ffffff><%=trim(rs("newsname"))%></FONT><FONT COLOR="#FFFFFF"></FONT></DIV></TD></TR><TR><TD HEIGHT="1" WIDTH="100%" BGCOLOR=#FFFFFF><IMG SRC="#" WIDTH="1" HEIGHT="1"></TD></TR></TABLE></div></td></tr> 
<tr> <td height="97" valign="top" BGCOLOR=<%=bgclr2%>> <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 VALIGN="TOP"> <td colspan="2" HEIGHT="100"><%=trim(rs("newscontent"))%></td></tr> 
<tr BGCOLOR="#FFFFFF"> <td height="1" 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("viewnum")%></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><br> <br> <%rs.close
set rs=nothing%> 
</body>
</html>

⌨️ 快捷键说明

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