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

    <%
'===================================================================
'= ASP FILENAME	: /user/user_my_album_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 = "../inc/inc_ubb.asp" -->
<!-- #include file = "./user_inc.asp" -->
<!-- #include file = "../inc/logic/logic_album.asp" -->
<%
'========================================================
'==   Action参数设置
'========================================================
'== 页面名
Const CONST_PAGE_FILE	= "user/user_my_album_list.asp"

'== 页面标题/功能
Const CONST_PAGE_TITLE	= "我发表的相片"

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

'== 相对根目录路径 
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_album_list.html.asp" -->
<%
End Function

'===================================================================
'= Function    : ShowUserMyAlbumListCtl()
'= Time		   : Created At 2006-6-24
'= Input       : None
'= Description : 我发表的相片
'===================================================================
Function ShowUserMyAlbumListCtl()

	Dim strFileName						'== The file post
	Dim intCurPage,intTotalPut
	Dim intMaxPerPage					'== per page board
	Dim strSql

	strFileName = "user_my_album_list.asp"

	intMaxPerPage = GBL_intMaxPerPage
	TAG_intPerPage = GBL_intMaxPerPage
	
	strSql = " AND ALBUM_OWNER_ID=" & GBL_intUserId & GetOrder()
	If Not GetAlbumsLogic(strSql) Then Exit Function
	
	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
%>