<%@ Page Language="C#" AutoEventWireup="false" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Controls" Assembly="Hishop.Web.Controls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Management" Assembly="Hishop.Web.Management" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Validator" Assembly="Hishop.Web.Validator" %>
<%@ Import Namespace="Hishop.SystemServices" %>

<!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>
    <Hishop:HeadContainer ID="HeadContainer1" runat="server" />
    <Hishop:PageTitle ID="PageTitle1" runat="server" />
    <link rel="stylesheet" href="../../utility/validate/pagevalidator.css" type="text/css" />
    <link rel="stylesheet" href="../css/Hishopv5.css" type="text/css" />
    <script type="text/javascript" src="../../utility/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../utility/validate/pagevalidator.js"></script>
    
    <script type="text/javascript" src="../js/Hishopv5.js"></script>
</head>
<body>
    <form id="form1" runat="server">

        <div>
           
            <div class="PageTitleArea">
                <div class="PageTitle">
                    <asp:Literal ID="lblPageTitle" runat="server" Text="<%$ Resources:EditShippingMode, IDS_PageTitle %>"></asp:Literal>
                </div>
                <div style="width: 80%;">
                    <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:EditShippingMode, IDS_PageDesc %>"></asp:Literal>
                </div>
            </div>
            
                   <Hishop:EditShippingMode ID="EditShippingMode" runat="server">
           <SkinTemplate>
                        <Hishop:StatusMessage id="Status" runat="server" Visible="False" />
                <div class="grdGroupFormList">
                    <div class="grdGroupList">
                            <Hishop:ShippingModesView ID="shippingModeView" runat="server" >
                            <SkinTemplate>

