?? news.asp
字號(hào):
<!--#include file="conn.asp"-->
<html>
<head>
<title>新聞詳細(xì)內(nèi)容</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/css.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="5" topmargin="5" 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
%>
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#6699ff">
<tr> <td width="100%" align=center height="18" background="images/bg1.gif"><div align="center"><font color=#ffffff><%=trim(rs("newsname"))%></font></div></td>
</tr>
<tr>
<td height="97" valign="top" bgcolor="#eeeeee"><table width="90%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="5"></td>
</tr>
</table>
<table width="95%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr height="20" valign=bottom>
<td width="50%">瀏覽量 <font color=red><%=rs("viewcount")%></font> 次</td>
<td>發(fā)布人:<%=trim(rs("addname"))%></td>
</tr>
<tr>
<td colspan="2"><font color=blue><%=trim(rs("newscontent"))%></font></td>
</tr>
<tr>
<td height="5" colspan="2"></td>
</tr>
<tr height="30">
<td valign="bottom"><div align="center"><a href='javascript:window.close()'>點(diǎn)擊關(guān)閉窗口</a></div></td>
<td>發(fā)布時(shí)間:<%=year(rs("adddate"))&"年"&month(rs("adddate"))&"月"&day(rs("adddate"))&"日"%><br>
</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>
<%rs.close
set rs=nothing%>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -