📄 borrowed.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/config.asp"-->
<%
dim i
set rs=server.CreateObject("adodb.recordset")
%>
<html>
<head>
<style type="text/css">
<!--
body {
font-size:10pt;
}
td {font-size:9pt}
table{font-size:9pt}
.style4 {color: #E8A477}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<!--#include file="head.asp"-->
<table width="980" border="0" cellpadding="0" cellspacing="0" align="center">
<!--DWLayoutTable-->
<tr>
<td height="14" colspan="3" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="980" height="14"> </td>
</tr>
</table></td>
</tr>
<tr>
<td width="220" rowspan="2" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="32" height="44"><!--#include file="left.htm"--></td>
</tr>
</table></td>
<td width="27" height="42"> </td>
<td width="733" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="733" height="42">
<form name="borrow" method="post" id="borrow" action="">
<table width="100%">
<tr>
<td width="13%" bgcolor="#E8A477">学生姓名</td>
<td width="19%" bgcolor="#E8A477">图书名称</td>
<td width="14%" bgcolor="#E8A477">图书编号</td>
<td width="16%" bgcolor="#E8A477">作者</td>
<td width="15%" bgcolor="#E8A477" >是否归还</td>
<td width="11%" bgcolor="#E8A477" >借书日期</td>
<td width="12%" bgcolor="#E8A477" >归还日期</td>
</tr>
<%
rs.open "select * from borrow where stuid='"&session("id")&"' ",conn,1,1
if rs.eof and rs.bof then %>
对不起,<font color="red"><%= session("id") %></font>你暂时还没有借书!
<%
end if
i=0
do while not rs.eof
%>
<tr>
<td bgcolor="#E8E8E8">
<%= rs("sname") %>
</td>
<td bgcolor="#E8E8E8">
<%
if len(trim(rs("name")))>20 then
response.write left(trim(rs("name")),18)&"..."
else
response.write trim(rs("name"))
end if
%>
</td>
<td bgcolor="#E8E8E8"><%= rs("id") %></td>
<td bgcolor="#E8E8E8"><%= rs("author") %></td>
<td bgcolor="#E8E8E8">
<%
if (rs("ifreturn")=0) then
Response.Write "未归还"
else
Response.Write "已归还"
end if
%>
</td>
<td bgcolor="#E8E8E8"><%= rs("pdate") %></td>
<td bgcolor="#E8E8E8"><%= rs("rdate") %></td>
</tr>
<%
i=i+1
if i>=8 then exit do
if not rs.eof then rs.movenext
loop
rs.close
%>
</table>
</form>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="182"> </td>
<td> </td>
</tr>
</table>
<!--#include file="foot.htm"-->
<script language=javascript>
function test()
{
if(!confirm('确认删除吗?')) return false;
}
function mm()
{
var a = document.getElementsByTagName("input");
if(a[0].checked==true){
for (var i=0; i<a.length; i++)
if (a[i].type == "checkbox") a[i].checked = false;
}
else
{
for (var i=0; i<a.length; i++)
if (a[i].type == "checkbox") a[i].checked = true;
}
}
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -