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

📄 ccard_e.asp

📁 物业管理和办公自动化系统
💻 ASP
字号:
<%
'************************************************************************************************
' 文件名: ccard_e.asp
' Copyright(c) 2001-2002 上海阿尔卡特网络支援系统有限公司
'
'  创建人 : 周秋舫
'  日 期 : 2002-05-30
' 修改历史 :
'   ****年**月**日 ****** 修改内容:******************************************************************
' 功能描述 : 新增修改通讯录信息
'  版 本 :
'************************************************************************************************
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="ccard_e.inc" -->

<%
call CheckSecurity()

'' 如果不是单位名录管理员,则无权进入本页
if Not IsCustomerAdmin then
	Response.Clear
	Response.Redirect("../common/error.asp?error=只有单位名录管理员才能进行单位名录管理&")
	Response.end
end if

'********************************************************************************************************
' 服务器端代码

Dim iCardSerial			: iCardSerial	= GetParam("serial")
Dim sAction				: sAction		= ""

'********************************************************************************************************
' 查询参数CardSerial,如果参数不存在,跳转到出错页面
'-------------------------------------------------------------------------------------------------------------------------------------------------
if IsEmpty(iCardSerial) 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 sRemark = frmEdit.remark.value;
	if (sRemark.length > 256)
	{
		alert("对不起,备注信息的长度最多为256个字!");
	}
	else
		frmEdit.submit();
}

function btnUpdate_OnClick()
{
	var sRemark = frmEdit.remark.value;
	if (sRemark.length > 256)
	{
		frmEdit.remark.focus();
		alert("对不起,备注信息的长度最多为256个字!");
	}
	else
		frmEdit.submit();
}

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

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

function btnReturn_OnClick()
{
	location.href="ccard_l.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 + -