📄 list.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="const.asp"-->
<!--#include file="code.asp"-->
<%
dim sql
dim rs
dim title
set rs=server.createobject("adodb.recordset")
sql="update article set hits=hits+1 where articleID="&request("id")
rs.open sql,conn,1,3
sql="select article.title from article where article.articleID="&request("id")
rs.open sql,conn,1,1
if not rs.eof then
title=rs("title")
end if
rs.close
%>
<html>
<head>
<meta HTTP-EQUIV="Content-Type" content="text/html; charset=gb2312">
<LINK href="style.css" rel=stylesheet>
<title><%=title%></title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body topmargin="0">
<table width="780" border="0" align="center" cellpadding="0" cellspacing="10">
<tr>
<td height="16" width="780"><TABLE width="100%" border=0 align="center" cellPadding=4 cellSpacing=0>
<TR>
<TD width="100%" bgcolor="#FFFFFF">
<div align="center"><img src="../love1.jpg" width="780" height="350"> </div></TD>
</TR>
<tr>
<td height="16" width="780"><TABLE width="100%" border=0 align="center" cellPadding=4 cellSpacing=0>
<TR>
<TD width="100%" bgcolor="#FFFFFF">
<p align="right">
<%
dim idid
idid=request("id")
if isnumeric(idid)=0 or idid="" then
reponse.write "禁止提交非法语句!"
reponse.end
end if
sql="select * from article where articleid="&idid
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "没有找到相关内容。"
response.end
end if
%>
『<a href="../index.asp">返回首页</a>』
『双击滚屏』
</TD>
</TR>
</table>
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td colspan="3" align="center">
<table>
<tr>
<td width="500" height="30" valign="top" style="COLOR: #ffffff; FILTER: shadow(color:#333333,direction=145); LETTER-SPACING: 3px; PADDING-BOTTOM: 15px; PADDING-TOP: 15px" align="center"> <%=rs("title")%><br>
</table>
</td>
</tr>
<tr>
<td colspan="3" align="center"><a href="../index.asp"><font size="1" color="#FFFFFF">张泰严
QQ:109837388
<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="ShockwaveFlash1" width="117" height="395" style="position: absolute; left: 872; top: 74">
<param name="_cx" value="5080">
<param name="_cy" value="10451">
<param name="FlashVars" value>
<param name="Movie" value="0">
<param name="Src" value="0">
<param name="WMode" value="Transparent">
<param name="Play" value="-1">
<param name="Loop" value="-1">
<param name="Quality" value="High">
<param name="SAlign" value>
<param name="Menu" value="-1">
<param name="Base" value>
<param name="AllowScriptAccess" value="always">
<param name="Scale" value="ExactFit">
<param name="DeviceFont" value="0">
<param name="EmbedMovie" value="0">
<param name="BGColor" value>
<param name="SWRemote" value>
<param name="MovieData" value>
<param name="SeamlessTabbing" value="1">
</object>
</font></a>
<div align="center">
<center>
<table width="650" border="0" cellpadding="7" cellspacing="1" bgcolor="#FFFFFF">
<td width="650" <%=rs("content")%><br> </td>
</table></center>
</div>
</td>
</tr>
<tr>
<td width="5%" height="92"> </td>
<td width="90%"><p><font color="#333333">添 加 者:
<%if not isnull(rs("writer")) then%>
<%=rs("writer")%>
<%else%>
不详
<%end if%>
<br>
文章来源:
<%if not isnull(rs("writefrom")) then%>
<%=rs("writefrom")%>
<%else%>
不详
<%end if%>
<br>
阅读次数: <%=rs("hits")%> <br>
发布日期: <%=rs("dateandtime")%>
</font>现在是:<script language=JavaScript>
today=new Date();
function initArray(){
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i] }
var d=new initArray(
"星期日",
"星期一",
"星期二",
"星期三",
"星期四",
"星期五",
"星期六");
document.write(
"<font color=##000000 style='font-size:9pt;font-family: 宋体'> ",
today.getYear(),"年",
today.getMonth()+1,"月",
today.getDate(),"日",
d[today.getDay()+1],
"</font>" );
</script>
</p>
</td>
<td width="5%"> </td>
</tr>
<tr>
<td colspan="3" align="right"><font color="#333333">【<a href=javascript:window.print()>打印这篇文章</a>】</font></td>
</tr>
</table>
</table><script language"javascript">
var currentpos,timer;
function initialize()
{
timer=setInterval("scrollwindow()",10);
}
function sc(){
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos != document.body.scrollTop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize
</script>
</body>
</html>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -