<%@ page language="C#" masterpagefile="MyShopMasterPage.master" autoeventwireup="true" inherits="Member_EditProducts, mallz" enableeventvalidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript" language="javascript" src="../Js/MAllZ_ShopClass.js"></script>
<script type="text/javascript" language="javascript" src="../Js/MAllZ_ShopSaleProduct.js"></script>
<script type="text/javascript" language="javascript" src="../Js/SaleProduct.js"></script>
<script type="text/javascript" language="javascript" src="../Js/MAllZ_Calendar.js"></script>

<script language="javascript" type="text/javascript">
function checkall()
{
    var obj=document.all("cbselect");
    for(var i=0;i<obj.length;i++){
        obj[i].checked=true;
    }
    return false;
}

function notcheck()
{
  var obj=document.all("cbselect");
    for(var i=0;i<obj.length;i++){
        obj[i].checked=!(obj[i].checked);
    }
}

function selectProductPublishTime1()
{
    if(document.getElementById("ctl00_ContentPlaceHolder1_ProductPublishTime_1").checked)
    {
        document.getElementById("PublishStartTr").style.display="";
    }else{
        document.getElementById("PublishStartTr").style.display="none";
    }
}

</script>

<div class="pageTitle">
批量修改商品属性
<br />

    <asp:Literal ID="TxtOrderFormNum" runat="server" /></div>
