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

📄 jy.asp

📁 自己做的毕业设计
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="pass2.asp"-->
<!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" />
</head>

<body>
<!--#include file="conn.asp"-->
<form name="form1" method="post" action="">
<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 align="center" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="180" align="left" valign="top"><!--#include file="left.asp"--></td>
          <td align="center" valign="top"><table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#FCE6C7">
            <tr>
              <td width="14%" height="25" align="center" valign="middle" bgcolor="#FFFFFF"><strong>图书名称</strong></td>
              <td width="9%" align="center" valign="middle" bgcolor="#FFFFFF"><strong>类别</strong></td>
              <td width="12%" height="25" align="center" valign="middle" bgcolor="#FFFFFF"><strong>借阅时间</strong></td>
              <td width="17%" align="center" valign="middle" bgcolor="#FFFFFF"><strong>到期时间</strong></td>
              <td width="8%" align="center" valign="middle" bgcolor="#FFFFFF"><strong>续借</strong></td>
              <td width="13%" align="center" valign="middle" bgcolor="#FFFFFF"><strong>续借时间</strong></td>
              <td width="18%" align="center" valign="middle" bgcolor="#FFFFFF"><strong>续借到期时间</strong></td>
              <td width="9%" height="25" align="center" valign="middle" bgcolor="#FFFFFF"><strong>状态</strong></td>
              </tr>
            <%
	set rs=server.createobject("adodb.recordset")
	sql = "select * from [jieyue] where user_id="&session("id")
	rs.open sql,conn,1,1
	if rs.eof then
		response.write "<tr><td height=20 colspan=8 align=center bgcolor=#FFFFFF>您还没有借阅信息!</td></tr>"
		response.end
	else
	if request("page")="" then
ThisPage=1		
else
ThisPage=request("page")
end if
	rs.Pagesize=10
	Pagesize=rs.Pagesize
	Allrecord=rs.Recordcount
	Allpage=rs.Pagecount
	if ThisPage<1 then                           


	rs.move (ThisPage-1)*Pagesize
	k=0

  do while not rs.eof
  book_id=rs("book_id")
  set rss=conn.execute("select * from [book] where id="&book_id)
  %>
           <tr>
              <td  height="23" align="center" bgcolor="#FFFFFF"><%=rss("name")%></td>
              <td align="center" bgcolor="#FFFFFF"><%st=rss("sort")
				response.Write conn.execute("select * from lb where id="&st)("name")%></td>
              <td  height="23" align="center" bgcolor="#FFFFFF"><%=rs("l_date")%></td>
              <td align="center" bgcolor="#FFFFFF"><%=rs("r_date")%></td>
              <td align="center" bgcolor="#FFFFFF"><%if rs("xj")="1" then 
			  response.Write "是"
			  else
			  response.Write "否"
			  end if%></td>
              <td align="center" bgcolor="#FFFFFF"><%=rs("xjrq")%></td>
              <td align="center" bgcolor="#FFFFFF"><%=rs("xjghrq")%></td>
              <td  height="23" align="center" bgcolor="#FFFFFF"><%=rs("zt")%></td>
              </tr>
            <%
   rs.movenext
   k=k+1
   if k>=Pagesize then exit do
   loop
   end if
   rs.close
   set rs=nothing
   conn.close()
   %>
            </table>
            <table width="98%" 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>
              <%end if%>
            </table></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 + -