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

    <%
'===================================================================
'= ASP FILENAME	: /admin/admin_link_add_save.asp
'= CREATED TIME : 2006-4-30
'= LAST MODIFIED: 2006-4-30
'= 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_config.asp" -->
<!-- #include file = "../inc/inc_file_func.asp" -->
<%
'========================================================
'==   Action参数设置
'========================================================
'== 页面名
Const CONST_PAGE_FILE	= "admin/admin_link_add_save.asp"

'== 页面标题/功能
Const CONST_PAGE_TITLE	= "添加友情链接"

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

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

'== 页面构造
Call ActionBuild()

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

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

<%
'===================================================================
'= Function		: FormSaveAddLinkCtl()  
'= Time		    : Created At 2006-5-1
'= Input        : None
'= Output       : None
'= Description  : 添加友情链接
'===================================================================
Function FormSaveAddLinkCtl()

	'== 服务器端数据校验
	If Not ServerDataCheck(arrLinkAddDataChk) Then
		Exit Function
	End If
 
	If Left(Request.Form("iptLinkUrl"),7) <> "http://" Then
		Call GBL_objException.catchErr(E_USER_PUB,"链接地址必须包含http://")
		Exit Function
	End If

	If Left(Request.Form("iptLogoLink"),7) <> "http://" Then
		Call GBL_objException.catchErr(E_USER_PUB,"Logo地址必须包含http://")
		Exit Function
	End If

	'== 数据获取
	Call CnvFormData(strLinkAddFormName,GBL_objFormData)

	'== 逻辑处理
	If Not SaveLinkLogic("",GBL_objFormData) Then
		Exit Function
	End If

	'== 重新生成用户select html
	Dim strFilePath
	strFilePath = GBL_strHomeUrl & GBL_strHtmlFolder & "make_link.html"
	If Not MakeHtmlLinkLogic("",strFilePath) Then Exit Function 

	'== 成功处理
	Dim strHtmlCode,strSuccUrl
	strHtmlCode = "添加友情链接成功"
	strSuccUrl = "admin/admin_link_manage.asp"
	Call SuccExecute(strHtmlCode,strSuccUrl)

End Function
%>