<!-- #include virtual="/NR/System/WBC/Internals/Main/WBCApp.inc"-->

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

<!-- #include virtual="/NR/System/WBC/Customizable/WBCFuncPagesConfig/UIStringConstants/PageRevisionUIStrings.inc" -->
<!-- #include virtual="/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/RevisionBrowser/Page/Common/ProgrammingConstants.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/PageRevisionPreviewByDateDlg.asp
' Version:	Microsoft Content Management Server
' Author:	Microsoft Corporation.
' Purpose:	Responsible for previewing Page Revision by a specified date and time
'
' 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.
' ********************************************************************


'	Obtaining the current Page and Revision Pages
Dim	g_pCurrentPage
Set g_pCurrentPage = AutoSession.ThisPosting


'	Construct the preview URL
Dim strPreviewURL
strPreviewURL = IDS_PREVIEW_URL & g_pCurrentPage.QueryString

'	Get the Display Name
Dim pASPUtils
Dim strDisplayName

Set pASPUtils = GetInitializedASPUtils()
strDisplayName = pASPUtils.HTMLEncode( g_pCurrentPage.DisplayName )

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

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<%= g_pCurrentPage.Charset %>">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="expires" content="-1">
	<meta name="Author" content="Microsoft Corporation.">
	<meta name="Description" content="Preview Revision Page by a specified date and time">
	<meta name="robots" content="NOINDEX,NOFOLLOW">
	<script language="JavaScript" src="../Common/PageRevisionCommon.js" type="text/javascript"></script>
	<script language="JavaScript" src="PageRevisionPreview.js" type="text/javascript"></script>
	<% Call EmbedWBCHeadSection %>
	<title><%= IDS_UI_BROWSER_TITLE %></title>
</head>

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

	<form name="WBC_formViewRevisionByDate" method="post" enctype="multipart/form-data">

		<!-- hidden field for preview date in GMT time -->
		<input type="hidden" name="WBC_inhidPreviewDateYear" value="">
		<input type="hidden" name="WBC_inhidPreviewDateMonth" value="">
		<input type="hidden" name="WBC_inhidPreviewDateDay" value="">
		<input type="hidden" name="WBC_inhidPreviewDateHour" value="">
		<input type="hidden" name="WBC_inhidPreviewDateMinute" value="">

		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<!-- Show the Main Header -->
			<tr class="WBC_styclsBackground1">
				<td><img border=0 src="<%=IDS_PATH_IMAGE_LOGO %>"></td>
				<td width=100% valign="middle"  class="WBC_styclsHeaderText">
					<%= IDS_UI_LABEL_VIEW_REVISIONS_BY_DATE %>
				</td>
				<td><img src="<%= IDS_TRANSPARENT_GIF %>"
							width="<%= C_INT_MAIN_MARGIN %>" height="<%= C_INT_HEADER_HEIGHT %>" border="0"></td>
			</tr>

			<!-- Show the Sub Header -->
			<tr class="WBC_styclsBackground2">
				<td><img src="<%= IDS_TRANSPARENT_GIF %>"
					width="<%= C_INT_MAIN_MARGIN %>" height="<%= C_INT_SUBHEAD_HEIGHT %>" border="0"></td>
				<td class="WBC_styclsSubheadText">
					<%= IDS_UI_LABEL_SELECT_DATE %>
				</td>
				<td><img src="<%= IDS_TRANSPARENT_GIF %>"
					width="<%= C_INT_MAIN_MARGIN %>" height="<%= C_INT_SUBHEAD_HEIGHT %>" border="0"></td>
			</tr>
		</table>

		<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_MINOR_SPACING %>" 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_SPACING %>" height="1" border="0"></td>
			</tr>

			<!-- Show the Page Information -->
			<tr>
				<td colspan="3"><img src="<%= IDS_TRANSPARENT_GIF %>"
					width="15" height="<%= C_INT_MAIN_SPACING %>" border="0"></td>
			</tr>
			<tr>
				<td>
					<table  class="WBC_styclsBackground1" width="100%" border="0"
							cellspacing="0" cellpadding="2">
						<td>
							<table class="WBC_styclsBackground2" width="100%" border="0"
									cellspacing="0" cellpadding="7">

								<!-- Show Display Name -->
								<tr class="WBC_styclsBackground2">
									<td class="WBC_styclsHeavyTextColor1" width="15%">
										<%= IDS_UI_LABEL_PAGE %>
									</td>
									<td class="WBC_styclsTextColor1">
							 			<% Call pASPUtils.MBCSWrite( strDisplayName, g_pCurrentPage.CodePage ) %>
									</td>
								</tr>

								<!-- Show UI description -->
								<tr>
									<td colspan="2" valign="top"><hr></td>
								</tr>
									<td class="WBC_styclsHeavyTextColor1" colspan="2">
										<%= IDS_UI_LABEL_SELECT_DATE_DESCRIPTION %>
									</td>
								</tr>

								<!-- Show Date dropdown list -->
								<tr>
									<td colspan="2">
										<table width="100%" border="0" cellspacing="0" cellpadding="10">
											<tr>
												<td class="WBC_styclsHeavyTextColor1" align="right" width="50">
													Date:
												</td>
												<td class="WBC_styclsTextColor1">
													<select name="WBC_selMonth" size="1">
														<%	Call WBC_writeMonthList() %>
													</select>
													<select name="WBC_selDay" size="1">
														<%	Call WBC_writeDayList() %>
													</select>
													<select name="WBC_selYear" size="1">
														<%	Call WBC_writeYearList() %>
													</select>
												</td>
											</tr>
											<tr>
												<td class="WBC_styclsHeavyTextColor1" align="right" width="50">
													Time:
												</td>
												<td class="WBC_styclsTextColor1">
													<select name="WBC_selHours" size="1">
														<%	Call WBC_writeHoursList() %>
													</select>
													<select name="WBC_selMinutes" size="1">
														<%	Call WBC_writeMinutesList() %>
													</select>
													<select name="WBC_selAmPm" size="1">
														<option value="am">am</option>
														<option value="pm">pm</option>
													</select>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</table>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td><img src="<%=IDS_TRANSPARENT_GIF%>"
								width="1" height="<%= C_INT_MINOR_SPACING %>" border="0"></td>
						</tr>
						<tr valign="top">
							<td align="right" valign="bottom"  colspan="2">
								<a href="#" onclick="WBC_onClickPreview('<%= strPreviewURL %>'); return false;">
									<img name="WBC_imgView" src="<%= IDS_PATH_IMAGES_COMMON & IDS_IMG_BTN_VIEW_GIF %>" border="0" alt=""></a>
									&nbsp;
								<a href="#" onclick="window.close(); return false;">
									<img name="WBC_imgCancel" src="<%= IDS_PATH_IMAGES_COMMON & IDS_IMG_BTN_CANCEL_GIF %>" border="0" alt=""></a>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</form>
</body>
</html>