<table style="width: 100%" cellspacing="0" cellpadding="0" class="formTableList">
   <tr>
        <td class="leftTD">
            <asp:Literal ID="lblIsCOD" runat="server" Text="<%$ Resources:ShippingModeView, IDS_FromField_lblPayMemt %>"></asp:Literal>：
        </td>
        <td class="rightTD">
            <asp:CheckBoxList ID="chkPayment"  runat="server" />
        </td>
        <td class="rightTD">
            <div class="msgNormal">
                <asp:Literal ID="lblIsCODDespler" runat="server" Text="<%$Resources:ShippingModeView,IDM_lblPayMent_Help %>" />
            </div>
        </td>
    </tr>
    <tr>
        <td class="leftTD">
            <asp:Literal ID="lblModeName" runat="server" Text="<%$ Resources:ShippingModeView, IDS_FromField_lblModeName %>"></asp:Literal>：</td>
        <td class="rightTD">
            <asp:TextBox ID="txtModeName" runat="server"></asp:TextBox>
        </td>
        <td class="rightTD">
            <div id="txtModeNameTip" runat="server" style="width: 75%">
            </div>
            <Hishop:ValidateTarget ID="ValidateTargetModeName" runat="server" ContainerId="ValidatorContainer"
                ControlToValidate="txtModeName" Description="<%$ Resources:ShippingModeView, IDS_Message_ModeName_Descrption %>">
                <Validators>
                    <Hishop:InputStringClientValidator ErrorMessage="<%$ Resources:ShippingModeView, IDS_Message_ModeName_Descrption %>"
                        LowerBound="1" UpperBound="100" />
                </Validators>
            </Hishop:ValidateTarget>
        </td>
    </tr>
    <tr>
        <td class="leftTD">
            <asp:Literal ID="lblWeight" runat="server" Text="<%$ Resources:ShippingModeView, IDS_FromField_lblWeight %>"></asp:Literal>：
        </td>
        <td class="rightTD">
            <asp:TextBox ID="txtWeight" runat="server"></asp:TextBox>(<asp:Literal ID="lblKe"
                runat="server" Text='<%$ Resources:ShippingModeView, IDS_FromField_lblKe %>'></asp:Literal>)
        </td>
        <td class="rightTD">
            <div id="txtWeightTip" runat="server" style="width: 75%">
            </div>
            <Hishop:ValidateTarget ID="ValidateTargetWeight" runat="server" ContainerId="ValidatorContainer"
                ControlToValidate="txtWeight" Description="<%$ Resources:ShippingModeView, IDS_Message_Weight_Descrption %>">
                <Validators>
                    <Hishop:InputNumberClientValidator ErrorMessage="<%$ Resources:ShippingModeView, IDS_Message_Weight_Descrption %>" />
                </Validators>
            </Hishop:ValidateTarget>
        </td>
    </tr>
    <tr>
        <td class="leftTD">
            <asp:Literal ID="lblAddWeight" runat="server" Text="<%$ Resources:ShippingModeView, IDS_FromField_lblAddWeight %>"></asp:Literal>：</td>
        <td class="rightTD">
            <asp:TextBox ID="txtAddWeight" runat="server"></asp:TextBox>(<asp:Literal ID="lblKeToo"
                runat="server" Text='<%$ Resources:ShippingModeView, IDS_FromField_lblKe %>'></asp:Literal>)
        </td>
        <td class="rightTD">
            <div id="txtAddWeightTip" runat="server" style="width: 75%">
            </div>
            <Hishop:ValidateTarget ID="ValidateTargetAddWeight" runat="server" ContainerId="ValidatorContainer"
                ControlToValidate="txtAddWeight" Description="<%$ Resources:ShippingModeView, IDS_Message_AddWeight_Descrption %>">
                <Validators>
                    <Hishop:InputNumberClientValidator ErrorMessage="<%$ Resources:ShippingModeView, IDS_Message_AddWeight_Descrption %>" />
                </Validators>
            </Hishop:ValidateTarget>
        </td>
    </tr>
    <tr>
        <td class="leftTD">
            <asp:Literal ID="lblPrice" runat="server" Text="<%$ Resources:ShippingModeView, IDS_FromField_lblPrice %>"></asp:Literal>：</td>
        <td class="rightTD">
            <asp:TextBox ID="txtPrice" runat="server" Columns="5"></asp:TextBox>
        </td>
        <td class="rightTD">
            <div id="txtPriceTip" runat="server" style="width: 75%">
            </div>
            <Hishop:ValidateTarget ID="ValidateTargetPrice" runat="server" ContainerId="ValidatorContainer"
                ControlToValidate="txtPrice" Description="<%$ Resources:ShippingModeView, IDS_Message_Price_Descrption %>">
                <Validators>
                    <Hishop:InputMoneyClientValidator ErrorMessage="<%$ Resources:ShippingModeView, IDS_Message_Price_Descrption %>" />
                </Validators>
            </Hishop:ValidateTarget>
        </td>
    </tr>
    <tr>
        <td class="leftTD">
            <asp:Literal ID="lblAddPrice" runat="server" Text="<%$ Resources:ShippingModeView, IDS_FromField_lblAddPrice %>"></asp:Literal>：</td>
        <td class="rightTD">
            <asp:TextBox ID="txtAddPrice" runat="server" Columns="5"></asp:TextBox>
        </td>
        <td class="rightTD">
            <div id="txtAddPriceTip" runat="server" style="width: 75%">
            </div>
            <Hishop:ValidateTarget ID="ValidateTarget1" runat="server" ContainerId="ValidatorContainer"
                ControlToValidate="txtAddPrice" Description="<%$ Resources:ShippingModeView, IDS_Message_AddPrice_Descrption %>">
                <Validators>
                    <Hishop:InputMoneyClientValidator ErrorMessage="<%$ Resources:ShippingModeView, IDS_Message_AddPrice_Descrption %>" />
                </Validators>
            </Hishop:ValidateTarget>
        </td>
    </tr>
    <tr>
        <td class="leftTD">
            <asp:Literal ID="lblDisplaySequence" runat="server" Text="<%$ Resources:ShippingModeView, IDS_FromField_lblDisplaySequence %>"></asp:Literal>：
        </td>
        <td class="rightTD">
            <asp:TextBox ID="txtDisplaySequence" runat="server" Text="1"></asp:TextBox>
 
        </td>
        <td class="rightTD">
            <div id="txtDisplaySequenceTip" runat="server" style="width: 75%">
            </div>
            <Hishop:ValidateTarget ID="ValidateTargetSequence" runat="server" ContainerId="ValidatorContainer"
                ControlToValidate="txtDisplaySequence" Description="<%$ Resources:ShippingModeView, IDS_Message_DisplaySequence_Descrption %>">
                <Validators>
                    <Hishop:InputNumberClientValidator ErrorMessage="<%$ Resources:ShippingModeView, IDS_Message_DisplaySequence_Descrption %>" />
                </Validators>
            </Hishop:ValidateTarget>
        </td>
    </tr>
</table>
        <table style="width: 100%" cellspacing="0" cellpadding="0" class="formTableList">
            <tr>
                <td class="leftTD">
                    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:ShippingModeView, IDS_FromField_RegionPrice %>"></asp:Literal>：
                </td>
                <td class="rightTD" colspan="2">
                    <asp:GridView ID="grdRegion" runat="server" AutoGenerateColumns="false" ShowHeader="true"
                        DataKeyNames="RegionsId" CssClass="GridViewStyle" GridLines="None" RowStyle-CssClass="grdrow"
                        HeaderStyle-CssClass="GridViewHeaderStyle">
                        <Columns>
                            <asp:TemplateField HeaderText="<%$ Resources:ShippingModeView, IDS_Header_Region %>">
                                <ItemTemplate>
                                    <asp:TextBox ID="txtRegionvalue" runat="server" Text='<%# Eval("Regions")%>' onclick="checkexBox(this);" ReadOnly="true" Style="width: 75%"></asp:TextBox>
                                    <asp:TextBox ID="txtRegionvalue_Id" runat="server" Text='<%# Eval("RegionsId")%>' Style="display: none"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="<%$ Resources:ShippingModeView, IDS_Header_RegionPrice %>">
                                <ItemStyle Width="80px" />
                                <ItemTemplate>
                                    <asp:TextBox ID="txtModeRegionPrice" runat="server" Text='<%# Eval("RegionPrice") %>' Columns="5"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="<%$ Resources:ShippingModeView, IDS_Header_RegionAddPrice %>">
                                <ItemStyle Width="80px" />
                                <ItemTemplate>
                                    <asp:TextBox ID="txtModeRegionAddPrice" runat="server" Text='<%# Eval("RegionAddPrice") %>'
                                        Columns="5"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemStyle Width="50px" />
                                <ItemTemplate>
                                    <asp:LinkButton ID="lkbDelete" runat="server" CommandName="Delete" Text="<%$ Resources:Resources, IDS_Button_Delete %>"
                                        CssClass="SmallCommonTextButton"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <table style="width: 100%" cellspacing="0" cellpadding="0">
                        <tr align="left">
                            <td>
                                <asp:Literal ID="Label2" runat="server" Text="<%$ Resources:ShippingModeView, IDS_FromField_lblFor %>"></asp:Literal>：
                                <asp:TextBox ID="txtRegion_Id" runat="server" Style="display: none"></asp:TextBox>
                                <input id="txtRegion" onclick="checkexBox(this);" readonly="true" runat="server"
                                    style="width: 300px" />
                                <asp:RequiredFieldValidator ID="valrRegion" runat="server" ControlToValidate="txtRegion_Id"
                                    ErrorMessage="*" ValidationGroup="validatRegion"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr align="left">
                            <td>
                                <asp:Literal ID="lblRegionPrice" runat="server" Text="<%$ Resources:ShippingModeView, IDS_FromField_lblRegionPrice %>"></asp:Literal>：
                                <asp:TextBox ID="txtRegionPrice" runat="server" Columns="15"></asp:TextBox>

                                <asp:RequiredFieldValidator ID="ValrRegionPrice" runat="server" ControlToValidate="txtRegionPrice"
                                    ErrorMessage="*" ValidationGroup="validatRegion"></asp:RequiredFieldValidator>
                                <asp:Literal ID="lblAddRegionPrice" runat="server" Text="<%$ Resources:ShippingModeView, IDS_FromField_lblAddRegionPrice %>"></asp:Literal>：
                                <asp:TextBox ID="txtAddRegionPrice" runat="server" Columns="15"></asp:TextBox>

                                <asp:RequiredFieldValidator ID="valraddRegionPrice" runat="server" ControlToValidate="txtAddRegionPrice"
                                    ErrorMessage="*" ValidationGroup="validatRegion"></asp:RequiredFieldValidator>
                                <asp:Button ID="btnAdd" runat="server" Text="<%$ Resources:ShippingModeView, IDS_Button_btnAdd %>"
                                    CssClass="inp_L1" ValidationGroup="validatRegion" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="leftTD">
                    <asp:Literal ID="Label1" runat="server" Text="<%$ Resources:ManageShippingMode, IDS_FromField_lblDescription %>"></asp:Literal>
                </td>
                <td class="rightTD" colspan="2">
                    <FCKeditorV2:FCKeditor ID="fck" runat="server" Width="99%" EnableXHTML="true" EnableSourceXHTML="true"
                        BasePath="~/FCKeditor/" Height="200px">
                    </FCKeditorV2:FCKeditor>
                </td>
            </tr>
        </table>

