<%
' ********************************************************************
' 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/PropertiesDialog/
'			Channel/CNCTabRenderer_StandardProperties.inc
'
' Version: 	Microsoft Content Management Server
' Author:	Microsoft Corporation.
' Purpose:	Responsible for Creat a tab head and content of Content Management Server objects
'
' Public Methods and Properties Exposed:
'	- Sub RenderTabActiveHead()
'	- Sub RenderTabInactiveHead()
'	- Sub RenderTabContent()
' ********************************************************************


Class CNCTabRenderer_StandardProperties

	'----[Public] Render an active head in tab control
	Public Sub RenderTabActiveHead()
		Call Response.Write("<img border=0 src='" & IDS_PATH_IMAGES_COMMON & IDS_IMG_TAB_STANDARD & "'>")
	End Sub

	'----[Public] Render an inactive head in tab control
	Public Sub RenderTabInactiveHead()
		Call Response.Write("<img border=0 src='" & IDS_PATH_IMAGES_COMMON & IDS_IMG_TAB_STANDARD_OFF & "'>")
	End Sub

	'----[Public] Render a content in tab control
	Public Sub RenderTabContent()
		Dim pThisObject
		Set pThisObject = AutoSession.This

		If (pThisObject.IsChannel) Then
			Dim bCanSetProperties
			bCanSetProperties = pThisObject.CanSetProperties

			' Render the content of the Standard tab for Channel
			Call WBC_writeChannelStandardTabHTML(pThisObject, bCanSetProperties)
		ElseIf (pThisObject.IsPosting) Then
			Dim bCanSetSharedProperties
			Dim bCanSetLocalProperties

			bCanSetSharedProperties = pThisObject.CanSetSharedProperties
			bCanSetLocalProperties =  pThisObject.CanSetLocalProperties

			' Render the content of the Standard tab for page
			Call WBC_writePostingStandardTabHTML(pThisObject, bCanSetSharedProperties, bCanSetLocalProperties)
		Else
			' Somthing wrong, do nothing
		End if
	End Sub
End Class
%>