📄 book_back.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../../config.asp"-->
<!--#include file="../checklogin.asp"-->
<%
if ChkAdmin("oa_book")=False then
call message("您没有管理图书的权限","back")
call endexit()
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<SCRIPT language=JavaScript src="../../inc/meizzDate.js"></SCRIPT>
<link href="../img/css1.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style1 {
color: #FFFFFF;
font-weight: bold;
}
.style2 {color: #CC0000}
-->
</style>
</head>
<%
act=request.QueryString("act")
id=replace(trim(request("id")),"'","")
id1=request.Form("id1")
bid=replace(trim(request.Form("bid")),"'","")
back_time=replace(trim(request.Form("back_time")),"'","")
companyid=session("companyid")
uname1=trim(request.Form("uname1"))
if id="" then id=id1
sql="select a.*,b.bookname from oa_bookout as a inner join oa_book as b on a.bookid=b.id where a.id="&id
set rs=conn.execute(sql)
if not rs.eof then
bookname=rs("bookname")
uname=rs("uname")
outtime=rs("out_time")
backtime=rs("back_time")
bookid=rs("bookid")
end if
rs.close
set rs=nothing
upsql="update oa_book set bookflag='在库' where id="&bid
insql="insert into oa_bookback(bookid,uname,back_time,companyid) values("&bid&",'"&uname1&"','"&back_time&"',"&companyid&")"
if act="add" then
conn.execute(insql)
conn.execute(upsql)
call Message("登记成功","book_outlist.asp")
END IF
%>
<body>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#F2F2F2" class="tabel1">
<form name="myform" method="post" action="book_back.asp?act=add" onSubmit="return CheckForm();">
<tr align="center">
<td height="25" colspan="2" bgcolor="#CC0000"><span class="style1">图书返还登记</span></td>
</tr>
<tr bgcolor="#F9F9F9">
<td width="13%" height="25" align="center"> <strong><img src="../img/item_point.gif" width="4" height="7"> 图书返还登记</strong></td>
<td width="87%" height="25" align="left"> </td>
</tr>
<tr bgcolor="#F9F9F9">
<td height="25" align="center">图书</td>
<td height="25" align="left"><%=bookname%></td>
</tr>
<tr bgcolor="#F9F9F9">
<td height="25" align="center"> 借阅者</td>
<td height="25" align="left"><%=uname%></td>
</tr>
<tr bgcolor="#F9F9F9">
<td height="25" align="center"> 借书期</td>
<td height="25" align="left"><%=outtime%></td>
</tr>
<tr bgcolor="#F9F9F9">
<td height="25" align="center">应归还日期</td>
<td height="25" align="left"><%=backtime%></td>
</tr>
<tr bgcolor="#F9F9F9">
<td height="25" align="center"> 归还日期 </td>
<td height="25" align="left"><input name="back_time" type="text" class="tabel1" id="buytime3" value="<%=date()%>" onFocus="setday(this)">
</td>
</tr>
<tr bgcolor="#F9F9F9">
<td height="25" align="center"> </td>
<td height="25" align="left"><input name="Submit2" type="submit" class="bon" value="添加">
<input name="Submit3" type="reset" class="bon" value="重置">
<span class="style1"><font style="font-size:15px ">
<input name="Submit" type="button" class="bon" value="返回" onClick="window.history.go(-1)">
<input name="bid" type="hidden" id="bid" value="<%=bookid%>">
<input name="id1" type="hidden" id="id1" value="<%=id%>">
<font style="font-size:15px ">
<input name="uname1" type="hidden" id="uname1" value="<%=uname%>">
</font></font></span></td>
</tr></form>
</table>
<%
set conn=nothing
%>
</body>
</html>
<script language="javascript">
function CheckForm()
{
var objFrm=document.myform;
if(objFrm.back_time.value=="")
{
alert("请输入归还日期!");
objFrm.back_time.focus();
return false;
}
return true;
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -