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

<!-- #include virtual="/NR/System/WBC/Internals/ServerControls/TabControl/CNCTabControl.inc"-->
<!-- #include virtual="/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/PropertiesDialog/Common/CNCTabRenderer_StandardProperties.inc"-->
<!-- #include virtual="/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/PropertiesDialog/Common/CNCTabRenderer_CustomProperties.inc"-->

<!-- #include virtual="/NR/System/WBC/Customizable/WBCFuncPagesConfig/UIStringConstants/PropertiesDlgUIStrings.inc"-->
<!-- #include virtual="/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/PropertiesDialog/Common/PropertiesDlgConstants.inc"-->
<!-- #include virtual="/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/PropertiesDialog/Common/PropsCommonServer.inc"-->

<!--#include virtual="/NR/System/WBC/Internals/Integration/InternalHooks/WBCFuncPagesHooks/PropertiesDlgHooks.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/PropertiesDialog/
'			Channel/ChannelPropertiesShow.asp
' Version:	Microsoft Content Management Server
' Author:	Microsoft Corporation.
' Purpose:	Responsible for Displaying Channel Properties Dialog.
'
' Query String Parameters:
'	[API-Generated-Query-Params]: This set of parameters is generated by
'								  invoking the API method Posting.QueryString
'								  in the previous ASP page. It contains all the
'								  necessary information to be interpreted by the
'								  API to set the AutoSession.This object in this
'								  ASP page.
' ********************************************************************


'Obtaining the current Channel
Dim	g_pThisChannel
Set g_pThisChannel = AutoSession.ThisChannel

' Initialize variables for later use
Dim g_bCanSetProperties
g_bCanSetProperties = g_pThisChannel.CanSetProperties

' Construct the action Url for Submit form "WBC_formProperties"
Dim g_strActionUrl
g_strActionUrl = IDS_FRAMEWORK_VIRTUAL_PATH & "/Internals/WBCFuncPages/Cross-Browser/PropertiesDialog/Channel/ChannelPropertiesSave.asp?" & _
		g_pThisChannel.QueryStringModeUpdate

' get Charset of the page
Dim g_strCharSet
g_strCharSet = g_pThisChannel.Charset

' get CodePage of the page
Dim g_nCodePage
g_nCodePage = g_pThisChannel.CodePage

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="expires" content="-1">
	<meta name="Author" content="Microsoft Corporation.">
	<meta name="Description" content="Display Properties page for a Channel">
	<meta name="robots" content="NOINDEX,NOFOLLOW">
	<meta http-equiv="Content-Type" content="text/html; charset=<%= g_strCharSet %>">
	<title><%= IDS_UI_BROWSER_TITLE %></title>
	<script language="JavaScript" src="../Common/dhtmllib2.js" type="text/javascript"></script>
	<script language="JavaScript" src="../Common/PropsCommonClient.js" type="text/javascript"></script>
	<% Call EmbedWBCHeadSection %>
</head>


<body <%= IDS_BODYSETTING %> onload="setup(); WBC_onLoadProperties(<%= Bool2LCaseStr(g_bCanSetProperties) %>, <%= Bool2LCaseStr(g_bCanSetProperties) %>); return false;">

	<!-- Render the background for the properties page -->
	<div id="WBCPropsBackGround" style="position: absolute;
			top: <%= ID_PROPS_TAB_POS_TOP + ID_PROPS_TAB_HEAD_HEIGHT %>;
			left: <%= ID_PROPS_TAB_POS_LEFT %>">

		<!-- Render the background color for the tabs -->
		<% Call WBC_writeTabBackGroundHTML(ID_PROPS_TAB_CONTENT_WIDTH, ID_PROPS_TAB_CONTENT_HEIGHT) %>

		<!-- Render the "Save Changes" and "Cancel" button -->
		<table width="<%= ID_PROPS_TAB_CONTENT_WIDTH %>" height="45"
				border="0" cellpadding="0" cellspacing="0">
			<td align="right" valign="bottom">

<%			If g_bCanSetProperties Then %>
				<a href="#" onclick="WBC_onSaveProperties(); return false;">
					<img name="WBC_imgSaveChanges" src="<%= IDS_PATH_IMAGES_COMMON & IDS_IMG_BTN_SAVECHANGES %>" border="0" alt=""></a>
					&nbsp;
<% 			End If %>
				<a href="#" onclick="window.close(); return false;">
					<img name="WBC_imgCancel" src="<%= IDS_PATH_IMAGES_COMMON & IDS_IMG_BTN_CANCEL %>" border="0" alt=""></a>
			</td>
		</table>
	</div>

	<!-- Submitting Form -->
	<form name="WBC_formProperties" action="<%= g_strActionURL%>" method="post"
		  enctype="multipart/form-data" onsubmit="return false;"  target="_self">

		<!-- Render the Name, Display Name and Description of the Channel -->
		<% Call WBC_writeChannelGeneralPropsHTML(g_pThisChannel, g_bCanSetProperties) %>

		<!-- Render the hidden field for submit the properties -->
		<% Call WBC_writeHiddenFieldInSubmitForm(g_pThisChannel, g_bCanSetProperties, g_bCanSetProperties) %>
	</form>

	<!-- Render the Standard and Custom Tab and its content -->
	<%
		Dim pRendererStandardTab
		Dim pRendererCustomTab

		' Create the Tab Renderer
		Set pRendererStandardTab = New CNCTabRenderer_StandardProperties
		Set pRendererCustomTab = New CNCTabRenderer_CustomProperties

		' Create the Tab control
		Dim pTabControl
		Set pTabControl = New CNCTabControl

		' Initial tab tab contorl size
		Call pTabControl.InitTabControl(ID_PROPS_TAB_POS_TOP, _
								  ID_PROPS_TAB_POS_LEFT, _
								  ID_PROPS_TAB_HEAD_WIDTH, _
								  ID_PROPS_TAB_HEAD_HEIGHT, _
								  ID_PROPS_TAB_CONTENT_WIDTH, _
								  ID_PROPS_TAB_CONTENT_HEIGHT)

		' Add the Standard tab
		Call pTabControl.AddTab(pRendererStandardTab)

		' Call hook to allow Internal Integration code to add extra tab(s)
		Call OnInternalPropertiesDlgAddTab( pTabControl, g_pThisChannel )

		' Add the Custom tab
		Call pTabControl.AddTab(pRendererCustomTab)

		' Display Tabs
		Call pTabControl.DisplayTabControl
	%>
</body>
</html>