📄 bookinfo.asp
字号:
<%
'#############################################################################################
'#
'# 文件名 : bookinfo.asp
'# Copyright(c) 2001-2002 上海阿尔卡特网络支援系统有限公司
'#
'# 创建人 : BinZha
'# 日 期 : 2002-07-19
'#
'# 修改历史 : ****年**月**日 ****** 修改内容:**********************************************
'#
'# 功能描述 : 察看图书详细信息
'# 版 本 :
'#
'#############################################################################################
'----------------------------------------------------------
' 服务器端设置
'----------------------------------------------------------
option explicit
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
%>
<!-- #include file="../include/config.inc" -->
<!-- #include file="../include/common.inc" -->
<!-- #include file="../include/debug.inc" -->
<!-- #include file="../include/db.inc" -->
<!-- #include file="../include/date.inc" -->
<!-- #include file="../include/datahandle.inc" -->
<!-- #include file="../include/recordlist.inc" -->
<!-- #include file="../include/security.inc" -->
<!-- #include file="../common/commonpage.inc" -->
<!-- #include file="bookinfo.inc" -->
<%
'call CheckSecurity()
'********************************************************************************************************
' 服务器端代码
dim sSQL
Dim sFileName : sFileName = "forminfo.asp"
Dim iBookID : iBookID = GetParam("id")
Dim iEmpSerial : iEmpSerial = GetEmpSerial
Dim sEmpName : sEmpName = GetUserName
sSQL = "select * from T_Library where ID = " & iBookID
Dim sFormAction : sFormAction = GetParam("FormAction")
'********************************************************************************************************
' 如果是提交,则调用函数AddCard()或UpdateCard()更新数据库
if UCase(Request.ServerVariables("REQUEST_METHOD") = "POST") then
select case sFormAction
case "delete"
call DeleteBook()
case "borrowbook"
call BorrowBook()
case "returnbook"
call ReturnBook()
end select
end if
%>
<html>
<head>
<title>上海信息大楼 Shanghai Information Tower</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../common/common.css" type="text/css">
<!-- 日历 begin -->
<IFRAME style="display:none;position:absolute;width:148;height:194;z-index=100" ID="CalFrame" MarginHeight=0 MarginWidth=0 noresize frameborder=0 scrolling=no src="../common/cal/calendar.htm"></IFRAME>
<script language="javascript" src="../common/cal/calendar.js"></script>
<script for=document event="onclick()">
<!--
document.all.CalFrame.style.display="none";
//-->
</script>
<!-- 日历 end -->
<script language="javascript" src="bookinfo.js"></script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="../images/bg/bg0.jpg">
<br>
<%
Response.Write OuterTableHeader
Response.Write HeaderWithMenu
Response.Write InnerTableHeader
'********************************************************************************************************
' 主体从这里开始
'--------------------------------------------------------------------------------------------------------
select case sFormAction
case "borrow"
if UCase(Request.ServerVariables("REQUEST_METHOD") = "POST") then
Response.Write FormBorrow()
else
Response.Write BookDetail(sSQL)
end if
case else
Response.Write BookDetail(sSQL)
end select
Response.Write TableLink()
'--------------------------------------------------------------------------------------------------------
' 主体到这里结束
'********************************************************************************************************
Response.Write InnerTableTailer
Response.Write Footer
Response.Write OuterTableTailer
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -