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

<!--#include virtual="/NR/System/WBC/Customizable/WBCFuncPagesConfig/UIStringConstants/AuthResourceUIStrings.inc" -->
<!--#include virtual="/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/ResourceBrowser/Authoring/AuthResourceConstants.inc" -->


<%
'************************************************************************************
' File:		/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/Authoring/
'			VideoBrowser/VideoSelectBrowse.asp
' Author:	Microsoft Corporation.
' Purpose:	Display a list of image resource galleries.  Entry point will be the
'			the Console UI. Exit pt is VideoResourecesBrowse.asp
'
' 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.
'	IDS_QPARAM_PHNAME: Placeholder Name.
'	IDS_QPARAM_PHTYPE: Placeholder Type.
'	                   Valid values are IDS_PHTYPE_MULTIPURPOSE,
'	                   IDS_PHTYPE_SINGLEATTACHMENT, IDS_PHTYPE_SINGLEIMAGE,
'	                   IDS_PHTYPE_SINGLELINETEXT, IDS_PHTYPE_MULTILINETEXT and
'	                   IDS_PHTYPE_THINEDITIE.
'	IDS_QSTR_RESTYPE: Resource Type.
'	                    Valid values are IDS_RESTYPE_ATTACHMENT, IDS_RESTYPE_IMAGE
'	                    and IDS_RESTYPE_VIDEO.
'	IDS_QPARAM_ATTACHICON: It indicates whether attachment is represented as icons.
'	                       Valid values are true and false.
'	                       Default is false.
'*************************************************************************************
Dim g_strResourceGalleryURL
Dim g_strLocalResourceURL
Dim g_bAllowInsertLocalVideo

g_strResourceGalleryURL = IDS_PATH_INSERT_VIDEO_URL & IDS_PATH_VIDEO_GALLERIES_URL & "?" & URLEncodedQueryString()
g_strLocalResourceURL = IDS_PATH_INSERT_VIDEO_URL & IDS_PATH_VIDEO_LOCAL_URL & "?" & URLEncodedQueryString()

g_bAllowInsertLocalVideo = False
If (Request.QueryString( IDS_QPARAM_DESKRES ) <> "") Then
	g_bAllowInsertLocalVideo = CBool( Request.QueryString(IDS_QPARAM_DESKRES) )
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 the link to video resource galleries or local resource">
	<meta name="robots" content="NOINDEX,NOFOLLOW">
	<title><%= IDS_UI_BROWSER_TITLE %></title>

	<% Call EmbedWBCHeadSection %>
	<script language="JavaScript"
		src="/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/ResourceBrowser/Authoring/ResourceBrowserClient.js"
		type="text/javascript"></script>
</head>

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

<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><img border=0 src="<%=IDS_PATH_IMAGE_LOGO %>"></td>
					<td width=100% valign="middle"  class="WBC_styclsHeaderText">
						<%= IDS_UI_LABEL_INSERT_VIDEO %>
					</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_SOURCE %>
					</td>
					<td><img src="<%= IDS_TRANSPARENT_GIF %>"
						width="<%= C_INT_MAIN_MARGIN %>" 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 Placeholder information -->
				<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="5">
									<tr>
										<td class="WBC_styclsTextColor1">
											<a href="<%= g_strResourceGalleryURL %>"><%= IDS_UI_LABEL_INSERT_SHARED_VIDEO %></a> <%= IDS_UI_FROM & " " & IDS_UI_LABEL_RESOURCE_GALLERY %>
										</td>
									</tr>
									<tr>
										<td class="WBC_styclsTextColor1">
									<%	If g_bAllowInsertLocalVideo Then %>
											<a href="<%= g_strLocalResourceURL %>"><%= IDS_UI_LABEL_INSERT_LOCAL_VIDEO %></a> <%= IDS_UI_FROM & " " & IDS_UI_LABEL_LOCAL_NETWORK %>
									<%	Else %>
											<%= IDS_UI_LABEL_NO_ALLOW_INSERT_LOCAL_VIDEO %>
									<%	End If	%>
										</td>
									</tr>
								</table>
							</td>
						</table>
					</td>
				</tr>

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

</body>
</html>