www.gusucode.com > CC校友录贴吧 CCBar源码程序asp编程 > user/user_my_friend_list.asp
<% '=================================================================== '= ASP FILENAME : /user/user_my_friend_list.asp '= CREATED TIME : 2006-6-24 '= LAST MODIFIED: 2006-6-24 '= 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_view.asp" --> <!-- #include file = "../main_func.asp" --> <!-- #include file = "./user_inc.asp" --> <!-- #include file = "../inc/logic/logic_collection.asp" --> <% '======================================================== '== Action参数设置 '======================================================== '== 页面名 Const CONST_PAGE_FILE = "user/user_my_friend_list.asp" '== 页面标题/功能 Const CONST_PAGE_TITLE = "我的好友" '== 功能函数名字空间 Const CONST_ACTION_FUNC = "ShowUserMyFriendListCtl" '== 相对根目录路径 GBL_strHomeURL = "../" '== 页面构造 Call ActionBuild() '== 在模板中引用的标签变量 Dim TAG_objRS '== 列表记录集 Dim TAG_strPageNav '== 翻页导航 Dim TAG_strOrderUrl '== 排序链接 '== 请求校验与过滤 Call ActionFilter(CONST_PAGE_FILE,CONST_ACTION_FUNC) '== 页面析构 Call ActionOver() %> <% '=================================================================== '= Function : LoadPageTpl() '= Time : Created At 2006-6-24 '= Description : 加载页面模块 '=================================================================== Function LoadPageTpl() %> <!-- #include file = "../template_c/page_user_my_friend_list.html.asp" --> <% End Function '=================================================================== '= Function : ShowUserMyFriendListCtl() '= Time : Created At 2006-6-24 '= Input : None '= Description : 我的好友 '=================================================================== Function ShowUserMyFriendListCtl() Dim strFileName Dim intMaxPerPage Dim intCurPage,intTotalPut Dim strSql intMaxPerPage = GBL_intMaxPerPage TAG_intPerPage = GBL_intMaxPerPage strFileName = "user_my_friend_list.asp" '== 取记录集 strSql = " AND COLLECTION_OWNER_ID=" & GBL_intUserId & GetOrder() If Not GetCollectionsLogic(CONST_COLLECTION_TYPE_USER,strSql) Then Exit Function End If If Not ResultExecute(GBL_objPubDB.intRSNum,"您的好友","ES_DB_NO") Then Set TAG_objRS = GBL_objPubDB.objPubRS intTotalPut = GBL_objPubDB.intRSNum intCurPage = GetCurPage(intMaxPerPage,intTotalPut) If intCurPage > 1 Then If (intCurPage - 1) * intMaxPerPage < intTotalPut Then GBL_objPubDB.objPubRS.Move (intCurPage - 1) * intMaxPerPage Dim BookMark BookMark = GBL_objPubDB.objPubRS.BookMark End If End If strFileName = GetOrderUrl(strFileName) TAG_strPageNav = ShowPageNav(intTotalPut,intMaxPerPage,intCurPage,strFileName) End If End Function %>