<%@ Page language="c#" CodeBehind="TabLayout.aspx.cs" AutoEventWireup="false" Inherits="ASPNET.StarterKit.Portal.TabLayout" %>
<%@ Register TagPrefix="ASPNETPortal" TagName="Banner" Src="~/DesktopPortalBanner.ascx" %>
<%@ Import Namespace="ASPNET.StarterKit.Portal" %>
<HTML>
	<HEAD>
		<%--
     The TabLayout.aspx page is used to control the layout settings of an
     individual tab within the portal.
--%>
		<link rel="stylesheet" href='<%= Global.GetApplicationPath(Request) + "/ASPNETPortal.css" %>' type="text/css">
	</HEAD>
	<body leftmargin="0" bottommargin="0" rightmargin="0" topmargin="0" marginheight="0" marginwidth="0">
		<form runat="server">
			<table width="100%" cellspacing="0" cellpadding="0" border="0">
				<tr valign="top">
					<td colspan="2">
						<ASPNETPortal:Banner ShowTabs="false" runat="server" id="Banner1" />
					</td>
				</tr>
				<tr>
					<td>
						<br>
						<table width="98%" cellspacing="0" cellpadding="4">
							<tr valign="top">
								<td width="150">
									&nbsp;
								</td>
								<td width="*">
									<table border="0" cellpadding="2" cellspacing="1">
										<tr>
											<td colspan="4">
												<table width="100%" cellspacing="0" cellpadding="0">
													<tr>
														<td align="left" class="Head">
															标签名称和布局
														</td>
													</tr>
													<tr>
														<td>
															<hr noshade size="1">
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td width="100" class="Normal">
												标签名称：&nbsp;
											</td>
											<td colspan="3">
												<asp:Textbox id="tabName" width="300" cssclass="NormalTextBox" runat="server" />
											</td>
										</tr>
										<tr>
											<td class="Normal" nowrap>
												授权角色：&nbsp;
											</td>
											<td colspan="3">
												<asp:CheckBoxList id="authRoles" RepeatColumns="2" Font-Names="Verdana,Arial" Font-Size="8pt" width="300"
													runat="server" />
											</td>
										</tr>
										<tr>
											<td>
												&nbsp;
											</td>
											<td colspan="3">
												<hr noshade size="1">
											</td>
										</tr>
										<tr>
											<td class="Normal" nowrap>
												移动用户可见？：&nbsp;
											</td>
											<td colspan="3">
												<asp:Checkbox id="showMobile" Font-Names="Verdana,Arial" Font-Size="8pt" runat="server" />
											</td>
										</tr>
										<tr>
											<td class="Normal" nowrap>
												移动标签名称：&nbsp;
											</td>
											<td colspan="3">
												<asp:Textbox id="mobileTabName" width="300" cssclass="NormalTextBox" runat="server" />
											</td>
										</tr>
										<tr>
											<td colspan="4">
												<hr noshade size="1">
											</td>
										</tr>
										<tr>
											<td class="Normal">
												添加模块：&nbsp;
											</td>
											<td class="Normal">
												模块类型&nbsp;
											</td>
											<td colspan="2">
												<asp:DropDownList id="moduleType" DataValueField="ModuleDefID" DataTextField="FriendlyName" runat="server" />
											</td>
										</tr>
										<tr>
											<td>
												&nbsp;
											</td>
											<td class="Normal">
												模块名称：&nbsp;
											</td>
											<td colspan="2">
												<asp:Textbox id="moduleTitle" EnableViewState="false" Text="New Module Name" cssclass="NormalTextBox"
													width="250" runat="server">
                                            新模块名称</asp:Textbox>
											</td>
										</tr>
										<tr>
											<td>
												&nbsp;
											</td>
											<td colspan="3">
												<asp:LinkButton class="CommandButton" Text='<img src="../images/dn.gif" border=0> Add to "Organize Modules" Below'
													runat="server" id="AddModuleBtn"><img src="../images/dn.gif" border="0"> 加入下面的“组织模块”</asp:LinkButton>
											</td>
										</tr>
										<tr>
											<td>
												&nbsp;
											</td>
											<td colspan="3">
												<hr noshade size="1">
											</td>
										</tr>
										<tr valign="top">
											<td class="Normal">
												组织模块：&nbsp;
											</td>
											<td width="120">
												<table border="0" cellspacing="0" cellpadding="2" width="100%">
													<tr>
														<td class="NormalBold">
															左边框
														</td>
													</tr>
													<tr valign="top">
														<td>
															<table border="0" cellspacing="2" cellpadding="0">
																<tr valign="top">
																	<td rowspan="2">
																		<asp:ListBox id="leftPane" DataSource="<%# leftList %>" DataTextField="ModuleTitle" DataValueField="ModuleId" width="110" rows="7" runat="server" />
																	</td>
																	<td valign="top" nowrap>
																		<asp:ImageButton ImageUrl="~/images/up.gif" CommandName="up" CommandArgument="leftPane" AlternateText="上移选中模块"
																			runat="server" id="LeftUpBtn" />
																		<br>
																		<asp:ImageButton ImageUrl="~/images/rt.gif" CommandName="right" sourcepane="leftPane" targetpane="contentPane"
																			AlternateText="将选中模块加入内容框" runat="server" id="LeftRightBtn" />
																		<br>
																		<asp:ImageButton ImageUrl="~/images/dn.gif" CommandName="down" CommandArgument="leftPane" AlternateText="下移选中模块"
																			runat="server" id="LeftDownBtn" />
																		&nbsp;&nbsp;
																	</td>
																</tr>
																<tr>
																	<td valign="bottom" nowrap>
																		<asp:ImageButton ImageUrl="~/images/edit.gif" CommandName="edit" CommandArgument="leftPane" AlternateText="编辑"
																			runat="server" id="LeftEditBtn" />
																		<br>
																		<asp:ImageButton ImageUrl="~/images/delete.gif" CommandName="delete" CommandArgument="leftPane" AlternateText="删除"
																			runat="server" id="LeftDeleteBtn" />
																	</td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
											</td>
											<td width="*">
												<table border="0" cellspacing="0" cellpadding="2" width="100%">
													<tr>
														<td class="NormalBold">
															内容框
														</td>
													</tr>
													<tr>
														<td align="center">
															<table border="0" cellspacing="2" cellpadding="0">
																<tr valign="top">
																	<td rowspan="2">
																		<asp:ListBox id="contentPane" DataSource="<%# contentList %>" DataTextField="ModuleTitle" DataValueField="ModuleId" width="170" rows="7" runat="server" />
																	</td>
																	<td valign="top" nowrap>
																		<asp:ImageButton ImageUrl="~/images/up.gif" CommandName="up" CommandArgument="contentPane" AlternateText="上移选中模块"
																			runat="server" id="ContentUpBtn" />
																		<br>
																		<asp:ImageButton ImageUrl="~/images/lt.gif" sourcepane="contentPane" targetpane="leftPane" AlternateText="将选中模块加入左边框"
																			runat="server" id="ContentLeftBtn" />
																		<br>
																		<asp:ImageButton ImageUrl="~/images/rt.gif" sourcepane="contentPane" targetpane="rightPane" AlternateText="将选中模块加入右边框"
																			runat="server" id="ContentRightBtn" />
																		<br>
																		<asp:ImageButton ImageUrl="~/images/dn.gif" CommandName="down" CommandArgument="contentPane" AlternateText="下移选中模块"
																			runat="server" id="ContentDownBtn" />
																		&nbsp;&nbsp;
																	</td>
																</tr>
																<tr>
																	<td valign="bottom" nowrap>
																		<asp:ImageButton ImageUrl="~/images/edit.gif" CommandName="edit" CommandArgument="contentPane" AlternateText="编辑"
																			runat="server" id="ContentEditBtn" />
																		<br>
																		<asp:ImageButton ImageUrl="~/images/delete.gif" CommandName="delete" CommandArgument="contentPane"
																			AlternateText="删除" runat="server" id="ContentDeleteBtn" />
																	</td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
											</td>
											<td width="120">
												<table border="0" cellspacing="0" cellpadding="2" width="100%">
													<tr>
														<td class="NormalBold">
															右边框
														</td>
													</tr>
													<tr>
														<td>
															<table border="0" cellspacing="2" cellpadding="0">
																<tr valign="top">
																	<td rowspan="2">
																		<asp:ListBox id="rightPane" DataSource="<%# rightList %>" DataTextField="ModuleTitle" DataValueField="ModuleId" width="110" rows="7" runat="server" />
																	</td>
																	<td valign="top" nowrap>
																		<asp:ImageButton ImageUrl="~/images/up.gif" CommandName="up" CommandArgument="rightPane" AlternateText="上移选中模块"
																			runat="server" id="RightUpBtn" />
																		<br>
																		<asp:ImageButton ImageUrl="~/images/lt.gif" sourcepane="rightPane" targetpane="contentPane" AlternateText="将选中模块加入左边框"
																			runat="server" id="RightLeftBtn" />
																		<br>
																		<asp:ImageButton ImageUrl="~/images/dn.gif" CommandName="down" CommandArgument="rightPane" AlternateText="下移选中模块"
																			runat="server" id="RightDownBtn" />
																	</td>
																</tr>
																<tr>
																	<td valign="bottom" nowrap>
																		<asp:ImageButton ImageUrl="~/images/edit.gif" CommandName="edit" CommandArgument="rightPane" AlternateText="编辑"
																			runat="server" id="RightEditBtn" />
																		<br>
																		<asp:ImageButton ImageUrl="~/images/delete.gif" CommandName="delete" CommandArgument="rightPane"
																			AlternateText="删除" runat="server" id="RightDeleteBtn" />
																	</td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td colspan="4">
												<hr noshade size="1">
											</td>
										</tr>
										<tr>
											<td colspan="4">
												<asp:LinkButton id="applyBtn" class="CommandButton" Text="Apply Changes" runat="server">
                                            提交</asp:LinkButton>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