<div id="order_content">
   <table class="ShopOrderStyle">
   <caption>商品基本信息</caption>
   <tr><td style="width:1%" align="right">
       <input id="Checkbox18" name="cbselect" type="checkbox" value="0" /></td><td class="OrderTitle">商品单位：</td><td style="width:30%">
        <asp:TextBox ID="TxtPuint" runat="server" Width="40px" Text="件" MaxLength="2" />
                        <select onchange='document.getElementById("ctl00$ContentPlaceHolder1$TxtPuint").value=this.value' name="selectmsg">
                            <option value="件" selected="selected">件</option>
                            <option value="个">个</option>
                            <option value="台">台</option>
                            <option value="批">批</option>
                            <option value="箱">箱</option>
                            <option value="本">本</option>
                            <option value="双">双</option>
                            <option value="瓶">瓶</option>
                            <option value="">其它</option>
                        </select></td>
       <td align="right">
           <input id="Checkbox1" name="cbselect" type="checkbox" value="1" /></td><td class="OrderTitle">
           新旧程度：</td><td style="width:30%">
               <asp:RadioButtonList ID="NewDegree" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal">
                    <asp:ListItem Value="0" Text=" 全新" Selected="True" />
                    <asp:ListItem Value="1" Text=" 二手" />
                </asp:RadioButtonList>
       </td>
       </tr>
       
       <tr><td align="right">
           <input id="Checkbox2" name="cbselect" runat="server" type="checkbox" value="2" /></td><td class="OrderTitle" style="width:5%">
           商品数量：</td><td style="width:30%">
               <asp:TextBox ID="ProductStock" runat="server" Width="41px">1</asp:TextBox>
               <asp:RequiredFieldValidator ID="rfv3" runat="server" ControlToValidate="ProductStock" Display="Dynamic" ErrorMessage="请输入商品数量"></asp:RequiredFieldValidator>
                   <asp:RangeValidator ID="rav_2" runat="server" ControlToValidate="ProductStock" Display="Dynamic"  ErrorMessage="输入数量必须为整数" MaximumValue="99999999" MinimumValue="1" Type="Integer"></asp:RangeValidator></td>
           <td align="right">
               <input id="Checkbox8" name="cbselect" type="checkbox" value="3" /></td><td class="OrderTitle" style="width:5%">
           所 在 地：</td><td style="width:30%">
               <MZ:ProvinceCity ID="ProvinceCity" runat="server" />
           </td></tr>
       <tr><td align="right">
           <input id="Checkbox3" name="cbselect" type="checkbox" value="4" /></td><td class="OrderTitle" style="width:5%">
            有无发票：</td><td style="width:30%">
                <asp:RadioButtonList ID="NeedInvoice" runat="server" RepeatDirection="Horizontal"
                    RepeatLayout="Flow">
                    <asp:ListItem Text="有" Value="1"></asp:ListItem>
                    <asp:ListItem Selected="True" Text="无" Value="0"></asp:ListItem>
                </asp:RadioButtonList></td>
           <td align="right">
               <input id="Checkbox9" name="cbselect" type="checkbox" value="5" /></td><td class="OrderTitle" style="width:5%">
           发票税率：</td><td style="width:30%">
               <asp:TextBox ID="TxtTaxRate" runat="server" MaxLength="3" Width="53px">7</asp:TextBox> %
               <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtTaxRate" Display="Dynamic" ErrorMessage="发票税率不能空">
               </asp:RequiredFieldValidator><asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="TxtTaxRate" Display="Dynamic" ErrorMessage="必须为非负数" MaximumValue="100" MinimumValue="0" Type="Integer"></asp:RangeValidator></td>
           </tr>
       <tr><td align="right">
           <input id="Checkbox4" name="cbselect" type="checkbox" value="6" /></td><td class="OrderTitle" style="width:5%">
           有无保修：</td><td style="width:30%">
               <asp:RadioButtonList ID="Guarantee" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                   <asp:ListItem Text="有" Value="1"></asp:ListItem>
                   <asp:ListItem Selected="True" Text="无" Value="0"></asp:ListItem>
               </asp:RadioButtonList></td>
           <td style="width:1%" align="right"></td><td class="OrderTitle" style="width:5%">
           </td><td style="width:30%"></td>
           </tr>
    </table>
    <br />
    
    <table class="ShopOrderStyle">
    <caption>销售设置</caption>
    <tr>
    <td style="width:1%" align="right">
        <input id="Checkbox5" name="cbselect" type="checkbox" value="8" /></td>
    <td class="OrderTitle">
        支付方式：</td>
    <td>
        <asp:CheckBoxList ID="CheckBoxList_OnlinePayType" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
            <asp:ListItem Value="0" Selected="True" Enabled="false">商城帐户支付</asp:ListItem>
        </asp:CheckBoxList>
        <asp:label runat="server" text="" id = "paytypeText" style="color:red"/>
    </td>
    <td><a href="javascript:void(0)" onclick="OpennewWindow('Index.aspx?mainurl=Shop_PaymentType.aspx?GoUrl=/SaleProduct.aspx');">设置支付方式</a></td>
    </tr>
        <tr>
            <td align="right" style="width: 1%">
                <input id="Checkbox6" name="cbselect" type="checkbox" value="9" /></td>
            <td class="OrderTitle">
                送货方式：</td>
            <td align="left">
                <asp:RadioButtonList ID="Radio_DeliverPayType" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" >
	               <asp:ListItem Text="买家承担运费" Value="1" onclick="javascript:{if(this.checked)document.getElementById('deliver_template').style.display='';}" />
	               <asp:ListItem Text="卖家承担运费" Value="0" Selected="True" onclick="javascript:{if(this.checked)document.getElementById('deliver_template').style.display='none';}" />
	               <asp:ListItem Text="货到买家承担" Value="2" onclick="javascript:{if(this.checked)document.getElementById('deliver_template').style.display='';}" />
	            </asp:RadioButtonList>
	            <div id="deliver_template" style="width:80%; border:solid 1px gray; background:#eeeeee; clear:both; padding:5px; display:none;">
	               选择运费模板：<br />
	               <asp:RadioButtonList ID="CheckBoxList_DeliverType" runat="server"  RepeatLayout="Flow"/>
                   <asp:label runat="server" text="" id="deliverText" style="color:red"/>
	            </div>
            </td>
            <td>
            <a href="javascript:void(0)" onclick="OpennewWindow('Index.aspx?mainurl=Shop_AddDeliver.aspx?action=add&from=publish');">
                            设置送货方式</a></td>
                            
                <script type="text/javascript">
                function OpennewWindow(url)
                {
                   var win = window.open(url,"mywin", "menubar=no,width=960,height=700,resizeable=yes");

                }
                </script>                
        </tr>
    </table>
    
    <br />
    <table  class="ShopOrderStyle">
    <caption>其它信息</caption>
    <tr>
    <td style="width:1%">
        <input id="Checkbox7" name="cbselect" type="checkbox" value="10" /></td>
    <td class="OrderTitle">
        有效期：</td>
    <td style="width:30%"><asp:DropDownList ID="ValidDay" runat="server">
        </asp:DropDownList> 天</td>
        <td style="width:1%">
            <input id="Checkbox12" name="cbselect" type="checkbox" value="11" /></td>
    <td class="OrderTitle">开始时间：</td>
    <td style="width:30%">
    <asp:RadioButtonList ID="ProductPublishTime" onclick="return selectProductPublishTime1()"
                            runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Text="立即" Value="1" />
                            <asp:ListItem Text="设定时间" Value="2" Selected="True" />
                            <asp:ListItem Text="放入仓库" Value="0" />
                        </asp:RadioButtonList><br />
                        <div id="PublishStartTr" >
                            <asp:TextBox ID="PublishStartDay" runat="server" Width="100px"  Height="16px"  ReadOnly="true"/> 日
                            <asp:DropDownList ID="PublishStartHour" runat="server">
                                <asp:ListItem Text="0" Value="00" />
                                <asp:ListItem Text="1" Value="01" />
                                <asp:ListItem Text="2" Value="02" />
                                <asp:ListItem Text="3" Value="03" />
                                <asp:ListItem Text="4" Value="04" />
                                <asp:ListItem Text="5" Value="05" />
                                <asp:ListItem Text="6" Value="06" />
                                <asp:ListItem Text="7" Value="07" />
                                <asp:ListItem Text="8" Value="08" />
                                <asp:ListItem Text="9" Value="09" />
                                <asp:ListItem Text="10" Value="10" />
                                <asp:ListItem Text="11" Value="11" />
                                <asp:ListItem Text="12" Value="12" />
                                <asp:ListItem Text="13" Value="13" />
                                <asp:ListItem Text="14" Value="14" />
                                <asp:ListItem Text="15" Value="15" />
                                <asp:ListItem Text="16" Value="16" />
                                <asp:ListItem Text="17" Value="17" />
                                <asp:ListItem Text="18" Value="18" />
                                <asp:ListItem Text="19" Value="19" />
                                <asp:ListItem Text="20" Value="20" />
                                <asp:ListItem Text="21" Value="21" />
                                <asp:ListItem Text="22" Value="22" />
                                <asp:ListItem Text="23" Value="23" />
                            </asp:DropDownList> 时
                            <asp:DropDownList ID="PublishStartMin" runat="server">
                                <asp:ListItem Text="0" Value="0" />
                                <asp:ListItem Text="5" Value="05" />
                                <asp:ListItem Text="10" Value="10" />
                                <asp:ListItem Text="15" Value="15" />
                                <asp:ListItem Text="20" Value="20" />
                                <asp:ListItem Text="25" Value="25" />
                                <asp:ListItem Text="30" Value="30" />
                                <asp:ListItem Text="35" Value="35" />
                                <asp:ListItem Text="40" Value="40" />
                                <asp:ListItem Text="45" Value="45" />
                                <asp:ListItem Text="50" Value="50" />
                                <asp:ListItem Text="55" Value="55" />
                            </asp:DropDownList> 分
                            </div>
    </td>
    </tr>
    
    <tr>
    <td>
        <input id="Checkbox11" name="cbselect" type="checkbox" value="12" /></td>
    <td class="OrderTitle">
        自动重发：</td>
    <td>
        <asp:CheckBox ID="AutoPostBack" runat="server" Text="是" />
        (系统会帮您自动重发1次)</td>
    <td>
        <input id="Checkbox13" name="cbselect" type="checkbox" value="13" /></td>
    <td class="OrderTitle">
        橱窗推荐：</td>
    <td>
        <asp:CheckBox ID="IsElite" runat="server" Text="是" /></td>
    
    </tr>
    </table>
    <br />
    <div style="text-align:center">
        <input id="but_selectall" type="button" value=" 全 选 " onclick="return checkall()" />
        <input id="Button1" type="button" value=" 反 选 " onclick="return notcheck()" />
        <asp:Button ID="Button3" runat="server" Text=" 提 交 " OnClick="Button3_Click" />
    </div>
    </div><br />
<div style="text-align:center;color:Red">
小提示：选中的栏目为批量修改项
</div>
</asp:Content>

