<!-- #include virtual="/NR/System/WBC/Internals/Main/WBCApp.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/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/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/
'			Posting/PostingPropertiesShow.asp
' Version:	Microsoft Content Management Server
' Author:	Microsoft Corporation.
' Purpose:	Responsible for Displaying Posting 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 Posting
Dim	g_pThisPosting
Set g_pThisPosting = AutoSession.ThisPosting

' Initialize variables for later use
Dim g_bCanSetSharedProperties
Dim g_bCanSetLocalProperties


g_bCanSetSharedProperties = g_pThisPosting.CanSetSharedProperties
g_bCanSetLocalProperties = g_pThisPosting.CanSetLocalProperties

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

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

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

%>

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

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<%= Server.HTMLEncode(g_strCharSet) %>">
	<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">
	<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_bCanSetSharedProperties) %>, <%= Bool2LCaseStr(g_bCanSetLocalProperties) %>); 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_bCanSetSharedProperties Or g_bCanSetLocalProperties) 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_writePostingGeneralPropsHTML(g_pThisPosting,g_bCanSetSharedProperties, g_bCanSetLocalProperties) %>

		<!-- Render the hidden field for submit the properties -->
		<% Call WBC_writeHiddenFieldInSubmitForm(g_pThisPosting, g_bCanSetSharedProperties, g_bCanSetLocalProperties) 

		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
		Call pTabControl.AddTab(pRendererStandardTab)

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

		' Add the Custom tab
		Call pTabControl.AddTab(pRendererCustomTab)
	%>
	</form>
		<!-- Render the Standard and Custom Tab and its content -->
	<%
		' Display Tabs
		Call pTabControl.DisplayTabControl
	%>
	
</body>
</html>