<%@ Language=VBScript Codepage=65001 %>
<%
Option Explicit
On Error Resume Next
Response.Charset="UTF-8"
%>
<!--#include virtual="NRConfig/Shared/Shared.inc"-->
<!--#include virtual="/NRConfig/Shared/UIConstants.inc"-->
<!--#include virtual="/NRConfig/WebServerConfig/CNCASPPageManager_WebServerConfig.inc"-->
<!--#include virtual="/NRConfig/Shared/CNCDialogModalControl.inc"-->
<!--#include virtual="/NRConfig/Shared/ASPUtils.inc"-->
<%
'*****************************************************************************
' Copyright (C) 2001 Microsoft Corporation. All rights reserved.
'
' File:   /SCA/WebServerConfigDlg.asp
' Author: Microsoft Corporation
'
' Purpose:
'    ASP file that generates a user interface to configure Web Server dialog.
'
' Query String Parameters:
'	ResServerIndex: MCMS Entry Point, Value > 0.
'*****************************************************************************
'--Creat an instance for init manager class to get query string
Dim g_pASPPageManager
Dim m_pUIASPPageManager
Set g_pASPPageManager = New CNCASPPageManager_WebServerConfig
Call g_pASPPageManager.InitManager()
' -- Create am instance of CNCASPPageUI_WebServerConfig
Set m_pUIASPPageManager = New CNCASPPageUI_WebServerConfig
Call m_pUIASPPageManager.InitClass(g_pASPPageManager)

'	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
%>
<HTML>
<HEAD>

<meta name="Author" content="Microsoft Corporation">
<meta name="Description" content="Configuring SCA Web Sever tab">

<script language="JavaScript" src="/NRConfig/Shared/Shared.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript" >window.name="WWebServer"</script>

<link rel="StyleSheet" href="/NRConfig/Shared/Shared.css" type="text/css" >
<link rel="StyleSheet" href="WebServerConfig.css" type="text/css" >
<TITLE><%=IDS_UI_PAGE_TITLE_WEBSERVERCONFIG& " - " & IDS_UI_TITLE_RESOLUTION_SERVER_APP%></TITLE>

</HEAD>
<BODY bgColor="#ffffff">

<div id="AppTitle" class="SCAStyleAppWebServerTitle">
	<table border="0" width="670" bgcolor="#330066">
		  <tr>
		   		<td width="25">
	     	      	<IMG alt="<%=IDS_UI_IMAGE_ALT_LOGO%>"
						src = "<%=IDS_IMAGE_LOGO%>"
				    	border=0 >
				</td>
				<td class="SCAStyleLargeText">
		    			<b><%=IDS_UI_TITLE_RESOLUTION_SERVER_APP & " - " & IDS_UI_PAGE_TITLE_WEBSERVERCONFIG%></b>
		    	</td>
		   </tr>
	</table>
</div>
<form name="SCA_frm_ConfigWebServer" method="post">
<INPUT type="hidden" name="SCA_frm_formSubmit" value="True">
<div id="WebUpdate" class='SCAStyleUpdateWebServer'>
	<table border='0'>
		<tr>
			<td class="SCAStyleTitle">
			<%=IDS_UI_STATUS_CONFIG_WEBSERVER%>
			<%
				If g_pASPPageManager.IsSupportedBrowser <> "OK" Then
					Call Response.Write ("&nbsp;<font size='2' color='#FF0000'><b><i>" & Server.HTMLEncode(g_pASPPageManager.IsSupportedBrowser) & "</i></b></font>")
				End If
			%>
			</td>
		</tr>
	</table>
		<div class = "SCAStyleUpdateWebServerHead">
			<% '--Get table head %>
			<table  border="0" cellPadding="1" cellSpacing="2" width="660"  >
				<tr>

					<td width="150" class="SCAStyleWebServerTitle"><%=IDS_UI_GRID_TITLE_WEBSERVER%></td>
					<td width="140" class="SCAStyleWebServerTitle"><%=IDS_UI_GRID_TITLE_IPADDRESS%></td>
					<td width="60" class="SCAStyleWebServerTitle"><%=IDS_UI_GRID_TITLE_TCPPORT %></td>
					<td width="170" class="SCAStyleWebServerTitle" ><%=IDS_UI_GRID_TITLE_HOSTNAME %></td>
					<td width="206" class="SCAStyleWebServerTitle" ><%=IDS_UI_GRID_TITLE_RESOLUTIONSERVER%></td>
				</tr>
			</table>
		</div>
		<div class="SCAStyleUpdateWebServerTable">
			<table  border="0" cellPadding="0" cellSpacing="1" width="660" >
					<%
						' -- Get Web Server Collection for UI
						Call m_pUIASPPageManager.GetWebServerData(True)

					%>

			</table>
			<INPUT type="hidden" name="SCA_frm_Selectbox_number" value="<%=m_pUIASPPageManager.SelectedBoxNumber%>">
		</div>
		<div class="SCAStyleWebServerButtonPosition">
			<table border="0" width="260" cellspacing="2" cellpadding="0">
				<tr >
					<td align="center" class="SCAStyleSetMouseIcon">
						<img  name="btn_configWebServerOK" border="0" src="<%=IDS_IMAGE_BTN_OK_OFF%>"  width="120" height="24" alt="<%=IDS_UI_IMAGE_ALT_POPUP_OK%>"
								onMouseOut="SCA_swapImgRestore()" onMouseOver="SCA_swapImage('btn_configWebServerOK','','<%=IDS_IMAGE_BTN_OK_ON%>',0)"
								onClick="SCA_submitWebServerForm('<%=IDS_ASPPAGE_WEBSERVER_DLG%>?ResServerIndex=<%= Server.URLEncode(g_pASPPageManager.ResServerIndex) %>','SCA_frm_ConfigWebServer','WebUpdate')" align="right">
					</td>
					<td align = "center" class="SCAStyleSetMouseIcon">
						<img  name="btn_configWebServerCancel" border="0" src="<%=IDS_IMAGE_BTN_CANCEL_OFF%>"  width="120" height="24" alt="<%=IDS_UI_IMAGE_ALT_POPUP_CLOSE%>"
								onMouseOut="SCA_swapImgRestore()" onMouseOver="SCA_swapImage('btn_configWebServerCancel','','<%=IDS_IMAGE_BTN_CANCEL_ON%>',1)"
								onClick="SCA_closeWindow()" align="right">
						</td>
					</tr>
			</table>
		</div>
</div>
</form>
<%
	' -- Display error message if any
	Call  m_pUIASPPageManager.DisplayErrorMsgbox
%>

</BODY>
</HTML>
