<%@ Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %>
<%@ Page language="c#" Codebehind="CategoryAdd.aspx.cs" AutoEventWireup="true" enableEventValidation="false" Inherits="XpShop.Manage.CategoryAdd" ValidateRequest="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
	<HEAD>
	    <!--#include file="inc/head.inc"-->
		<title>CategoryAdd</title>
		<script type="text/javascript" src="inc/CategoryAdd.js"></script>
		<style type="text/css">
		    #fieldContent { margin-left:-40px !important; margin-left:0px;}
		    #fieldContent li {list-style:none;  float:left; margin-right:5px;}
		</style>
	</HEAD>
	<body>
	    <div class="container">
		<div class="sub_container">
		<form id="Form1" method="post" runat="server">
		<div class="sub_container_title"><a href="<%=AdminDefault%>" target="_top">桌面</a><img src="images/admin_title.jpg" height=9px width=8px align="absmiddle" /><%=Request.QueryString["CategoryID"] == null ? "商品分类添加" : "商品分类修改"%></div>
		<div class="sub_container_tabs">
			<div class="tabmenu">
			    <ul>
			        <li class="menuitem tabon">全部信息</li>
			        <li class="menuitem tabout">基本信息</li>
			        <li class="menuitem tabout">商品属性关联</li>
			        <li class="menuitem tabout">品牌关联</li>
			        <li class="menuitem tabout">营销相关</li>
			    </ul>
			</div>
		</div>
		<div class="sub_container_content">
		<asp:Label ID="lblAction" Runat="server" Visible="false" CssClass="tableHeaderText"></asp:Label>
		    <div class="frame tab">
		        <div class="frame_title">基本信息</div>
		        <div class="frame_content">
		            <table class="ptable" cellspacing="0" cellpadding="0">
						<tr>
							<th class="tl">
								分类名：
							</th>
							<td class="tr">
								<asp:TextBox id="txtName" runat="server"></asp:TextBox><em>*</em>
							</td>
						</tr>
						<tr>
							<th class="tl">
								父级分类：
							</th>
							<td class="tr">
								<asp:DropDownList id="ddlCategory" runat="server"></asp:DropDownList>
							</td>
						</tr>
						<!--
						<tr>
							<td align="left">
								分类商品每页商品数量：
							</td>
							<td>
								<asp:TextBox id="txtProductPageSize" runat="server">10</asp:TextBox>
							</td>
						</tr>
						-->
						<tr>
							<th class="tl">
								显示在顶部分类栏：
							</th>
							<td class="tr">
								<asp:DropDownList id="ynInBar" runat="server">
									<asp:ListItem Value="1">Yes</asp:ListItem>
									<asp:ListItem Value="0">No</asp:ListItem>
								</asp:DropDownList>
							</td>
						</tr>
						<tr>
							<th class="tl">
								显示在左边分类栏：
							</th>
							<td class="tr">
								<asp:DropDownList id="ynInNav" runat="server">
									<asp:ListItem Value="1">Yes</asp:ListItem>
									<asp:ListItem Value="0">No</asp:ListItem>
								</asp:DropDownList>
							</td>
						</tr>
						<tr>
							<th class="tl">
								相关新闻分类：
							</th>
							<td class="tr">
								<asp:DropDownList id="ddlNewsCat" runat="server">
								</asp:DropDownList>
							</td>
						</tr>
						<tr>
							<th class="tl">
								购买该类商品赠送积分比例：
							</th>
							<td class="tr">
                                <asp:TextBox id="txtScoreRate" runat="server" Text="0.1"></asp:TextBox><em>输入赠送的积分比例必须是数字</em>
							</td>
						</tr>
					</table>
		        </div>
	        </div>
	        <div class="frame tab">
		        <div class="frame_title">商品类型关联</div>
		        <div class="frame_content">
		            <table class="ptable" cellspacing="0" cellpadding="0">
						<tr>
		                    <th class="tl">商品类型：
		                    </th>
		                    <td class="tr">
		                        <asp:DropDownList id="ddlPdtType" runat="server"></asp:DropDownList>
		                    </td>
		                </tr>
					</table>
		        </div>
	        </div>
	        <div class="frame tab">
	            <div class="frame_title">品牌关联</div>
	            <div class="frame_content">
	                <table width="95%" cellSpacing="0" cellPadding="0" width="95%" align="center" border="0">
	                    <tr>
	                        <td style="width:150px;"></td>
	                        <td>
	                             <table cellSpacing="0" cellPadding="0" border="0" style="text-align:center;">
	                                <tr>
	                                    <th>可选品牌</th>
	                                    <th></th>
	                                    <th>已选品牌</th>
	                                </tr>
	                                <tr>
	                                    <td>
	                                        <asp:ListBox id="lbxBrands" runat="server" Rows="10" SelectionMode="multiple" Width="150px"></asp:ListBox>
	                                    </td>
	                                    <td>
	                                        <input type="button" id="btnAdd" value="==>>" class="inputbtn" />
	                                        <br />
	                                        <input type="button" id="btnRemove" value="<<==" class="inputbtn" />
	                                    </td>
	                                    <td>
	                                        <asp:ListBox ID="lbxCatBrands" runat="server" Rows="10" SelectionMode="multiple" Width="150px"></asp:ListBox>
	                                    </td>
	                                </tr>
	                            </table>
	                        </td>
	                    </tr>
	                </table>
	               
	            </div>
	        </div>
	        <div class="frame tab">
		        <div class="frame_title">营销相关</div>
		        <div class="frame_content">
		            <table class="ptable" cellspacing="0" cellpadding="0">
						<tr>
							<th class="tl">
								分类Logo：
							</th>
							<td class="tr">
								<FTB:FREETEXTBOX id="ftbLogo" runat="Server" Width="450px" Height="150px" ImageGalleryPath="Upload/"
									ToolbarType="OfficeXP" ButtonPath="images/ftb/officeXP/" ButtonDownImage="True" ButtonOverImage="True"></FTB:FREETEXTBOX>
							</td>
						</tr>
						<tr>
							<th class="tl">
								商品内广告：
							</th>
							<td class="tr">
								<FTB:FREETEXTBOX id="ftbAD" runat="Server" Width="450px" Height="150px" ImageGalleryPath="Upload/"
									ToolbarType="OfficeXP" ButtonPath="images/ftb/officeXP/" ButtonDownImage="True" ButtonOverImage="True"></FTB:FREETEXTBOX>
							</td>
						</tr>
						<tr>
							<th class="tl">
								列表顶部广告：
							</th>
							<td class="tr">
								<FTB:FREETEXTBOX id="ftbTopAD" runat="Server" Width="450px" Height="150px" ImageGalleryPath="Upload/"
									ToolbarType="OfficeXP" ButtonPath="images/ftb/officeXP/" ButtonDownImage="True" ButtonOverImage="True"></FTB:FREETEXTBOX>
							</td>
						</tr>
					</table>
		        </div>
	        </div>	        		
		</div>
		<div class="save">
			<asp:Button id="btnSave" OnClick="btnSave_Click" runat="server" Text="保存" CssClass="inputbtn"></asp:Button>
			<asp:Button id="btnCancel" OnClick="btnCancel_Click" runat="server" Text="取消" CausesValidation="False" CssClass="inputbtn"></asp:Button>
		</div>
		</form>
		</div>
	</div>
</body>
</HTML>
