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

📄 hotspot_b.asp

📁 物业管理和办公自动化系统
💻 ASP
字号:
<%
'************************************************************************************************
' 文件名: HotSpot_b.asp
' 功能描述 : 新增修改大事记信息
'************************************************************************************************
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="../include/emp.inc" -->
<!-- #include file="../common/commonpage.inc" -->
<!-- #include file="HotSpot_b.inc" -->

<%
'call CheckSecurity()
'********************************************************************************************************
' 服务器端代码

Dim iHotSerial			: iHotSerial = GetParam("Serial")
Dim sAction				: sAction	 = ""

'********************************************************************************************************
' 查询参数iHotSerial,如果参数不存在,跳转到出错页面
'-------------------------------------------------------------------------------------------------------------------------------------------------
if IsEmpty(iHotSerial) then sAction = "new" else sAction = "modify"


'********************************************************************************************************
' 如果是提交,则调用函数AddCard()或UpdateCard()更新数据库
if UCase(Request.ServerVariables("REQUEST_METHOD") = "POST") then
	if sAction = "new" then
		AddCard()
	else
		UpdateCard()
	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:0}
textarea	{color:blue;border-width:0}
</style>

<script language="JavaScript">
function btnAdd_OnClick()
{
	var sContent = frmEdit.content.value;
	if (sContent.length > 256)
	{
		alert("对不起,内容的长度最多为256个字!");
	}
	else
		frmEdit.submit();
}

function btnUpdate_OnClick()
{
	var sContent = frmEdit.content.value;
	if (sContent.length > 256)
	{
		frmEdit.remark.focus();
		alert("对不起,内容的长度最多为256个字!");
	}
	else
		frmEdit.submit();
}

function btnDelete_OnClick()
{
	if ( window.confirm("系统提醒您注意,信息一旦删除,您将无法恢复。\n\n确认删除请按“确定”,取消删除请按“取消”。") == true )
		location.href="HotSpot_c.asp?serial=" + document.all.serial.value;
}

function btnCancel_OnClick()
{
	location.href="HotSpot_a.asp?serial=" + document.all.serial.value;
}

function btnReturn_OnClick()
{
	location.href="HotSpot_a.asp";
}
</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
'********************************************************************************************************
' 主体从这里开始
'-------------------------------------------------------------------------------------------------------------------------------------------------

'********************************************************************************************************
' 从这里开始显示通讯录详细信息
'-------------------------------------------------------------------------------------------------------------------------------------------------
Response.Write CardForm()

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

</body>
</html>

⌨️ 快捷键说明

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