www.gusucode.com > CC校友录贴吧 CCBar源码程序asp编程 > admin/admin_forum_add_save.asp

    <%
'===================================================================
'= ASP FILENAME	: /admin/admin_forum_add_save.asp
'= CREATED TIME : 2006-5-2
'= LAST MODIFIED: 2006-5-2
'= VERSION INFO : CCASP Framework Ver 2.0.1 ALL RIGHTS RESERVED BY www.cclinux.com
'= DESCRIPTION  : 贴吧板块添加
'= Change Log:
'===================================================================
%>

<!-- #include file = "../inc/admin/include_admin_action_execute.asp" -->
<!-- #include file = "./admin_inc.asp" -->
<!-- #include file = "../inc/logic/logic_forum.asp" -->
<!-- #include file = "../inc/logic/logic_config.asp" -->

<%
'========================================================
'==   Action参数设置
'========================================================
'== 页面名
Const CONST_PAGE_FILE	= "admin/admin_forum_add_save.asp"

'== 页面标题/功能
Const CONST_PAGE_TITLE	= "贴吧板块添加"

'== 功能函数名字空间
Const CONST_ACTION_FUNC	= "FormSaveAddForumCtl"

'== 相对根目录路径 
GBL_strHomeURL			= "../"

'== 页面构造
Call ActionBuild()

'== 请求校验与过滤
Call ActionExecFilterAdmin(CONST_PAGE_FILE,CONST_ACTION_FUNC)

'== 页面析构
Call ActionOver()
%>

<%
'===================================================================
'= Function		: FormSaveAddForumCtl()  
'= Time		    : Created At 2006-5-2
'= Input        : None
'= Output       : None
'= Description  : 贴吧板块添加
'===================================================================
Function FormSaveAddForumCtl()
	Dim intForumId,strSql

	'== 服务器端数据校验
	If Not ServerDataCheck(arrForumAddDataChk) Then
		Exit Function
	End If
 
 	'== 数据获取
	Call CnvFormData(strForumMdyFormName,GBL_objFormData)

	'== 逻辑处理		
	If Not CreateForumLogic(GBL_intAdminId,GBL_objFormData) Then
		Exit Function
	End If
	
	strSql = "AND FORUM_ADD_ADMIN_ID=" & GBL_intAdminId
	If Not GetMaxForumLogic(strSql, intForumId) Then
		Exit Function
	End If

	'== 重新load系统内存
	If Not LoadParaLogic() Then
		Exit Function
	End If

	'== 成功处理
	Dim strHtmlCode,strSuccUrl
	strHtmlCode = "贴吧板块添加成功"
	strSuccUrl = "admin/admin_forum_mdy_form.asp?intForumId=" & intForumId
	Call SuccExecute(strHtmlCode,strSuccUrl)
End Function
%>