⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 show_zx.asp

📁 自己做的毕业设计
💻 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>图书馆管理系统</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 />您还没有相关咨询信息!"
		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>标题:</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>内容:</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>回复:</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"> 共有&nbsp;<font color="#CC5200"><%=Allrecord%></font>&nbsp;条记录 ,共 <font color="#CC5200"><%=Allpage%></font> 页, 现在是第 <font color="#CC5200"><%=ThisPage%></font> 页
                <%
	if ThisPage<2 then     
		response.write "<font color=""#808080"">首页</font>&nbsp;"
		response.write "<font color=""#808080"">上一页</font>&nbsp;"     
	else     
		response.write "<a href=?page=1>首页</a>&nbsp;"
		response.write "<a href=?page="&ThisPage-1&">上一页</a>&nbsp;"     
	end if
	if Allpage-ThisPage<1 then     
		response.write "<font color=""#808080"">下一页</font>&nbsp;"
		response.write "<font color=""#808080"">尾页</font>&nbsp;"  
	else     
	response.write "<a href=?page="&(ThisPage+1)&">下一页</a>&nbsp;"   
		response.write "<a href=?page="&Allpage&">尾页</a>&nbsp;"     
	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>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -