<!-- #include virtual="/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/RevisionBrowser/Page/RevisionCompare/CNCASPPageManager_PageCompare.inc" -->

<%
' ********************************************************************
' 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/WBC/Internals/WBCFuncPages/Cross-Browser/RevisionBrowser/
'			Page/PageRevisionCompareInfo.asp
' Version:	Microsoft Content Management Server
' Author:	Microsoft Corporation.
' Purpose:	Responsible for Displaying Page Revision History Report.
'
' Query String Parameters:
'	[API-Generated-Query-Params]: This set of parameters is generated by
'								  invoking the API method Posting.QueryString
'								  in the previous ASP page. It contains all the
'								  necessary information to be interpreted by the
'								  API to set the AutoSession.This object in this
'								  ASP page.

' ********************************************************************

' we can only run in unpublished mode
if AutoSession.IsModeUnpublished = false then
	Response.End
end if

' ---- Initialize the ASPPageManager

Dim g_pASPPageManager
Set g_pASPPageManager = New CNCASPPageManager_PageCompare
Call g_pASPPageManager.InitManager()

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<%= g_pASPPageManager.Charset %>">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="expires" content="-1">
	<meta name="Author" content="Microsoft Corporation.">
	<meta name="Description" content="Display Compare Page output or resouce">
	<meta name="robots" content="NOINDEX,NOFOLLOW">
	<title><%= IDS_UI_BROWSER_TITLE %></title>
	<script language="JavaScript" src="../Common/PageRevisionCommon.js" type="text/javascript"></script>
	<script language="JavaScript" src="PageRevisionCompare.js" type="text/javascript"></script>
	<% Call EmbedWBCHeadSection %>
</head>

<body <%= IDS_BODYSETTING %> onload="WBC_onLoadCompareInfo('<%= g_pASPPageManager.CompareResultURL %>'); return false;">

	<form name="WBC_formPageRevisionInfo" method="post" enctype="multipart/form-data" target="_self">

<% 	If g_pASPPageManager.TabviewStateControl.CurrentState <> IDS_DISPLAY_PROPS Then %>

		<!-- hidden field for compare content if the tab view is in Appearance or Source status -->
		<script language="javascript" src="<%= g_pASPPageManager.CompareFromURL %>"></script>
		<script language="javascript" src="<%= g_pASPPageManager.CompareToURL %>"></script>
		<script language="JavaScript" type="text/javascript">
		<!--
			document.write( "<input type='hidden' name='WBC_inhidContentCompareFrom' value='" + NRCOMPAREFROM + "'>" );
			document.write( "<input type='hidden' name='WBC_inhidContentCompareTo' value='" + NRCOMPARETO + "'>" );
		//-->
		</script>
