<!--#include virtual="NRConfig/WebServerConfig/CNCASPPageManager_WebServerConfig.inc"-->
<%
' ********************************************************************
' Copyright (C) 2001 Microsoft Corporation.  All rights reserved.
'
'	IMPORTANT.  Please read the legal.txt file, located in the
'	"<MCMS Install Directory>\Server\httpexec\WBC\Internals"
'	directory, governing the use of this internal file."
' ********************************************************************

' ********************************************************************
' File:		/SCAApp/ClientUI/CNCTabRenderer_SCAWebServerConfig.inc		
'
' Version: 	Microsoft Content Management Server
' Author:	Microsoft Corporation.
' Purpose:	Responsible for Creat a tab head and content of web server properties
'
' Public Methods and Properties Exposed:
'	- Sub RenderActiveHead()
'	- Sub RenderInactiveHead()
'	- Sub RenderContent()
'	
' ********************************************************************

'Define CNCTabRenderer web server class

Class CNCTabRenderer_SCAWebServer
	
	'Define public properties
	Public pVirtualWebSites 
	
	'Define private variable	
	Private m_pASPPageManager
	Private m_pUIASPPageManager
	
	' ---- [Private] Standard Class_Initialize
    Private Sub Class_Initialize()
    	'-- init all member with value

    	Set m_pASPPageManager = New CNCASPPageManager_WebServerConfig	
		Call m_pASPPageManager.InitManager 	
		 ' -- Create am instance of CNCASPPageUI_WebServerConfig
		Set m_pUIASPPageManager = New CNCASPPageUI_WebServerConfig
		Call m_pUIASPPageManager.InitClass(m_pASPPageManager)	
		
    End Sub
   
    '*************************************************
    'Purpose: 	Render an active head in tab control 
    '         	(Using HTML) 
    'Input:	None
    '
    'Output:    Render an active tab head of web server property
    '************************************************* 
   
	Public Sub RenderTabActiveHead()
		%>
		<img border="0"  src="<%=IDS_ACTIVE_TAB_HEAD3_IMAGE_PATH%>" alt="<%=IDS_TAB_HEAD3_IMAGE_ALT_ON%>" width="<% = IDS_TAB_HEAD_IMAGE_WIDTH %>" height="<% = IDS_TAB_HEAD_IMAGE_HEIGHT %>">
		<%
	End Sub
	
	 '*************************************************
	 'Purpose: 	Render an inactive head in tab control 
	 '         	(Using HTML) 
	 'Input:		None
	 '
	 'Output:    Render an inactive tab head of web server property
     '************************************************* 
    
	Public Sub RenderTabInactiveHead()
		%>
		<img  name="WebSerTabHead"  border="0" src="<%=IDS_INACTIVE_TAB_HEAD3_IMAGE_PATH%>"  width="<% = IDS_TAB_HEAD_IMAGE_WIDTH %>" alt="<%=IDS_TAB_HEAD3_IMAGE_ALT_OFF%>" height="<% = IDS_TAB_HEAD_IMAGE_HEIGHT %>" 
					onMouseOut="SCA_swapImgRestore()" onMouseOver="SCA_swapImage('WebSerTabHead','','<%=IDS_INACTIVE_TAB_HEAD3_IMAGE_ON%>',0)" >
		
		<%
	End Sub

	 '*************************************************
	 'Purpose: 	Render tab content in tab control 
	 '         	(Using HTML) 
	 'Input:		None
	 '
	 'Output:    Render tab content of web server property
     '************************************************* 
	Public Sub RenderTabContent()
		%>
		<div id = "Webserver" class = "SCAStyleTabContent">
				<table border="0" cellPadding="0" cellSpacing="0" width="700" >	
					<tr>
						<td width="20">
							&nbsp;
						</td>
						<td>
							&nbsp;
						</td>
		 			</tr>
					<tr>
						<td>
							&nbsp;
						</td>
						<td class="SCAStyleTitle">
							<%=IDS_UI_STATUS_OF_AVAILABLE_WEB_ENTRY_POINTS%>
		 				</td>
		 			</tr>
		 		</table>
			<div class = "SCAStyleWebServerHead">
				<% '--Get table head %>
				<table  border="0" cellPadding="1" cellSpacing="2" width="700"  >
					<tr>
						
						<td width="141" class="SCAStyleWebServerTitle"><%=IDS_UI_GRID_TITLE_WEBSERVER%></td>
						<td width="161" class="SCAStyleWebServerTitle"><%=IDS_UI_GRID_TITLE_IPADDRESS%></td>
						<td width="81" class="SCAStyleWebServerTitle"><%=IDS_UI_GRID_TITLE_TCPPORT %></td>
						<td width="181" class="SCAStyleWebServerTitle" ><%=IDS_UI_GRID_TITLE_HOSTNAME %></td>
						<td width="161" class="SCAStyleWebServerTitle" ><%=IDS_UI_GRID_TITLE_RESOLUTIONSERVER%></td>								
					</tr>
				</table>
			</div>
			<div class = "SCAStyleWebServerTable">
				<% '--Get table content %>
				<table align="center" border="0" cellPadding="1" cellSpacing="1" width="700"  >	
					<% 
						' -- Render Web Server Data for UI 
						Call m_pUIASPPageManager.GetWebServerData(False)
					%>		
				</table>	
			</div>
			<% '--Add Configure button %>
			<div class="SCAStyleConfigButton">
				<table>
					<tr>
						<td  >
							<a href="javascript:SCA_openPopupWindow('<%=IDS_CONFIGWEBSERVER_PAGE%>?ResServerIndex=<%= Server.URLEncode(g_pASPPageManager.ResServerIndex) %>&<%=IDS_TIME_STAMP%>=<%=CDbl(CDate(now))%>','720','333')"
							onMouseOut="SCA_swapImgRestore()" 
							onMouseOver="SCA_swapImage('btn_configWebServer','','<%=IDS_CONFIG_IMAGE_ON%>',10)" >
							 <img  name="btn_configWebServer" border="0" src="<%=IDS_CONFIG_IMAGE_OFF%>"  width="120" height="24"  align="right" alt="<%=IDS_UI_IMAGE_ALT_CONFIG_WEB%>"></a>					
													 
						</td>        
					</tr>
				</table>
			</div>
		</div>
		<%
		'-- Get error message if any
		If m_pUIASPPageManager.Error <> IDS_OK_NO_ERROR Then
				Call RenderMsgboxForTabControl(IDS_ERROR_MESSAGE_ID_WEB_TAB, _
										IDS_UI_WARNING_MESSAGE_TITLE_WEB_TAB, _
										m_pUIASPPageManager.Error, _
										m_pUIASPPageManager.ErrorDetail)
		End If
	End Sub
	
End Class
%>


