📄 sp25175_borrow.asp
字号:
<!--#include file="conn.asp"-->
<%
borrowid=Trim(Request("borrowid"))
if borrowid<>"" then
set rs2=server.createobject("adodb.recordset")
sql="select * from borrow where borrowid="&borrowid
rs2.open sql,db,1,3
rs2("back")=date
rs2.update
rs2.close
end if
set rs=server.createobject("adodb.recordset")
sql="SELECT borrow.borrowid, book.bookname, booktype.booktype, borrow.borrowdate, reader.readername, borrow.back, book.id FROM (book INNER JOIN booktype ON book.booktypeid = booktype.booktypeid) INNER JOIN (borrow INNER JOIN reader ON borrow.readerid = reader.readerid) ON book.bookbianhao = borrow.bookbianhao;"
rs.open sql,db,1,3
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>列表</title>
<link href="images/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="88%" border="1" align="center" cellspacing="0">
<tr align="center" valign="middle" bgcolor="#3366CC">
<td width="30%" height="25"><font color="#FFFFFF">书籍名称</font></td>
<td width="17%"><font color="#FFFFFF">分类</font></td>
<td width="24%"><font color="#FFFFFF">借书时间</font></td>
<td width="9%"><font color="#FFFFFF">借阅者</font></td>
<td width="20%"><font color="#FFFFFF">归还日期</font></td>
</tr>
<%do while not rs.eof%>
<tr align="center">
<td height="26"> <a href="sp25175_detail_modify.asp?id=<%=rs("id")%>"><%=rs("bookname")%></a></td>
<td height="26"> <%=rs("booktype")%></td>
<td height="26"> <%=rs("borrowdate")%></td>
<td height="26"><font color="#FF0000"> <%=rs("readername")%></font></td>
<td height="26"> <%if rs("back")<>"" then%><%=rs("back")%><%else%><a href="?borrowid=<%=rs("borrowid")%>">还书</a><%end if%></td>
</tr>
<%
rs.movenext
loop
%>
</table>
<p align="center"><!--#include file="bottom.asp"--></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -