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

<%
'************************************************************************************
' File:		/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/PageOperation/Edit/PageCopy/
'			ChannelsBrowse.asp
' Author:	Microsoft Corporation.
' Purpose:	Display a list of channles for user to choose.
'
' Query String Parameters:
'	IDS_QSTR_PAGEOPERATIONEDIT_SOURCEPAGE
'		The Page Guid of the original page used for copying
'	IDS_QPARAM_FRESHTREE
'		The Querystring that tells the treeview to use a new tree or not
'*************************************************************************************

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

' we can only run in unpublished mode
if (AutoSession.IsModeUpdate = false) AND (AutoSession.IsModeUnpublished = false) then
	Response.End
end if
%>

<!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 channels">
	<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 %>

<script language="JavaScript"
		src="/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/PageOperation/EditMode/PageCopyOrMove.js"
		type="text/javascript"></script>

</head>

<body <%= IDS_BODYSETTING %> class="WBC_styclsTextColor0"
		onload="WBC_onLoadHandler(<%= Bool2LCaseStr(Request.QueryString(IDS_QSTR_PAGECREATIONEDIT_FRESHTREE) = IDS_PAGECREATIONEDIT_FRESHTREE_TRUE) %>);return false;">


<table height="90%" width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr valign=top >
		<td>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">

				<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>

				<!-- Show area displaying info about current object -->
<%	If (g_pASPPageManager.Error = IDS_UI_ERR_PAGE_NOT_FOUND) Then %>

				<tr>
					<td class="WBC_styclsBackground1">
						<table width="100%" border="0" cellspacing="2" cellpadding="5">
							<tr class="WBC_styclsBackground3">
								<td>
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td align='left' valign='top' width='1%' NOWRAP><span class="WBC_styclsHeavyTextColor1"><%= IDS_UI_PAGE_DISPLAY_NAME %> </span>&nbsp;&nbsp;</td>
											<td align='left' valign='top' ><span class="WBC_styclsTextColor1"><%= IDS_UI_ERR_PAGE_NOT_FOUND %></span></td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
<%	Else %>
				<!-- Show the Channels as Tree  -->
				<tr>
					<td width="100%" align="left">
						<%
							Call g_pASPPageManager.TreeControl.DisplayTree()
						%>
					</td>
				</tr>
<%	End If %>

			</table>
		</td>
	</tr>

</table>


</body>

</html>
