www.gusucode.com > CC校友录贴吧 CCBar源码程序asp编程 > album/album_del.asp
<% ''=================================================================== '= ASP FILENAME : /album/album_del.asp '= CREATED TIME : 2006-5-6 '= LAST MODIFIED: 2006-5-6 '= VERSION INFO : CCASP Framework Ver 2.0.1 ALL RIGHTS RESERVED BY www.cclinux.com '= DESCRIPTION : 删除相片 '= Change Log: '===================================================================' %> <!-- #include file = "../inc/customer/include_customer_action_execute.asp" --> <!-- #include file = "./album_inc.asp" --> <!-- #include file = "../inc/logic/logic_album.asp" --> <!-- #include file = "../inc/inc_file_func.asp" --> <% '======================================================== '== Action参数设置 '======================================================== '== 页面名 Const CONST_PAGE_FILE = "album/album_del.asp" '== 页面标题/功能 Const CONST_PAGE_TITLE = "删除相片" '== 功能函数名字空间 Const CONST_ACTION_FUNC = "DelAlbumCtl" '== 相对根目录路径 GBL_strHomeURL = "../" '== 页面构造 Call ActionBuild() '== 请求校验与过滤 Call ActionFilter(CONST_PAGE_FILE,CONST_ACTION_FUNC) '== 页面析构 Call ActionOver() %> <% ''=================================================================== '= Function : DelAlbumCtl() '= Time : Created At 2006-5-5 '= Input : '= Description : 删除相片 '===================================================================' Function DelAlbumCtl() Dim intAlbumId,strSql '== 服务器端数据校验 If Not ServerDataCheck(arrDelAlbumDataChk) Then Exit Function '== 取得访问值 intAlbumId = FmtFormData(Request.QueryString("intAlbumId")) '== 逻辑处理 strSql = " AND ALBUM_ID=" & intAlbumId & " AND ALBUM_OWNER_ID=" & GBL_intUserId If Not RemoveAlbumsLogic(strSql) Then Exit Function '== 成功处理 Dim strHtmlCode,strSuccUrl strHtmlCode = "您删除相片成功" If Request.QueryString("redflag") = "myalbum" Then strSuccUrl = "user/user_my_album_list.asp" Else strSuccUrl = "album/album_list.asp" End If Call SuccExecute(strHtmlCode,strSuccUrl) End Function %>