📄 editborrow.asp
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>欢迎光临本图书馆</title>
<Link href="Css.css" rel=stylesheet>
</head>
<!--#include file="Conn.asp"-->
<!--#include file="Function.asp"-->
<body topmargin="0" leftmargin="0">
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><img src="Images/title.jpg" width="283" height="51"></td>
</tr>
<% If Session("admin") <> "" Then %>
<tr>
<td height="25" ><table width="780" border="0" bgcolor="#EFEFEF" align="center" cellpadding="0" cellspacing="0" style="border-color:#000000;border-top-style: solid;border-top-width: 1">
<tr>
<td height="25" bgcolor="#EFEFEF"> <a href="Default.asp">首页 </a>|<a href="AdminBorrow.asp"> 借书管理 </a>|<a href="AdminPublish.asp"> 出版社管理 </a>|<a href="AdminBook.asp"> 图书管理 </a>|<a href="AdminUser.asp"> 用户管理 </a>|<a href="ModifyAdmin.asp"> 修改密码 </a>|<a href="Logout.asp"> 退出 </a>
</td>
</tr>
</table></td>
</tr>
<%
Dim id
id=Request("id")
Set Rs = Server.CreateObject("ADODB.Recordset")
Sql="Select * From borrowlist Where id="&id
Rs.Open Sql,conn,1,3
%>
<tr align="center">
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#006666">
<tr align="center" bgcolor="#FFFFFF">
<td height="30" colspan="4" bgcolor="#99AAA7"><a href="JavaScript:history.go(-1);">返回</a></td>
</tr>
<form name="form1" method="post" action="EditBorrow.asp?action=SaveEdit&id=<%=Rs("id")%>" ID="Form1">
<tr align="center" bgcolor="#FFFFFF">
<td width="30%" height="30"><B>图书编号</B></td>
<td width="30%" height="30"><B>借阅人</B></td>
<td width="40%" height="30"><B>借多长时间</B></td>
</tr>
<tr align="center" bgcolor="#DAE0DF">
<td width="30%" height="30" bgcolor="#FFFFFF"><%=Rs("ISBN")%></td>
<td width="30%" height="30" bgcolor="#FFFFFF"><%=Rs("name")%></td>
<td width="40%" height="30" bgcolor="#FFFFFF">
<input name="retime" type="text" size="23" value="<%=Rs("retime")%>" ID="Text1">
</td>
</tr>
<tr align="center" bgcolor="#DAE0DF">
<td width="30%" height="30" bgcolor="#FFFFFF" colspan='3'>
<input type="submit" name="Submit" value="确定" ID="Submit1">
<input type="reset" name="Reset" value="清除" ID="Submit2">
</td> </tr> </form>
</table>
</td>
</tr>
<%
If Request("action")="SaveEdit" Then
Call SaveEdit()
End If
%>
<%
Sub SaveEdit()
dim retime
retime = Request.Form("retime")
If retime = "" Then
Response.Write "<Script>alert('请输入借多长时间!')</Script>"
Else
Set Rs = Server.CreateObject("ADODB.Recordset")
Sql="Select * From borrowlist Where id="&id
Rs.Open Sql,conn,3,3
Rs("retime") = retime
Rs("manager") = Session("admin")
Rs.Update
id=Rs("id")
Rs.Close
Set Rs=nothing
Conn.close
Set Conn=nothing
Response.Redirect "AdminBorrow.asp"
End If
End Sub
%>
<% Else %>
<tr>
<td height="50" align="center"><font color="ff0000">对不起,请不要非法登录!</font></td>
</tr>
<%End If%>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -