📄 viewnews.asp
字号:
<% Response.Buffer=True %>
<!--#include file="inc/dbconn.inc"-->
<% set rs=server.createobject("adodb.recordset")
sql1="update news set click=click+1 where id="&request("id")
rs.open sql1,conn,1,1
sql2="select * from news where id="&request("id")
rs.open sql2,conn,1,1 %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="inc/index.css" type="text/css">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>学习内容==><%=rs("title")%></title>
</head>
<body>
<div align="center">
<center>
<table border="1" cellpadding="0" cellspacing="0" width="369" height="35" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#FFFFFF">
<tr>
<td width="367" height="17" valign="bottom" background="images/t-bg1.gif">
<p align="center">=== <%=rs("title")%> === [点击<font color="#000091"><%=rs("click")%></font>次]
</td>
</tr>
<tr>
<td width="367" height="17" valign="bottom" background="images/t-bg1.gif">
<p align="center">=== <%=rs("kclb")%> === [点击<font color="#000091"><%=rs("idate")%></font>次]
</td>
</tr>
<tr>
<td width="367" height="17" valign="top" bgcolor="#F0F0F0" align="center">
<p align="left"> <%=rs("text")%></td>
</tr>
</table>
</center>
</div>
<p align="center">【<a href="javascript:window.close()">关闭窗口</a>】</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -