<%@ Language=VBScript %>
<% Option Explicit %>
<!--#include virtual="/NRConfig/Shared/Shared.inc"-->
<!--#include virtual="/NRConfig/Shared/UIConstants.inc"-->
<!--#include virtual="/NRConfig/AccessConfig/CNCASPPageManager_AccessConfigDlg.inc"-->
<!--#include virtual="/NRConfig/AccessConfig/CNCASPPageUI_NTSettings.inc"-->
<!--#include virtual="/NRConfig/Shared/CNCDialogModalControl.inc"-->
<!--#include virtual="/NRConfig/Shared/ASPUtils.inc"-->
<%
'*****************************************************************************
' Copyright (C) 2001 Microsoft Corporation. All rights reserved.
'
' File:   /NRConfig/AccessConfig/AccessConfigDlg.asp
' Author: Microsoft Corporation
'
' Purpose:
'   ASP file that generates a user interface to let user configure properties.
'
' Query String Parameters:
'	ResServerIndex
'*****************************************************************************

' -- Create g_pASPPageManager to handle ASP Processing
Dim g_pASPPageManager

Set g_pASPPageManager = New CNCASPPageManager_AccessConfigDlg
Call g_pASPPageManager.InitManager()

'	Show SSL warning only if
'   IsSSLRunning = False and
'   LocalHost = False
If ((Not g_pASPPageManager.IsSSLRunning) And _
     (Not g_pASPPageManager.IsLocalHost))Then
    Call ServerSideRedirect(g_pASPPageManager.SecurityAlertURL)
End If


' -- This page takes a long time if need to bind to
'    NT Domains, ADS ...etc
Server.ScriptTimeout = 100000
%>

<html>
<head>

<meta name="Author" content="Microsoft Corporation">
<meta name="Description" content="Configuring SCA properties">

<script language="JavaScript" src="/NRConfig/Shared/Shared.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript" >
<!--
	window.name = "SCAAccessConfigDlg";
// -->
</script>
<script Language="JavaScript" src="SupportedObjectsManipulate.js"></script>
<script Language="JavaScript" src="AccessConfigDlg.js"></script>

<link rel="StyleSheet" type="text/css" href="/NRConfig/Shared/Shared.css">
<link rel="StyleSheet" type="text/css" href="AccessConfig.css">
<link rel="StyleSheet" type="text/css" href="DhtmlDroplist/DhtmlDroplist.css">

<title><%= IDS_UI_TITLE_RESOLUTION_SERVER_APP %> - <%= IDS_UI_ACCESS %></title>

</head>

<body onload="self.focus();SCA_onLoadAccessConfigDlg()" bgcolor="#ffffff">

	<div id="AppTitle" class="SCAstyclsAccessConfigTitleArea">
		<table border="0" width="670" bgcolor="#330066">
			  <tr>
					<td width="25">
						<IMG src="../Shared/Image/logo.gif" border="0">
					</td>
					<td class="SCAStyleLargeText">
							<b><%= IDS_UI_TITLE_RESOLUTION_SERVER_APP %> - <%= IDS_UI_ACCESS %></b>
					</td>
			   </tr>
		</table>
	</div>


	<form name="SCA_frmConfigAccess" method="post" target="_self">

		<div id="AccessUpdate" class='SCAstyclsAccessConfigContentArea'>

			<div class="SCAstyclsPosNTAuthTitle">
				<span class="SCAStyleTitle"><%= IDS_UI_NT_AUTH %></span>
			</div>

			<div class="SCAstyclsFrameNTDomains">
			<%
				Dim pASPPageUIForNTDomains

				Set pASPPageUIForNTDomains = New CNCASPPageUI_NTSettings
				Call pASPPageUIForNTDomains.DisplayNTSettings( g_pASPPageManager )
			%>
			</div>


			<div class="SCAstyclsPosOKButton">
				<a href=# onClick="SCA_onOKAccessConfigDlg();return false"><img name="btn_accessOK"
							src="/NRConfig/Shared/Image/btn-off-ok.gif" border="0"
							onMouseOut="SCA_swapImgRestore()"
							onMouseOver="SCA_swapImage('btn_accessOK','','/NRConfig/Shared/Image/btn-on-ok.gif',1)"></a>
			</div>
			<div class="SCAstyclsPosCancelButton">
				<a href=# onClick="window.close()"><img name="btn_accessCancel"
							src="/NRConfig/Shared/Image/btn-off-cancel.gif" border="0"
							onMouseOut="SCA_swapImgRestore()"
							onMouseOver="SCA_swapImage('btn_accessCancel','','/NRConfig/Shared/Image/btn-on-cancel.gif',1)"></a>&nbsp;&nbsp;
			</div>

		</div>

		<!-- hidden iframe to handle form submission for the "Add" buttons -->
		<iframe id="SCA_iframeHidden" name="SCA_iframeHidden" width=10 height=10 style="visibility:hidden"></iframe>

		<!-- HTML form elements to be submitted to server to update Acces configuration -->
		<input type="hidden" name="SCA_hidNTDomainsToAdd" value="">
		<input type="hidden" name="SCA_hidNTDomainsToRemove" value="">

		<!-- hidden elements to hold different action URL for the form -->
		<input type="hidden" name="SCA_hidOnOKClickedURL" value="<%= g_pASPPageManager.OnOKUrl %>?ResServerIndex=<%= Server.URLEncode(g_pASPPageManager.ResServerIndex) %>">

	</form>

	<%
		'-- Render Error Message box if any
		Dim SCAAccessMsgbox
		If g_pASPPageManager.Error <> "" Then

			Set SCAAccessMsgbox = InitMsgbox()
			'-- Set up position and size for message box
			Call SCAAccessMsgbox.InitDialogModal(IDS_MSGBOX_ERROR_POS_TOP_ACCESS, _
												IDS_MSGBOX_ERROR_POS_LEFT_ACCESS, _
												IDS_MSGBOX_ERROR_POS_WIDTH_ACCESS, _
												IDS_MSGBOX_ERROR_POS_HEIGHT_ACCESS)

			'Display message
			Call SCAAccessMsgbox.Msgbox(IDS_WARNING_MESSAGE_TITLE, _
				IDS_ICO_IMAGE_PATH & g_pASPPageManager.Error, _
				g_pASPPageManager.ErrorDetails )
			'-- clear object
			Set SCAAccessMsgbox = Nothing
		End If

		' -- restore ScriptTimeout setting back to IIS metabase default
		Server.ScriptTimeout = 0
	%>

</body>

</html>
