<%@ Page language="c#" Codebehind="ResourcePropertiesEdit.aspx.cs" AutoEventWireup="false" Inherits="Microsoft.ContentManagement.WebAuthor.ResourcePropertiesEdit" %>
<%@ Register tagprefix="WebAuthor" Tagname="DialogTitle" Src="..\..\..\Controls\DialogTitle.ascx" %>
<%@ Register TagPrefix="WebAuthor" Namespace="Microsoft.ContentManagement.WebAuthor" Assembly="Microsoft.ContentManagement.WebAuthor" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>
			<%= IDS_UI_BROWSER_TITLE %>
		</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<%= EmbedHeadSection() %>
		<script language="JavaScript" src="ResourceProperties.js" type="text/javascript"></script>
		<script language="JavaScript" type="text/javascript">
        <!--
        	function WBC_CopyNameToDisplayName()
        	{
        		document.forms["NC_PropertiesForm"].NC_intxtDisplayName.value = document.forms["NC_PropertiesForm"].NC_intxtName.value;
        		return false;
        	}
        //-->
		</script>
	</HEAD>
	<BODY class=WBC_styclsTextColor0 bgColor="<%=IDS_BODYSETTING_BGCOLOR %>" 
                                    leftMargin="<%=IDS_BODYSETTING_LEFTMARGIN%>" 
                                    topMargin="<%= IDS_BODYSETTING_TOPMARGIN %>">
		<FORM id="NC_PropertiesForm" method="post" enctype="multipart/form-data" runat="server">
			<table cellSpacing="0" cellPadding="0" width="100%" border="0">
				<!-- Set Dialog Title-->
				<tr>
					<td colspan="3">
						<WebAuthor:DialogTitle ID="title" runat="server"></WebAuthor:DialogTitle>
					</td>
				</tr>
				<!-- Define a margin -->
				<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 height=1 src="<%=IDS_TRANSPARENT_GIF%>" width="<%= C_INT_MAIN_MARGIN %>" border=0></td>
					<td><img height=1  src="<%=IDS_TRANSPARENT_GIF%>" width="100%" border=0 ></td>
					<td rowSpan="999"><img height=1  src="<%=IDS_TRANSPARENT_GIF%>" width="<%= C_INT_MAIN_MARGIN %>"  border=0></td>
				</tr>
				<!-- Write the status box -->
				<tr>
					<td>
						<WebAuthor:StatusBox ID="statusbox" runat="server"></WebAuthor:StatusBox>
					</td>
				</tr>
				<!-- Define a margin -->
				<tr>
					<td><img src="<%=IDS_TRANSPARENT_GIF%>"   width="15" height="<%= C_INT_MAIN_SPACING %>" border="0"></td>
				</tr>
				<!-- Show the Content area -->
				<asp:PlaceHolder ID="ContentHolder" Runat="server">
					<tr>
						<td valign="top" class="WBC_styclsBackground1">
							<table width="100%" border="0" cellspacing="2" cellpadding="5">
								<tr class="WBC_styclsBackground2">
									<td valign="top">
										<table width="100%" border="0" cellspacing="0" cellpadding="5">
											<!-- Render Mime-type -->
											<tr valign="top">
												<td class="WBC_styclsHeavyTextColor1"><%= IDS_UI_LABEL_FILE_TYPE %></td>
												<td class="WBC_styclsTextColor1"><%= Resource.MimeType %>
												<td>&nbsp;</td>
											</tr>
											<!-- Render URL name -->
											<tr valign="top">
												<td class="WBC_styclsHeavyTextColor1" width="30%"><%= IDS_UI_LABEL_URLNAME%></td>
												<td class="WBC_styclsTextColor1" width="30%">
													<asp:TextBox id="NC_intxtName" runat="server" Columns="40" cssclass='WBC_styclsInputField' />
													<asp:Literal ID="NC_txtName" Runat="server" />
												</td>
												<td>&nbsp;</td>
											</tr>
											<!-- Render Display name -->
											<tr valign="top">
												<td class="WBC_styclsHeavyTextColor1"><%= IDS_UI_LABEL_DISPLAYNAME %></td>
												<td class="WBC_styclsTextColor1">
													<asp:TextBox id="NC_intxtDisplayName" runat="server" Columns="40" cssclass="WBC_styclsInputField" />
													<asp:Literal ID="NC_txtDisplayName" Runat="server" />
												</td>
												<td>
													<%if (Resource.CanSetProperties) { %>
													<a href="#" onclick="return WBC_CopyNameToDisplayName() "><img name="NC_Reset" alt="<%=IDS_UI_TOOLTIP_RESET%>" border="0" src="<%=IDS_PATH_IMAGES_COMMON_BUTTONS%><%=IDS_IMG_BTN_OFF_RESET%>"></a>
													<% } else { %>
													<img name="NC_Reset" alt="<%=IDS_UI_TOOLTIP_RESET%>" border="0" src="<%=IDS_PATH_IMAGES_COMMON_BUTTONS%><%=IDS_IMG_BTN_OFF_RESET%>">
													<% } %>
												</td>
											</tr>
											<!-- Render Description -->
											<tr valign="top">
												<td class="WBC_styclsHeavyTextColor1"><%= IDS_UI_LABEL_DESCRIPTION %></td>
												<td class="WBC_styclsTextColor1">
													<asp:TextBox TextMode="Multiline" id="NC_intxtDescription" runat="server" cssclass='WBC_styclsInputField' Columns="40" Rows="4" wrap="true" />
													<asp:Literal ID="NC_txtDescription" Runat="server" />
												</td>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td colspan="2">&nbsp;</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td><img src="<%=IDS_TRANSPARENT_GIF%>"
            			width="15" height="<%= C_INT_MAIN_SPACING %>" border="0"></td>
					</tr>
					<tr>
						<td align="right">
							<asp:ImageButton id="NCImg_Okay" src="<%# IDS_PATH_IMG_BTN_OKAY %>" OnClick="OnResourcePropertiesSave" BorderWidth="0" AlternateText="OK" Runat="server" />
							&nbsp;&nbsp;&nbsp; <a href="#" onclick="window.close(); return false;"><img name="NCImg_Cancel" src="<%=IDS_PATH_IMAGES_COMMON_BUTTONS%><%=IDS_IMG_BTN_CANCEL%>" border="0" alt="Cancel"></a>
						</td>
					</tr>
				</asp:PlaceHolder>
			</table>
		</FORM>
		<asp:PlaceHolder ID="UploadSuccessScript" Visible="False" Runat="server">
			<script language="JavaScript" type="text/javascript">
			<!--
				if (!WBC_isOpenerWindowClosed())
				{
					window.opener.WBC_refreshResourcesListWindow();
				}
				window.close();
			// -->
			</script>
		</asp:PlaceHolder>
	</BODY>
</HTML>
