<%@ Page language="c#" Codebehind="ChannelProperties.aspx.cs" AutoEventWireup="false" Inherits="Microsoft.ContentManagement.WebAuthor.ChannelProperties" %>
<%@ Register tagprefix="WebAuthor" Tagname="DialogTitle" Src="..\..\Controls\DialogTitle.ascx" %>
<%@ Register tagprefix="WebAuthor" Tagname="GeneralProperties" Src="GeneralProperties.ascx" %>
<%@ Register tagprefix="WebAuthor" Tagname="StandardProperties" Src="StandardProperties.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="dhtmllib2.js" type="text/javascript"></script>
		<script language="JavaScript" src="PropsCommonClient.js" type="text/javascript"></script>
	</HEAD>
	<body class=WBC_styclsTextColor0 bgColor="<%=IDS_BODYSETTING_BGCOLOR %>" 
                  leftMargin="<%=IDS_BODYSETTING_LEFTMARGIN%>" 
                  topMargin="<%= IDS_BODYSETTING_TOPMARGIN %>"
                  onload="WBC_onLoadProperties(<%= Bool2LCaseStr(CanSetLocalProperties) %>); return false;">
		<form id="WBC_formProperties" method="post" enctype="multipart/form-data" runat="server">
			<asp:PlaceHolder id="ContentHolder" runat="server">
				<!-- Render the background for the properties page -->
				<div id="WBCPropsBackGround" style="position: absolute;
            			top: <%= ID_PROPS_TAB_POS_TOP + ID_PROPS_TAB_HEAD_HEIGHT %>;
            			              left: <%= ID_PROPS_TAB_POS_LEFT %>">
					<!-- Render the background color for the tabs -->
					<table width="<%= ID_PROPS_TAB_CONTENT_WIDTH %>"  border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td class="WBC_styclsBackground1" width="<%= ID_PROPS_TAB_CONTENT_WIDTH %>" height="2">
								<spacer type="block" width="<%= ID_PROPS_TAB_CONTENT_WIDTH %>" height="2"></td>
						</tr>
					</table>
					<table width="<%= ID_PROPS_TAB_CONTENT_WIDTH %>"  border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td class="WBC_styclsBackground1" width="2" height="<%= ID_PROPS_TAB_CONTENT_HEIGHT %>">
								<spacer type="block" width="2" height="<%= ID_PROPS_TAB_CONTENT_HEIGHT %>">
							</td>
							<td class="WBC_styclsBackground2" width="<%= ID_PROPS_TAB_CONTENT_WIDTH %>" height="<%= ID_PROPS_TAB_CONTENT_HEIGHT %>">
								<spacer type="block" width="<%= ID_PROPS_TAB_CONTENT_WIDTH - 5 %>" height="<%= ID_PROPS_TAB_CONTENT_HEIGHT %>">
							</td>
							<td class="WBC_styclsBackground1" width="2" height="<%= ID_PROPS_TAB_CONTENT_HEIGHT %>">
								<spacer type="block" width="2" height="<%= ID_PROPS_TAB_CONTENT_HEIGHT %>">
							</td>
						</tr>
					</table>
					<table width="<%= ID_PROPS_TAB_CONTENT_WIDTH %>" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td class="WBC_styclsBackground1" width="<%= ID_PROPS_TAB_CONTENT_WIDTH %>" height="2">
								<spacer type="block" width="<%= ID_PROPS_TAB_CONTENT_WIDTH %>" height="2"></td>
						</tr>
					</table>
					<!-- Render the "Save Changes" and "Cancel" button -->
					<table width="<%= ID_PROPS_TAB_CONTENT_WIDTH %>" height="45"
            				border="0" cellpadding="0" cellspacing="0">
						<td align="right" valign="bottom">
							<% 			if (CanSetSharedProperties == true || CanSetLocalProperties == true) { %>
							<asp:ImageButton id="WBC_imgSaveChanges" ImageUrl="<%# IDS_PATH_IMG_BTN_SAVECHANGES %>" BorderWidth=0 OnClick="OnSaveProperties" runat="server" />
							&nbsp;
							<%			} %>
							<a href="#" onclick="window.close(); return false;"><img name="WBC_imgCancel" src="<%= IDS_PATH_IMAGES_COMMON_BUTTONS%><%= IDS_IMG_BTN_CANCEL %>" border="0" alt=""></a>
						</td>
					</table>
				</div>
				<!-- Show the Top Title -->
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr class="WBC_styclsBackground1">
						<td width="50"><img src="<%=IDS_PATH_IMAGE_LOGO %>" border=0></td>
						<td width="100%" valign="middle" class="WBC_styclsHeaderText">
							<%= IDS_UI_DISPLAY_CHANNEL_PROPERTIES%>
						</td>
						<td><img src="<%=IDS_TRANSPARENT_GIF%>"
                				width="<%= C_INT_MAIN_MARGIN %>" height="<%= C_INT_LEVEL1_HEIGHT %>" border="0"></td>
					</tr>
				</table>
				<WebAuthor:GeneralProperties id="GeneralPropertiesControl" runat="server" />
				<asp:ImageButton id="StandardPropsTab" style="position: relative; left: 10" BorderWidth="0" OnClick="OnTabClicked" runat="server" />
				<asp:ImageButton id="CustomPropsTab" BorderWidth="0" OnClick="OnTabClicked" runat="server" />
				<WebAuthor:StandardProperties id="StandardPropertiesControl" runat="server" />
				<asp:Panel id="CustomPropertiesPanel" style="position: absolute; top: 186; left: 10; width: 633" runat="server">
					<asp:Panel id="CustomPropertiesInsidePanel" style="position: relative; top: 20; left: 20; width: 590;
    						height: 310; overflow: scroll;background-color: #EEEEEE" runat="server">
						<!-- Custom Tab Form -->
						<asp:DataGrid id="CustomPropertiesGrid" runat="server" AutoGenerateColumns="False" GridLines="None" CellSpacing="1">
							<HeaderStyle cssclass='WBC_styclsBackground1' HorizontalAlign='center'></HeaderStyle>
							<ItemStyle cssclass='WBC_styclsAlternateRowBg1' />
							<AlternatingItemStyle cssclass='WBC_styclsAlternateRowBg2'></AlternatingItemStyle>
							<Columns>
                               <asp:TemplateColumn>
                                    <ItemTemplate>
                                        <asp:Label ID="lblCustPropName" Runat="server" MaxLength="256"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateColumn>
								<asp:TemplateColumn>
									<ItemTemplate>
										<asp:Label ID="lblCustPropType" Runat="server"></asp:Label>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn>
									<ItemTemplate>
										<asp:TextBox ID="tbxCurValue" Width="318" runat="server" />
										<asp:DropDownList ID="ddlCurValue" runat="server" />
									</ItemTemplate>
								</asp:TemplateColumn>
							</Columns>
						</asp:DataGrid>
					</asp:Panel>
				</asp:Panel>
			</asp:PlaceHolder>
			<!-- The ErrorHolder placeholder appears only when error occurs -->
			<asp:PlaceHolder id="ErrorHolder" Visible="false" 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>
				</table>
			</asp:PlaceHolder>
		</form>
		<asp:PlaceHolder id="DateTimeErrorHolder" visible="false" runat="server">
			<SCRIPT language="JavaScript" type="text/javascript">
    		<!--
   				alert('<%= DateTimeErrorMessage %>');
    		// -->
			</SCRIPT>
		</asp:PlaceHolder>
	</body>
</HTML>
