?? news.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"> </td>
</tr>
</table>
<br>
<%rs.close
set rs=nothing%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -