<!-- #include virtual="/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/RevisionBrowser/Page/RevisionHistory/CNCASPPageManager_PageRevisionHistory.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/RevisionHistory/PageRevisionDlg.asp
' Version:	Microsoft Content Management Server
' Author:	Microsoft Corporation.
' Purpose:	Responsible for Displaying Page Revision 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_PageRevision
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.CurrentPage.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 Page Revision History Report">
	<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="PageRevisionHistory.js" type="text/javascript"></script>
	<% Call EmbedWBCHeadSection %>
</head>

<body <%= IDS_BODYSETTING %> onload="WBC_onLoadRevisionHistory(); return false;">

	<form name="WBC_formPageRevisionHistory">
		<table height="90%" width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr valign=top >
				<td>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<!-- Set the margin width for the rest of the page -->
						<tr>
							<td rowspan="999"><img src="<%= IDS_TRANSPARENT_GIF %>"
										width="<%= C_INT_LEFT_MARGIN %>" height="1" border="0"></td>
							<td><img src="<%=IDS_TRANSPARENT_GIF%>"
										width="100%" height="1" border="0"></td>
							<td rowspan="999"><img src="<%= IDS_TRANSPARENT_GIF %>"
										width="<%= C_INT_MINOR_MARGIN %>" height="1" border="0"></td>
						</tr>
						<tr>
							<td><img src="<%= IDS_TRANSPARENT_GIF %>"
									width="15" height="<%= C_INT_XSMALL_SPACING %>" border="0"></td>
						</tr>

						<!-- Display info about subset being shown and the PagingConfigControl -->
						<tr>
							<td width="100%" align="right">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td class="WBC_styclsTextColor0" width=50% align=left>
											<%= IDS_UI_LABEL_ITEMS %> <b> <%= g_pASPPageManager.GridStartItem %> - <%= g_pASPPageManager.GridEndItem %>  </b><%= IDS_UI_LABEL_OF %> <b><%= g_pASPPageManager.RevisionPages.Count %></b>
										</td>
										<td class="WBC_styclsTextColor0" width=50% align=right>
											<%=IDS_UI_LABEL_ITEMS_PER_PAGE%>&nbsp;
											<% Call g_pASPPageManager.GridPagingConfigControl.DisplayPagingConfigControl() %>
										</td>
									</tr>
								</table>
							</td>
						</tr>

						<!-- Display the seperator bar -->
						<tr>
							<td><img src="<%= IDS_TRANSPARENT_GIF %>"
									width="15" height="<%= C_INT_XSMALL_SPACING %>" border="0"></td>
						</tr>
						<tr>
							<td class="WBC_styclsBackground1"><img src="<%= IDS_TRANSPARENT_GIF %>"
									width="15" height="<%= C_INT_SEPARATOR_HEIGHT %>"></td>
						</tr>
						<tr>
							<td><img src="<%= IDS_TRANSPARENT_GIF %>"
									width="15" height="<%= C_INT_MAIN_SPACING %>" border="0"></td>
						</tr>

						<!-- Show the lates unapproval page revision -->
<%						' Check if this is the unapproved version, and if it is, let the user know.
						If g_pASPPageManager.CurrentPage.StateUnapprovedVersion <> "None" _
							And g_pASPPageManager.CurrentPage.StateUnapprovedVersion <> "New" _
							And g_pASPPageManager.CurrentPage.StateUnapprovedVersion <> "Deleted" _
							And g_pASPPageManager.GridPagingControl.CurrentPage = 1 _
							And g_pASPPageManager.StateCauseByPage Then %>
							<tr>
								<td class="WBC_styclsHeavyTextColor1">
									<%= IDS_UI_LABEL_UNAPPROVED_PAGE %>
								</td>
							</tr>
							<tr>
								<td>
									<% Call WBC_writeUnApprovalInfoHTML( g_pASPPageManager.CurrentPage ) %>
								</td>
							</tr>
							<tr>
								<td><img src="<%= IDS_TRANSPARENT_GIF %>"
										width="100%" height="<%= C_INT_MINOR_SPACING %>" border="0"></td>
							</tr>
<%						End If %>

						<!-- Show the list of objects -->
						<tr>
							<td class="WBC_styclsHeavyTextColor1">
								<%= IDS_UI_LABEL_APPROVED_PAGE %>
							</td>
						</tr>
						<tr>
							<td>
								<% Call g_pASPPageManager.GridControl.DisplayGrid %>
							</td>
						</tr>

						<!-- Set the hidden field for Charset in order user in Javascript -->
						<input type="hidden" name="WBC_inhidPageCharset" value="<%= g_pASPPageManager.CurrentPage.Charset %>">
					</table>
				</td>
			</tr>
		</table>

		<!--- Show the paging index link ---->
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr valign=top >
				<td class="WBC_styclsTextColor0" align="center">
					<% Call g_pASPPageManager.GridPagingControl.DisplayPagingLinks %>
				</td>
			</tr>
		</table>
	</form>
</body>
</html>