<!-- 选择地区 -->
<div id="layerArea" class="layerArea">
    <div class="closeBotton">
        <a style="cursor:pointer" onclick="closeLayerArea()">×</a>
    </div>
    <Hishop:RegionArea ID="regionArea" runat="server" >
    <SkinTemplate>
        <div id="areaItems"> 
        <div id="contents" runat="server" style="width:350px"></div>
        </div>
         <div class="lines"></div> 
        <div id="mainCheckBoxList" class="mainCheckBoxList">
        <div id="contentRegion" runat="server">
        </div>
        </div>
    </SkinTemplate>
    </Hishop:RegionArea>
    <input type="button" id="OK" class="inp_L1" idvaluebox="" value="确定" onclick="submitAllValue();" />
    <input type="button" id="cancel" class="submitBotton" value="取消" onclick="closeLayerArea();" />
</div>
                                </SkinTemplate>
                            </Hishop:ShippingModesView>
                        </div>
                </div>
                <div>
                    <table style="width: 100%" cellspacing="0" cellpadding="0" class="formTableList">
                        <tr>
                            <td class="bottonLeftTD">
                                &nbsp;</td>
                            <td class="rightTD">
                                <table>
                                    <tr>
                                        <td valign="top">
                                            <asp:Button ID="btnUpDate" runat="server" Text="<%$ Resources:EditShippingMode, IDS_Button_UpDate %>"
                                                CssClass="inp_L1" OnClientClick="return PageIsValid()" ValidationGroup="validat" /></td>
                                        <td>
                                            <div class="return_inp">
                                                <a href='<%=Globals.GetSiteUrls().UrlData.FormatUrl("admin_ShippingModes") %>'>
                                                    <asp:Literal ID="lblReturn" runat="server" Text="<%$ Resources:EditShippingMode, IDS_FromField_lblReturn %>"></asp:Literal></a>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td class="rightTD">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </div>
           </SkinTemplate>
       </Hishop:EditShippingMode>
            
        </div>
        <br />
        <div style="text-align:center">
            <hr style="width:500px;" />
            <Hishop:SiteCopyright runat="server" />
        </div>
        <br />
        <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
    </form>
</body>
</html>
 