⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 book_in1.asp

📁 物业管理和办公自动化系统
💻 ASP
字号:
<%
'###########################################################
'#   文件名:  book_in1.asp
'#   创建人:  yaoxiaohui
'#   日期:    2002-07-20
'#   修改历史: ****-**-**
'#   修改内容: *************
'#   功能描述: 图书登记前期处理
'#   版 本:
'#   Copyright(c) 2001-2002 上海阿尔卡特网络支援系统有限公司
'###########################################################
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/emp.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="book_in1.inc" -->
<%
'call CheckSecurity()
'----------------------------------------------------------
' 服务器端代码
dim sName		: sName = GetParam("name")
dim sIsbn	    : sIsbn = GetParam("isbn")
dim pStep	    : pStep = GetParam("step")
if IsEmpty(pStep) then pStep = 1

dim sTitle, sTip

if UCase(Request.ServerVariables("REQUEST_METHOD") = "POST") then
	if pStep = 2 then
		CheckISBN()
	elseif pStep = 3 then
		AddBook()
	end if
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">
<style type="text/css">
input		{color:blue;border-width:1}
</style>

<script language="javascript">
function CheckInput()
{
	// 检查用户姓名
	var sName = frmAddBook.name.value;
	if (sName == "")
	{
		alert("对不起,请输入书名!");
		frmAddBook.name.focus();
		return false;
	}

	// 检查用户名
	var sIsbn = frmAddBook.account_id.value;
	if (sIsbn == "")
	{
		alert("对不起,请输入书号!");
		frmAddBook.isbn.focus();
		return false;
	}
	else
	{
		frmAddBook.submit();
	}
}
</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
'----------------------------------------------------------
' 主体从这里开始
'----------------------------------------------------------
if pStep = 1 then
	Response.Write FirstForm()
elseif pStep = 2 then
	Response.Write SecondForm()
end if

Response.Write TableLink
'----------------------------------------------------------
' 主体到这里结束
'----------------------------------------------------------
Response.Write InnerTableTailer
Response.Write Footer
Response.Write OuterTableTailer
%>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -