<!--#include virtual="NRConfig/SecurityConfig/CNCASPPageManager_SecurityConfig.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_SCASecurityConfig.inc		
'
' Version: 	Microsoft Content Management Server
' Author:	Microsoft Corporation.
' Purpose:	Responsible for Creat a tab head and content of user access properties
'
' Public Methods and Properties Exposed:
'	- Sub RenderActiveHead()
'	- Sub RenderInactiveHead()
'	- Sub RenderContent()
'	
' ********************************************************************
	
'Define CNCTabRenderer Security class
Class CNCTabRenderer_SCASecurity
	
   
    
    Private m_pASPPageManager
    Private m_pUIASPPageManager
    
    ' ---- [Private] Standard Class_Initialize
    Private Sub Class_Initialize()
    	 '-- init all member with value
    	 '-- Create an instance of CNCASPPageManager_SecurityConfig
	    	 
		  Set m_pASPPageManager = New CNCASPPageManager_SecurityConfig
		  m_pASPPageManager.ResServerIndex = g_pASPPageManager.ResServerIndex
		  Call m_pASPPageManager.InitManager 	
   
	 	  ' -- Create am instance of CNCASPPageUI_SecurityConfig
		 Set m_pUIASPPageManager = New CNCASPPageUI_SecurityConfig
		 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 user security property
    '************************************************* 
   
	Public Sub RenderTabActiveHead()
		%>
		<img border="0"  src="<%=IDS_ACTIVE_TAB_HEAD5_IMAGE_PATH%>" alt="<%=IDS_TAB_HEAD5_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 user security property
     '************************************************* 
    
	Public Sub RenderTabInactiveHead()
		%>
		<img  name="SecurityTabHead"  border="0" src="<%=IDS_INACTIVE_TAB_HEAD5_IMAGE_PATH%>"  width="<% = IDS_TAB_HEAD_IMAGE_WIDTH %>" alt="<%=IDS_TAB_HEAD5_IMAGE_ALT_OFF%>" height="<% = IDS_TAB_HEAD_IMAGE_HEIGHT %>" 
					onMouseOut="SCA_swapImgRestore()" onMouseOver="SCA_swapImage('SecurityTabHead','','<%=IDS_INACTIVE_TAB_HEAD5_IMAGE_ON%>',0)" >
		
		<%
	End Sub

	 '*************************************************
	 'Purpose: 	Render tab content in tab control 
	 '         	(Using HTML) 
	 'Input:		None
	 '
	 'Output:    Render tab content of user security property
     '************************************************* 
	Public Sub RenderTabContent()
		%>
		<div id = "Security" class = "SCAStyleTabContent">
			<div id="SystemAccount" class="SCAStyleSysAccount">
			<table border = "0" width = "640" cellspacing="3" cellpadding="3">
					
					<tr>
						<td width= "260" class ="SCAStyleTitle"><%=IDS_UI_RESSYSTEM_ACCOUNT%>
						</td>
						<td width="380" class="SCAStyleText">
								<% =m_pUIASPPageManager.SysAccount%>
						</td>
					<tr>
						<td class ="SCAStyleTitle"><b><%=IDS_UI_GUEST_VISIT%></b>
						</td>
						<td>
						</td>
					</tr>
				</table>			
			</div>
			<div id="Guest" class="SCAStyleGuest" valign="middle">
				<table border = "0" width = "600" cellspacing="3" cellpadding="3">
					<tr>
						<td width="250" align="right" class ="SCAStyleTitle"><b><%=IDS_UI_ALLOW_GUESTS_ON_SITE%></b>
						</td>
						<td class="SCAStyleText">						
							<% =m_pUIASPPageManager.bIsAllowGuestsOnSite %>
						</td>
					</tr>
						
					<tr>
						<td  align="right" class ="SCAStyleTitle"><b><%=IDS_UI_GUEST_LOGIN_ACCOUNT%></b>
						</td>
						<td class="SCAStyleText">
							<% = m_pUIASPPageManager.GuestAccount  %>							
						</td>
					</tr>
				</table>
			</div>
			<div class="SCAStyleWebSettingPos">
				<table border = "0" width = "600" cellspacing="3" cellpadding="3">
					<tr>
						<td class="SCAStyleTitle">
							<%=IDS_WEB_BROWSER_COOKIE_SETTINGS%>
						</td>
					</tr>
				</table>
			</div>
			<div class="SCAStyleWebSettingContentPos">
				<table border = "0" width = "600" cellspacing="3" cellpadding="3">
					<tr>
						<td  width="250" align="right" class ="SCAStyleTitle"><%=IDS_UI_COOKIE_LIFE_TIME_TAB%>
						</td>
						<td  class="SCAStyleText">
							<% =m_pUIASPPageManager.CookieLifeTime %>	
						</td>
					</tr>
					<tr>
						<td  align="right"class ="SCAStyleTitle">
							<b><%=IDS_UI_CHECK_MACHIEN_IP%></b>
						</td>
						<td class="SCAStyleText">
							  <% =m_pUIASPPageManager.IsCheckMachineIP%>
						</td>
					</tr>
				</table>
			</div>
			<% '--Add Configure button %>
			<div class="SCAStyleConfigButton">
				 <table>
					<tr>
						<td colspan="2" >
								<a href="javascript:SCA_openPopupWindow('<%=IDS_CONFIGSECURITY_PAGE%>?ResServerIndex=<%= Server.URLEncode(g_pASPPageManager.ResServerIndex) %>&<%=IDS_TIME_STAMP%>=<%=CDbl(CDate(now))%>','700','415')"
								onMouseOut="SCA_swapImgRestore()" 
								onMouseOver="SCA_swapImage('btn_configSecurity','','<%=IDS_CONFIG_IMAGE_ON%>',10)" >
								<img  name="btn_configSecurity" border="0" src="<%=IDS_CONFIG_IMAGE_OFF%>"  width="120" height="24"  align="right" alt="<%=IDS_UI_IMAGE_ALT_CONFIG_SECURITY%>">
								 </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_SECURITY_TAB, _
											IDS_UI_WARNING_MESSAGE_TITLE_SECURITY_TAB, _
											m_pUIASPPageManager.Error, _
											m_pUIASPPageManager.ErrorDetails)
				
		End If
		
	End Sub
	
End Class
%>


