<!--#include virtual="/NR/System/WBC/Internals/Main/WBCApp.inc"-->
<!--#include virtual="/NR/System/WBC/Customizable/WBCFuncPagesConfig/UIStringConstants/PageOperationUIStrings.inc" -->
<!--#include virtual="/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/PageOperation/EditMode/InternalProgrammingConstants.inc" -->
<!--#include virtual="/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/PageOperation/EditMode/EntryProgrammingConstants.inc" -->


<%
' ********************************************************************
' Copyright (C) 2001 Microsoft Corporation. All rights reserved.
'
'	IMPORTANT.  Please read the legal.txt file, located in the
'	"<CMS Install Directory>\Server\httpexec\WBC\Internals"
'	directory, governing the use of this internal file."
' ********************************************************************

' ********************************************************************
' File:		/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/PageOperation/
'			/EditMode/PageMove/CNCASPPageManager_ChannelLabel.inc
' Version: 	Microsoft Content Management Server
' Author:	Microsoft Corporation.
' Purpose:	Encapsulate the ASP logic associated with ChannelsBrowse.asp
'
' Implements the INCASPPageManager interface:
'	- Sub InitManager()
'
' Exposes the following properties:
'	- Property Charset
'	- Property CurrentPageNode
'	- Property Error
'	- Property CodePage
'	- Property ASPUtils
' ********************************************************************

Class CNCASPPageManager_ChannelLabel


	' -- The current Posting Node
	Public CurrentPageNode

	' -- Charset for the error page
	Public Charset

	' -- Error code
	Public Error

	' --  MLS support
	Public CodePage

	' --  MLS support
	Public ASPUtils

	' ---- [Private] Class standard initialization routine
	Private Sub Class_Initialize()
		Set CurrentPageNode = Nothing
		Error = ""
	End Sub

	' ---- [Public] InitManager will take care of all programming logic in the ASP page
	Public Sub InitManager()

		' -- Setup CurrentObject
		Call SetupCurrentPageNode

		Call SetupMLS()

	End Sub


	' ---- [Private] Set up the page object
	Private Sub SetupCurrentPageNode()
		Dim strPageGuid

		strPageGuid = Request.QueryString(IDS_QSTR_PAGEOPERATIONEDIT_SOURCEPAGE)
		If strPageGuid = "" Then
			Error = IDS_UI_ERR_PAGE_NOT_FOUND
		Else

			Set CurrentPageNode = AutoSession.Searches.GetByGUID(strPageGuid)
			If (CurrentPageNode is Nothing) Then
				Error = IDS_UI_ERR_PAGE_NOT_FOUND
			End If
		End If
	End Sub

		' ---- [Private]
	Private Sub SetupMLS()
		Charset = AutoSession.ThisPosting.Charset
		CodePage = AutoSession.ThisPosting.CodePage
		Set ASPUtils = GetInitializedASPUtils()
	End Sub


End Class

%>
