<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FloorAdd.aspx.cs" Inherits="XpShop.Manage.FloorAdd" %>
<%@	Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox"	%>
<%@ Register TagPrefix="uc1" TagName="Commond" Src="Modules/Commond.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>橱窗添加</title>
    <!--#include file="inc/head.inc"-->	
    <script type="text/javascript" src="inc/commond.js"></script>
    <script src="../inc/jquery.validate.js" type="text/javascript"></script>
    <script src="../inc/messages_cn.js" type="text/javascript"></script>
    <script type="text/javascript" src="../inc/jquery.livequery.js"></script>
    <script type="text/javascript" src="inc/flooradd.js"></script>
</head>
<body>
<form id="form1" runat="server">
<uc1:Commond id="Commond1" runat="server"></uc1:Commond>
<input type="hidden" value="<%=selectedPids%>" id="check_product_ids" name="check_product_ids">
<input type="hidden" value="1" id="PageNo" name="PageNo">
<div class="container">
	<div class="sub_container">
		<div class="sub_container_title"><a href="<%=AdminDefault%>" target="_top">桌面</a><img src="images/admin_title.jpg" height="9" width="8" align="absMiddle">导航栏添加</div>
		<div class="sub_container_content">
		    <div class="frame">
			    <div id="step1" class="frame_title pmt_rule_title hand">第一步：设置促销名称、时间等信息</div>
			    <div class="frame_content pmt_rule_content">
			        <table cellspacing="0" cellpadding="0" class="ptable">
						<tr>
						    <th class="tl"><em>*</em>橱窗名称：</th>
						    <td class="tr">
							    <asp:TextBox ID="txtFloorName" runat="server" Text=""></asp:TextBox><span class="input-remark">25个汉字（50个字符）内</span>
						    </td>
					    </tr>
					    <tr>
						    <th class="tl"><em>*</em>所属频道：</th>
						    <td class="tr">
						        <asp:DropDownList ID="ddlTopCat" runat="server"></asp:DropDownList>
						    </td>
					    </tr>
					    <tr>
						    <th class="tl">右上角广告：</th>
						    <td class="tr">
						        <FTB:FREETEXTBOX id="ftbTopAD" runat="Server" Width="600px" ButtonOverImage="True" ButtonDownImage="True" ButtonPath="../images/ftb/officeXP/" ToolbarType="OfficeXP" AutoConfigure="XpShopUI"></FTB:FREETEXTBOX>
                            </td>
					    </tr>
                        <tr>
						    <th class="tl">主体左边广告：</th>
						    <td class="tr">
						        <FTB:FREETEXTBOX id="ftbContentAD" runat="Server" Width="600px" ButtonOverImage="True" ButtonDownImage="True" ButtonPath="../images/ftb/officeXP/" ToolbarType="OfficeXP" AutoConfigure="XpShopUI"></FTB:FREETEXTBOX>
						    </td>
					    </tr>
                        <tr>
						    <th class="tl">顶部背景图片：</th>
						    <td class="tr">
						        <div class="pic-manager">
						            <%if (floorDetail != null && floorDetail.Backgroundimage != ""){ %>
                                    <div class="preview" style="width:600px;height:28px;"><img style="width:100%;height:28px;" src="<%=webSite%>Upload/Supplier/0/<%=floorDetail.Backgroundimage%>"/></div>
						            <%}else{%>
                                    <div class="preview" style="width:600px;height:28px;"></div>
						            <%} %>
                                    <input id="fileBackgroundimage" type="file" name="fileBackgroundimage" class="file" runat="server" size="20" />
                                    <asp:HiddenField ID="hiddenBackgroundimage" runat="server" />
                                    <span class="input-remark">(背景图为790*28px)
                                    </span>
						        </div>
                           </td>
					    </tr>
					    <tr>
						    <th class="tl"><em>*</em>排序：</th>
						    <td class="tr">
                                <asp:TextBox ID="txtSort" runat="server"></asp:TextBox><span class="input-remark">数字越小排在越前</span>
                            </td>
					    </tr>
					    <tr>
						    <th class="tl"><em>*</em>状态：</th>
						    <td class="tr">
                                <asp:RadioButton ID="rbtnStatusOn" runat="server" Text="显示" Checked="true" GroupName="Status" />
                                <asp:RadioButton ID="rbtnStatusOff" runat="server" Text="不显示"  GroupName="Status" />
                            </td>
					    </tr>
                        <tr>
                            <td colspan="2" class="center"><input type="button" value=" 确  定 " id="btnStep1" name="btnStep1"/></td>
                        </tr>
				    </table>
				</div>
			</div>
			<div class="frame">
		        <div id="step2" class="frame_title pmt_rule_title hand">第二步：选择橱窗要展示的商品</div>
		        <div id="step_2" class="frame_content pmt_rule_content hide" style="padding:10px">
		        <table>
                    <tbody>
                    <tr align="left">
                        <td width="70px">商品名称：</td>
                        <td width="180px"><input type="text" value="" id="search_name" name="search_name"></td>
                        <td style="text-align:right">商品ID：</td>
                        <td width="600px"><input type="text" value="" id="productids" name="productids" size="50"> 可输入多个商品id，用半角逗号隔开。</td>
                        <td></td>
                    </tr>
                    <tr style="text-algin:left;height: 35px">
                        <td width="70px">店内分类：</td>
                        <td width="180px">
                            <select name="subcat" id="subcat">
                            <%=BindCategories() %>
                            </select>
                      </td>
                      <td style="text-align:right">品    牌：</td>
                      <td width="600px">
                            <select id="brand" name="brand">
                                <%=BindBrand("0")%>
                            </select>
                      </td>
                      <td style=text-align: right;">
                            <input type="button" id="search_product" name="search_product" value=" 查询 ">
                            <input type="hidden" value="0" id="is_search_product" name="is_search_product">
                      </td>
                </tr>
                </tbody>
               </table>
               <div id="productlist"></div>
                <div style="text-align: center"><input type="button" value=" 完成设置 " id="btnStep2" name="btnStep2"/></div>
	        </div>
	    </div>
	        <div class="frame">
	            <div id="step3" class="frame_title pmt_rule_title hand">第三步：设置商品排列顺序</div>
	            <div id="step_3" class="frame_content pmt_rule_content hide">
	                <table class="pptable">
                        <tbody id="step3_body">
                        <tr>
                            <th width="14%">缩略图</th>
                            <th width="16%">商品名称</th>
                            <th width="10%">排序</th>
                            <th width="10%">操作</th>
                        </tr>
                       <%if (dtFloorGoods != null && dtFloorGoods.Rows.Count > 0)
                       {%>
                        <%for (int i = 0; i < dtFloorGoods.Rows.Count; i++)
                       {%>
                        <tr id="newrow_<%=dtFloorGoods.Rows[i]["GoodsID"]%>">
                            <td><img height="50px" width="50px" src="<%=webSite%>upload/productimg/<%=dtFloorGoods.Rows[i]["ImgFolder"]%><%=dtFloorGoods.Rows[i]["ThumbnailImg"]%>"></td>
                            <td><a href="<%=webSite %>products/product-<%=dtFloorGoods.Rows[i]["ProductID"]%>.<%=config.html %>" target="_blank"><%=dtFloorGoods.Rows[i]["productName"]%></a></td>
                            <td>
                                <input type="text" size="5" name="sort" value="<%=dtFloorGoods.Rows[i]["Sort"]%>"/>
                                <input type="hidden" value="<%=dtFloorGoods.Rows[i]["ProductID"]%>" name="pids"/>
                                <input type="hidden" value="<%=dtFloorGoods.Rows[i]["GoodsID"]%>" name="gids"/>
                            </td>
                            <td><span value="<%=dtFloorGoods.Rows[i]["GoodsID"]%>" class="step3_cancle_product hand">取消</span></td>
                        </tr>
                        <%}}%>
                        </tbody>
                     </table>
                     <div style="text-align: center;margin: 30px auto 30px auto">
                        <asp:Button ID="btnSave" runat="server" Text=" 保存设置 " onclick="btnSave_Click" />
                     </div>
	            </div>
	        </div>
	        <div class="frame">
	            <div class="frame_title">提示：</div>
	            <div class="frame_content">
	            1.每个橱窗只能选择6个商品。
	            2.排序数字小的商品显示在前面。
                </div>
            </div>
        </div>
    </div>
</div>
</form>
</body>
</html>
