<!--#include file="CNCASPPageManager_ConnectedPagesQuickJumpDlg.inc" -->

<%
'************************************************************************************
' File:		/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/QuickJump/
'			ConnectedPagesQuickJump/ConnectedPagesQuickJumpDlg.asp
' Author:	Microsoft Corporation.
' Purpose:	Display a list of channel for main page to jump to.  Entry point will be the
'			the Edit Mode's Page. Exit will go to the another page(another connected page) in
'			Edit mode
'
' Query String Parameters:
'	IDS_QSTR_QUICKJUMP_CONNECTEDPAGE: The connected page GUID that user has selected to as a source
'									  to search other connected page related to this page
'
'*************************************************************************************

' ---- Initialize the ASPPageManager
Dim g_pASPPageManager
Set g_pASPPageManager = New CNCASPPageManager_ConnectedPagesQuickJumpSelDlg
Call g_pASPPageManager.InitManager()

%>

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

<html>
<head>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="expires" content="-1">
	<meta name="Author" content="Microsoft Corporation.">
	<meta name="Description" content="Display a list of connected page for user to preview and jump to ">
	<meta name="robots" content="NOINDEX,NOFOLLOW">
	<meta http-equiv="Content-Type" content="text/html;charset=<%= g_pASPPageManager.Charset %>">
	<title><%= IDS_UI_BROWSER_TITLE %></title>

	<% Call EmbedWBCHeadSection %>

</head>

<body <%= IDS_BODYSETTING %> class="WBC_styclsTextColor0">

<form>

<table height="90%" width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr valign=top >
		<td>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<!-- Show the Main Header -->
				<tr class="WBC_styclsBackground1">
					<td align=right><img border=0 src="<%=IDS_PATH_IMAGE_LOGO %>"></td>
					<td width=100% valign="middle"  class="WBC_styclsHeaderText">
						<%= IDS_UI_LABEL_GOTO_CONNECTED_PAGE %>
					</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="15" height="<%=C_INT_SUBHEAD_HEIGHT%>" border="0"></td>
					<td height="25" class="WBC_styclsSubheadText">
						<%=IDS_UI_SEL_CONNECTED_PAGE%>
					</td>
					<td><img src="<%=IDS_TRANSPARENT_GIF%>"
						width="15" height="<%=C_INT_SUBHEAD_HEIGHT%>" border="0"></td>
				</tr>
				<tr>
					<td colspan=3><img src="<%=IDS_TRANSPARENT_GIF%>"
						width="15" height="<%=C_INT_MAIN_SPACING%>" border="0"></td>
				</tr>

				<!-- Set the margin width for the rest of the page -->
				<tr>
					<td rowspan="999"><img src="<%=IDS_TRANSPARENT_GIF%>"
								width="<%= C_INT_MAIN_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_MAIN_MARGIN %>" height="1" border="0"></td>
				</tr>


				<!-- Write the status box -->
				<tr>
					<td class="WBC_styclsBackground1">
						<table width="100%" border="0" cellspacing="<%= C_INT_THICK_BORDER %>" cellpadding="5">
							<tr class="WBC_styclsBackground3">
								<td>
									<table width="100%" border="0" cellspacing="0" cellpadding="0">

	<!-- No error so we show the status box -->
<%	If (g_pASPPageManager.Error = "") Then %>
										<tr>
											<td align='left' valign='top' width='1%' NOWRAP><span class="WBC_styclsHeavyTextColor1"><%=IDS_UI_CURRENT_CONNECTED_PAGE_NAME%>:</span>&nbsp;&nbsp;</td>
											<td align='left' valign='top' ><span class="WBC_styclsTextColor1">
											<%= g_pASPPageManager.ASPUtilsObject.MBCSWrite( g_pASPPageManager.ASPUtilsObject.HTMLEncode(g_pASPPageManager.CurrentPageNode.DisplayName), g_pASPPageManager.CodePage) %>
											</span></td>
										</tr>
										<tr>
											<td align='left' valign='top' width='1%' NOWRAP><span class="WBC_styclsHeavyTextColor1"><%=IDS_UI_CURRENT_CONNECTED_PAGE_CHANNEL%>:</span>&nbsp;&nbsp;</td>
											<td align='left' valign='top' ><span class="WBC_styclsTextColor1">
											<%= g_pASPPageManager.ASPUtilsObject.MBCSWrite( g_pASPPageManager.ASPUtilsObject.HTMLEncode(g_pASPPageManager.CurrentPageNode.Parent.DisplayPath), g_pASPPageManager.CodePage) %>
											</span></td>
										</tr>
	<!-- We have some sort of error, but we need to chk for each one --->
<%	ElseIf (g_pASPPageManager.Error = IDS_UI_ERR_PAGE_NOT_FOUND ) Then %>
										<tr>
											<td align='left' valign='top' width='1%' NOWRAP><span class="WBC_styclsHeavyTextColor1"><%=IDS_UI_CURRENT_CONNECTED_PAGE_NAME%>:</span>&nbsp;&nbsp;</td>
											<td align='left' valign='top' ><span class="WBC_styclsTextColor1"><%=IDS_UI_ERR_PAGE_NOT_FOUND%></span></td>
										</tr>
<%	End If %>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>

	 			<tr>
					<td colspan=3><img src="<%=IDS_TRANSPARENT_GIF%>"
						width="15" height="<%= C_INT_MAIN_SPACING %>" border="0"></td>
				</tr>

	<!-- No Errors so we can show the config control -->
<%	If (g_pASPPageManager.Error = "") Then %>

				<!-- 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 width=50% align=left  class="WBC_styclsTextColor0">
									<%=  IDS_UI_ITEMS  %> <b> <%= g_pASPPageManager.GridStartItem %> - <%= g_pASPPageManager.GridEndItem %>  </b><%=IDS_UI_OF%> <b><%= g_pASPPageManager.ConnectedPages.Count %></b>
								</td>
								<td width=50% align=right class="WBC_styclsTextColor0">
									<%=IDS_UI_ITEMS_PER_PAGE%>&nbsp;
									<% Call g_pASPPageManager.GridPagingConfigControl.DisplayPagingConfigControl() %>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td><img src="<%=IDS_TRANSPARENT_GIF%>"
							width="15" height="<%=C_INT_XSMALL_SPACING%>" border="0"></td>
				</tr>

				<!-- Display Separator -->
				<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 details in List -->
				<tr>
					<td>
						<%
								Call g_pASPPageManager.GridControl.DisplayGrid()
						%>
					</td>
				</tr>

<%		If g_pASPPageManager.HasNotAccessablePosting Then %>
				<tr>
					<td class="WBC_styclsHeavyTextColor1">
						<br>
						<%= IDS_UI_CANNOT_ACCESS_POSTING %>
						<br>
					</td>
				</tr>
<%		End If
	End If  %>
			</table>
		</td>
	</tr>

</table>

	<!--  Write the paging links when there is no error -->
<%	If (g_pASPPageManager.Error = "") Then %>

		<table height="10%" width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr valign=top>
				<td align=center class="WBC_styclsTextColor0">
					<%	Call g_pASPPageManager.GridPagingControl.DisplayPagingLinks %>
				</td>
			</tr>
		</table>

<%	End If %>

</form>

</body>

</html>