?? show_zx.asp
字號:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>圖書館管理系統(tǒng)</title>
<link href="css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {font-size: 16px}
-->
</style>
</head>
<body>
<!--#include file="pass2.asp"-->
<!--#include file="conn.asp"-->
<form name="form1" method="post" action="search.asp">
<center>
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="150"><!--#include file="top.asp"--></td>
</tr>
<tr>
<td align="center" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="tb">
<tr>
<td height="300" align="center" valign="top"><br />
<a href="zx.asp" target="_self"><font color="#FF0000"><u>返回</u></font></a><br />
<%
if request("page")="" then
ThisPage=1
else
ThisPage=request("page")
end if
set rs=server.createobject("adodb.recordset")
sql = "select * from [zixun] where user_id="&session("id")&" order by id desc"
rs.open sql,conn,1,1
if rs.eof then
response.write "<br />您還沒有相關(guān)咨詢信息!"
response.end
end if
rs.Pagesize=3
Pagesize=rs.Pagesize
Allrecord=rs.Recordcount
Allpage=rs.Pagecount
if ThisPage<1 then
ThisPage=1
end if
On Error Resume Next
rs.move (ThisPage-1)*Pagesize
k=0
do while not rs.eof
%>
<table width="80%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FCE6C7">
<tr>
<td height="25" colspan="8" align="center" valign="middle" bgcolor="#FFFFFF"><strong>標(biāo)題:</strong><%=rs("title")%>[<%=year(rs("time"))&"年"&month(rs("time"))&"月"&day(rs("time"))&"日"%>]</td>
</tr>
<tr>
<td width="12%" height="25" align="center" valign="middle" bgcolor="#FFFFFF"><strong>內(nèi)容:</strong></td>
<td width="88%" height="25" colspan="7" align="center" valign="middle" bgcolor="#FFFFFF"><%=rs("content")%></td>
</tr>
<tr>
<td height="25" align="center" valign="middle" bgcolor="#FFFFFF"><strong>回復(fù):</strong></td>
<td height="25" colspan="7" align="center" valign="middle" bgcolor="#FFFFFF"><%=rs("z_hf")%></td>
</tr>
</table>
<%
rs.movenext
k=k+1
if k>=Pagesize then exit do
loop
rs.close
set rs=nothing
conn.close()
%>
<table width="80%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td height="20" colspan="8" align="center"> 共有 <font color="#CC5200"><%=Allrecord%></font> 條記錄 ,共 <font color="#CC5200"><%=Allpage%></font> 頁, 現(xiàn)在是第 <font color="#CC5200"><%=ThisPage%></font> 頁
<%
if ThisPage<2 then
response.write "<font color=""#808080"">首頁</font> "
response.write "<font color=""#808080"">上一頁</font> "
else
response.write "<a href=?page=1>首頁</a> "
response.write "<a href=?page="&ThisPage-1&">上一頁</a> "
end if
if Allpage-ThisPage<1 then
response.write "<font color=""#808080"">下一頁</font> "
response.write "<font color=""#808080"">尾頁</font> "
else
response.write "<a href=?page="&(ThisPage+1)&">下一頁</a> "
response.write "<a href=?page="&Allpage&">尾頁</a> "
end if
%></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="60"><!--#include file="bottom.asp"--></td>
</tr>
</table>
</center>
</form>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -