<%
' ********************************************************************
' 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/Access/CNCStateRenderer_SecurityAlert.inc
' Version: 	Microsoft Corporation 4.0
' Author:	Microsoft Corporation
' Purpose:	Responsible for showing check box
'
' Implements the INCStateRenderer Callback Interface of CNCStateControl
'	- Sub RenderState( strStateID, strRoundTripURL, bIsCurrent )
' ********************************************************************



Class CNCStateRenderer_SecurityAlert

	' -------------------------------------------------------------------------
	'
	'	This subroutine renders the "View As List" or "View As Thumbnail" links
	'	used in ASP pages listing resources in a Gallery.
	'
	'	@param strStateID [in] - a unique state identifier that represents a
	'				state that the CNCStateControl was told to keep track of.
	'
	'	@param strRoundTripURL [in] - the URL which will lead to the state
	'				as specified by strStateID.
	'
	'	@param bIsCurrent [in] - whether the state specified by strStateID is
	'				the current state in the ASP page
	'
	' -------------------------------------------------------------------------
	Public Sub RenderState( strStateID, strRoundTripURL, bIsCurrent )


		' display the link that leads to the alternate state
		If (bIsCurrent) Then

			Select Case strStateID
				Case  IDS_STATE_SHOW_SSL_WARNING

					Response.Write("<tr valign=top><td>")
					Response.Write("<table bordercolor='#330066' bgcolor='#CCCCDD' align=center width='50%' border='1' cellspacing='0' cellpadding='2'>")
					Response.Write("<tr><td>")
					Response.Write("	<table>")
					Response.Write("<tr> <td colspan='2' align=left> <font size='3' face='Arial, Helvetica, sans-serif' color='#330066'><b>")
					Response.Write(IDS_UI_SECURITY_ALERT  & "</b> </font></td> </tr>")

					Response.Write("<tr> <td valign=top width='10%' align=center> ")
					Response.Write("<img src=" & IDS_ACCESS_PATH_IMAGES & IDS_IMG_ICON_ALERT_GIF & " border=0>")
					Response.Write("</td>")
					Response.Write("<td  width='90%'> <font size='2' face='Arial, Helvetica, sans-serif' color='#330066'>" & IDS_UI_NETWORK_NOT_SECURE_MESSAGE_PART1 & IDS_UI_NETWORK_NOT_SECURE_MESSAGE_PART2  & "<br><br>")
					Response.Write("<input type='checkbox' name=" & IDS_CHKBOX_SHOW_WARNING_IN_FUTURE &  " value= 'False' > ")
					Response.Write(IDS_UI_CHECK_BOX_MESSAGE)
					Response.Write("</font></td></tr>")

					Response.Write("	</table></td></tr>")
					Response.Write("</table></td></tr>")


					Response.Write("<tr><td>")
					Response.Write("<img src=" & IDS_ACCESS_INTERNAL_TRANSPARENT & " width='100%' height='15' border='0'>")
					Response.Write("</td></tr>")


				Case  IDS_STATE_SKIP_SSL_WARNING

			End Select

		End If

	End Sub

End Class

%>