<!--#include virtual="/NR/System/WBC/Internals/Main/WBCApp.inc"-->

<!--#include virtual="/NR/System/WBC/Customizable/WBCFuncPagesConfig/UIStringConstants/PageOperationUIStrings.inc" -->
<!--#include virtual="/NR/System/WBC/Customizable/WBCFuncPagesConfig/MLSDisplayConfig/SiteBrowseDlgsConfig.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_ChannelsBrowse.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 URLPerformMove
'   - Property CanMove
' ********************************************************************

Class CNCASPPageManager_ChannelName

	' -- The current Posting Node
	Public CurrentPageNode

	' -- The multi language charset
	Public Charset

	' -- Error code
	Public Error

	' -- URL that does the  "page Move"
	Public URLPerformMove

	' -- User has rights to do the page move
	Public CanMove

	' ---- [Private] Class standard initialization routine
	Private Sub Class_Initialize()
		Set CurrentPageNode = Nothing
		URLPerformMove =  IDS_FRAMEWORK_VIRTUAL_PATH & IDS_PAGEOPERATIONEDIT_PAGEMOVE_PATH & _
							 "/PageMoveAcceptor/PageMoveAcceptor.asp?" & URLEncodedQueryString()
		Error = ""
	End Sub

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

		' -- Setup CurrentObject
		Call SetupCurrentPageNode

		' -- Make sure user has the move authority
		If Error = "" Then
			Call SetupCanMove
		End If

		Call SetupCharset

	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 SetupCanMove
		If CurrentPageNode.CanMove Then
			CanMove = "true"
		Else
			CanMove = "false"
		End If
	End Sub

	' ---- [Private]
	Private Sub SetupCharset()
		Charset = GetCharacterSetForSiteBrowse( CurrentPageNode )
	End Sub

End Class

%>
