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

<%
'************************************************************************************
' File:		/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/Authoring/
'			ImageBrowser/ImageProperties/ImagePropertiesOnlyBrowse.asp
' Author:	Microsoft Corporation.
' Purpose:	Display a list of image property
'
' Query String Parameters:
'   IDS_QPARAM_RESOURCE: Specifies Resource item guid
'	IDS_QPARAM_PHNAME: Placeholder Name.
'*************************************************************************************

' 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_ImagePropertiesOnly
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 properties of an image">
	<meta name="robots" content="NOINDEX,NOFOLLOW">
	<meta http-equiv="Content-Type" content="text/html;charset=<%= g_pASPPageManager.CurrentPosting.Charset %>">
	<title><%= IDS_UI_BROWSER_TITLE %></title>

	<% Call EmbedWBCHeadSection %>
	<script language="JavaScript"
		src="/NR/System/WBC/Internals/WBCFuncPages/Cross-Browser/ResourceBrowser/Common/ResourceBrowserCommon.js"
		type="text/javascript"></script>
	<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"
		onload="self.focus(); WBC_loadImageProperties( '<%= g_pASPPageManager.PlaceholderName %>' ); return false;">

<form name="NC_LocalForm">

	<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_IMAGE_PROPERTIES %>
			</td>
			<td><img src="<%=IDS_TRANSPARENT_GIF%>"
						width="<%= C_INT_MAIN_MARGIN %>" height="<%=C_INT_HEADER_HEIGHT%>" border="0"></td>
		</tr>

		<!-- Show space -->
		<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>

		<tr>
			<td>
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<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="8">

										<!-- Show the input fields for Image properties -->
										<tr valign="top">
											<td class="WBC_styclsHeavyTextColor1" colspan="3">
												<span><%= IDS_UI_LABEL_OPTIONAL_PROPERTIES %></span>
											</td>
										</tr>

								<%	If g_pASPPageManager.CanHyperlinks Then %>

										<tr>
											<td class="WBC_styclsTextColor1" width="130">
												<span><%= IDS_UI_LABEL_HYPERLINK %>:</span>
											</td>
											<td width="230">
												<input name="NC_HRef" type="text"
													size="<%= ID_INPUTBOX_SIZE %>"
													class="WBC_styclsInputField" value="http://">
											</td>
											<td align="right">
											<%
												' The InternalLinks.asp dialog does not work under IE4, so we
												' need to mask out the "Browse..." button here which is the
												' entry point to that dialog

												If ( isMSIE() And Left(GetBrowserVerFull(),3) = "4.0" ) Then
											%>
												&nbsp;
											<% Else %>
												<a href="#" onclick="return WBC_onBrowse()">
													<img border="0" src="<%= IDS_PATH_IMAGES_COMMON & IDS_IMG_BTN_BROWSE %>"></a>
											<% End If %>
											</td>
										</tr>
								<%	End If %>

										<tr>
											<td class="WBC_styclsTextColor1">
												<span><%= IDS_UI_LABEL_ALTERNATE_TEXT %>:</span>
											</td>
											<td colspan="2">
												<input name="NC_AltText" type="text"
													size="<%= ID_INPUTBOX_SIZE %>"
													class="WBC_styclsInputField" value="">
											</td>
										</tr>
									</table>
								</td>
							</table>

							<!-- Show the Okay & Cancel buttons -->
							<tr>
								<td colspan="2"><img src="<%= IDS_TRANSPARENT_GIF %>"
										width="15" height="<%= C_INT_MAIN_SPACING %>" border="0"></td>
							</tr>
							<tr>
								<td colspan="3" align="right">
									<a href="#" onclick="WBC_setImageProp( '<%= g_pASPPageManager.PlaceholderName %>' ); return false;">
										<img name="NCImg_Okay" border="0"
											src="<%= IDS_PATH_IMAGES_COMMON & IDS_IMG_BTN_OKAY %>"></a>
									&nbsp;
									<a href="#" onclick="window.close(); return false;">
										<img name="NCImg_Cancel" border="0"
											src="<%= IDS_PATH_IMAGES_COMMON & IDS_IMG_BTN_CANCEL %>"></a>
								</td>
							</tr>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>

</form>
</body>
</html>