<%@ Page Language="C#" MasterPageFile="MasterPage.Master" AutoEventWireup="true" CodeBehind="ProductGroupAdd.aspx.cs" Inherits="SocoShop.Web.Admin.ProductGroupAdd" %>
<%@ Register Namespace="SkyCES.EntLib" Assembly="SkyCES.EntLib" TagPrefix="SkyCES"%>
<%@ Import Namespace="SocoShop.Entity" %>
<%@ Import Namespace="SocoShop.Common" %>
<%@ Import Namespace="SocoShop.Business" %>
<asp:Content ID="MasterContent" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
<script language="javascript" type="text/javascript" src="/Admin/js/ProductAdd.js"></script>	
<script language="javascript" type="text/javascript" src="/Admin/js/ProductGroupAdd.js"></script>	
<script type="text/javascript" src="/Admin/Pop/lhgdialog_ex.js"></script>	 
<div class="position"><img src="/Admin/Style/Images/PositionIcon.png"  alt=""/>产品组<%=ShopCommon.GetAddUpdate()%></div>
<div class="add">	
	<ul>
		<li class="left">图片：</li>
		<li class="right"><SkyCES:TextBox ID="Photo" CssClass="input" runat="server" Width="400px" /></li>
	</ul>
	<ul>
		<li class="left">上传图片：</li>
		<li class="right"><iframe src="UploadAdd.aspx?Control=Photo&TableID=<%=ThemeActivityBLL.TableID %>&FilePath=ThemeActivityPhoto/Original" width="400" height="30px" frameborder="0" allowTransparency="true" scrolling="no"></iframe></li>
	</ul> 
	<ul>
		<li class="left">更多地址：</li>
		<li class="right"><SkyCES:TextBox ID="Link" CssClass="input" runat="server" Width="400px"/></li>
	</ul>
    <ul class="search">
        <li><asp:DropDownList ID="RelationClassID" runat="server" /> <asp:DropDownList ID="RelationBrandID" runat="server" /> <SkyCES:TextBox ID="ProductName" CssClass="input" runat="server" Height="20px" Width="150px" /> <input id="SearchRProduct" type="button" class="button" value=" 搜 索 " onclick="SearchRelationProduct()" /></li>
    </ul>
    <ul style=" text-align:center; overflow:hidden; height:310px">
        <li id="CandidateProductBox">
            <select id="ctl00_ContentPlaceHolder_CandidateProduct" name="ctl00$ContentPlaceHolder$CandidateProduct" style="width:260px;height:300px;" multiple="multiple" ></select>
        </li>
        <li style="margin:80px 10px 10px 10px">
            <input id="AddProductAll" type="button" class="button" value=">>"  onclick="AddAll('ctl00_ContentPlaceHolder_CandidateProduct','ctl00_ContentPlaceHolder_Product')" /><br /><br />
            <input id="AddProductSingle" type="button" class="button" value=">"  onclick="AddSingle('ctl00_ContentPlaceHolder_CandidateProduct','ctl00_ContentPlaceHolder_Product')" /><br /><br />
            <input id="DropProductSingle" type="button" class="button"  value="<" onclick="DropSingle('ctl00_ContentPlaceHolder_Product')" /><br /><br />
            <input id="DropProductAll" type="button" class="button" value="<<"  onclick="DropAll('ctl00_ContentPlaceHolder_Product')" /><br />
        </li>
        <li> 
            <asp:ListBox ID="Product" runat="server" SelectionMode="Multiple" Width="260px" Height="300px"></asp:ListBox>
        </li>
    </ul>
    <input type="hidden" name="RelationProductID" id="RelationProductID"/>
</div>
<div class="action">
    <asp:Button CssClass="button" ID="SubmitButton" Text=" 确 定 " runat="server"  OnClick="SubmitButton_Click" OnClientClick="return CheckSubmit()"/>
</div>
<script language="javascript" type="text/javascript">
    var action='<%=RequestHelper.GetQueryString<string>("Action")%>';
    var id='<%=RequestHelper.GetQueryString<string>("ID") %>';
     var themeActivityID='<%=RequestHelper.GetQueryString<string>("ThemeActivityID") %>';
    if(action=="Update"){
        ReadProductGroup(id,themeActivityID);
    }
</script>
</asp:Content>