<% 	End If %>

		<script language="JavaScript" type="text/javascript">
		<!--
			// preload the image
			WBC_preloadImages( "tabAppearance.gif", "tabAppearanceOff.gif" );
			WBC_preloadImages( "tabSource.gif", "tabSourceOff.gif" );
			WBC_preloadImages( "tabProps.gif", "tabPropsOff.gif");
		//-->
		</script>

		<input type="hidden" name="<%= IDS_DISPLAY_OPTIONS %>" value="<%= Server.HTMLEncode(g_pASPPageManager.TabviewStateControl.CurrentState) %>">

		<table width="100%" border="0" cellspacing="0" cellpadding="0">

			<!-- Show the Top Title -->
			<tr class="WBC_styclsBackground1">
				<td width="50"><img src="<%=IDS_PATH_IMAGE_LOGO %>" border=0></td>
				<td width=100% valign="middle" class="WBC_styclsHeaderText" colspan="2">
					<%= IDS_UI_LABEL_REVISION_HISTORY %>
				</td>
				<td><img src="<%= IDS_TRANSPARENT_GIF %>"
						width="<%= C_INT_MAIN_MARGIN %>" height="<%= C_INT_LEVEL1_HEIGHT %>" border="0"></td>
			</tr>

			<!-- Show the breadcrumb trail -->
			<tr class="WBC_styclsBackground2">
				<td><img src="<%= IDS_TRANSPARENT_GIF %>" width="<%= C_INT_MAIN_MARGIN %>" height="<%= C_INT_LEVEL2_HEIGHT %>" border="0"></td>
				<td width="100%" class="WBC_styclsSubheadText"  colspan="2">
					<a href="#" onClick="WBC_openPageRevisionDlg(); return false;"><%= IDS_UI_LABEL_VIEW_REVISION_HISTORY %></a>
					<span class="WBC_styclsSubheadText"> &nbsp;>&nbsp; </span> <b><%= IDS_UI_LABEL_COMPARE_REVISION %></b>
				</td>
				<td><img src="<%= IDS_TRANSPARENT_GIF %>" width="<%= C_INT_MAIN_MARGIN %>" height="<%= C_INT_LEVEL2_HEIGHT %>" border="0"></td>
			</tr>

			<!-- Show the Page Information -->
			<tr>
				<td colspan="3"><img src="<%= IDS_TRANSPARENT_GIF %>"
					width="15" height="<%= C_INT_MINOR_SPACING %>" border="0"></td>
			</tr>
			<tr>
				<td><img src="<%=IDS_TRANSPARENT_GIF%>"
					width="<%= C_INT_MAIN_MARGIN %>" height="<%= C_INT_LEVEL2_HEIGHT %>" border="0"></td>
				<td class="WBC_styclsSubheadText" colspan="2">
					<% Call WBC_writeCompareInfoHTML( g_pASPPageManager ) %>
				</td>
				<td><img src="<%= IDS_TRANSPARENT_GIF %>"
					width="<%= C_INT_MAIN_MARGIN %>" height="<%= C_INT_LEVEL2_HEIGHT %>" border="0"></td>
			</tr>
			<tr>
				<td colspan="4"><img src="<%= IDS_TRANSPARENT_GIF %>"
					width="15" height="<%= C_INT_XSMALL_SPACING %>" border="0"></td>
			</tr>

			<!-- Display info about "Set Option Button" -->
			<tr height="<%= C_INT_XSMALL_SPACING %>">
				<% Call g_pASPPageManager.InsertionStateControl.DisplayStateControl() %>
				<% Call g_pASPPageManager.DeletionStateControl.DisplayStateControl() %>
				<td align="right" colspan="3">
					<a href="#" onclick="WBC_openOptionDlg(); return false;"><img name="WBC_imgOption" src="<%= IDS_PATH_IMAGES_COMMON & IDS_IMG_BTN_SET_COLOR_GIF %>" border="0" alt=""></a>
				</td>
				<td><img src="<%=IDS_TRANSPARENT_GIF%>"
					width="<%= C_INT_MAIN_MARGIN %>" height="<%= C_INT_LEVEL2_HEIGHT %>" border="0"></td>
			</tr>

			<!-- Display info about Tab view -->
			<tr>
				<td valign="bottom" width="<%= C_INT_MAIN_MARGIN %>"><img class="WBC_styclsBackground1" src="<%=IDS_TRANSPARENT_GIF%>" width="<%= C_INT_MAIN_MARGIN %>" height="<%= C_INT_THICK_BORDER %>"></td>
				<td valign="bottom"><nobr><% Call g_pASPPageManager.TabViewStateControl.DisplayStateControl %></nobr></td>
				<td valign="bottom" width="100%"><img class="WBC_styclsBackground1" src="<%=IDS_TRANSPARENT_GIF%>" width="100%" height="<%= C_INT_THICK_BORDER %>"></td>
				<td valign="bottom" width="<%= C_INT_MAIN_MARGIN %>"><img class="WBC_styclsBackground1" src="<%=IDS_TRANSPARENT_GIF%>" width="<%= C_INT_MAIN_MARGIN %>" height="<%= C_INT_THICK_BORDER %>"></td>
			</tr>

			<!-- Display the tab bottom --->
			<tr>
				<td class="WBC_styclsBackground2" colspan="4">
					<img src="<%=IDS_TRANSPARENT_GIF%>" width="100%" height="500"></td>
			</tr>
		</table>
	</form>
</body>
</html>