📄 diary.asp
字号:
<!--#include file="conn.asp"-->
<%
'=====================================================================================
'找错误个人主页(整合版)
'作者:找错误
'网地:www.fj19.net
'email:fjjc01@126.com
'=====================================================================================
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>++找错误++ ->> 我回来了++经典文章</title>
<style type="text/css">
<!--
body {
scrollbar-face-color: #C8DFFF;
scrollbar-highlight-color: #C8DFFF;
scrollbar-shadow-color: #0099FF;
scrollbar-3dlight-color: #0099FF;
scrollbar-arrow-color: #0099FF;
scrollbar-darkshadow-color:#C8DFFF
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url("img/bg.gif");
background-position:center;
margin-left: 0px;
}
body,td,th {
font-size: 12px;
color: #0066FF;
font-family: 宋体;
}
a {
font-family: 宋体;
font-size: 12px;
}
a:link {
text-decoration: none;
color: #0066FF;
}
a:visited {
text-decoration: none;
color: #0066FF;
}
a:hover {
text-decoration: none;
color: #00CCFF;
}
a:active {
text-decoration: none;
color: #00CCFF;
}
h1,h2,h3,h4,h5,h6 {
font-family: 宋体;
}
.style2 {color: #ff41b5}
-->
</style>
</head>
<body>
<table width="495" height="416" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="495" height="90" align="center" valign="top"><table width="98%" height="196" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="pci/diary.jpg"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="480" height="190" align="right">
<param name="_cx" value="10372">
<param name="_cy" value="2355">
<param name="FlashVars" value="-1">
<param name="Movie" value="fal/4.swf">
<param name="Src" value="fal/4.swf">
<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="0">
<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>
<embed src="fal/4.swf" width="480" height="190" align="right" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" menu="false" scale="exactfit"></embed>
</object></td>
</tr>
</table></td>
</tr>
<tr>
<td> <div align="center">::<a href="about.asp">我的介绍</a>::<a href="music.asp">我的音乐</a>::<a href="design.asp">作品展示</a>::<a href="diary.asp">经典文章</a>::<a href="book.asp">给我留言</a>::</div></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td height="151" valign="top">
<table width="463" border="0" height="98%" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign='top' height='50' background='img/bg2.gif'>
<%
dim pag,cc,id
id=request("id")
cc=28
pag=request("pag")
if pag="" then pag=0
call ConnectionDatabase
if id <>"" then
set Rs=GrateRs("select * from yuaner_xq where id="&id,1)
response.write("<a href='#' onclick='history.back(-1)'>上页</a> <a href=diary.asp>目录</a><br>")
if Rs.eof then
response.Write("没有该篇日记...")
else
response.Write("<div align=center>"&Rs("title")&"</div><br>")
response.Write(ReplStr(Rs("content")))
end if
else
response.Write("<div align=center>目 录</div><br>")
set Rs=GrateRs("select * from yuaner_xq",1)
if not Rs.eof then Rs.movelast
for i = 1 to pag*cc
Rs.moveprevious
if Rs.eof then exit for
next
do while not Rs.bof
response.Write(" <a href=diary.asp?id="&Rs("id")&">"&Rs("title")&"</a><br>")
i=i+1
if i=cc then exit do
Rs.moveprevious
loop
for j = 1 to cc-i
response.Write("<br>")
next
response.write("<div align=right>共"&int(Rs.recordcount/cc)+1&"页,第"&pag+1&"页 ")
response.write("<a href=diary.asp?pag=0>第一页</a> ")
if not pag=0 then
response.write("<a href=diary.asp?pag="&pag-1&">上一页</a> ")
else
response.write("上一页 ")
end if
if not Rs.bof then
response.write("<a href=diary.asp?pag="&pag+1&">下一页</a> ")
else
response.write("下一页 ")
end if
response.write("<a href=diary.asp?pag="&int(Rs.recordcount/cc)&">最后一页</a> </div>")
end if
call DBConnEnd
%>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="8"></td>
</tr>
<tr>
<td height="33" align="center"><img src="img/bott.gif" width="495" height="33"></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -