{layout:simple} {class:Shop.Admin.storeConfig.Pay_Edit_window}
<lbbody>
<%=Shop.Bussiness.Language.AdminLanguageTab("") %>
<table class="table">
    <%foreach (DB.LebiShop.Lebi_Language_Code lang in Shop.Bussiness.Language.Languages())
      {%>
    <tbody id="lang_<%=lang.Code %>" class="lang_table" width="100%" style="display: none">
        <tr>
            <th style="width: 20%;">
                <%=Tag("名称")%>：
            </th>
            <td style="width: 80%;">
                <input type="text" shop="true"  id="Name<%=lang.Code %>" name="Name<%=lang.Code %>" class="input" style="width:200px" value="<%=Shop.Bussiness.Language.Content(model.Name,lang.Code) %>" />
            </td>
        </tr>
        <tr>
            <th style="vertical-align:top">
                <%=Tag("描述")%>：
            </th>
            <td>
                <textarea shop="true" class="input" style="width:400px;height:60px;" id="Description<%=lang.Code %>" name="Description<%=lang.Code %>"><%=Shop.Bussiness.Language.Content(model.Description,lang.Code) %></textarea>
                <div class="tools clear">
                    <ul>
                        <li class="plus"><a href="javascript:void(0);" onclick="javascript:resizeEditor('Description<%=lang.Code %>',100);"><b></b><span><%=Tag("展开")%></span></a></li>
                        <li class="minus"><a href="javascript:void(0);" onclick="javascript:resizeEditor('Description<%=lang.Code %>',-100)"><b></b><span><%=Tag("收缩")%></span></a></li>
                    </ul>
                </div>
            </td>
        </tr>
    </tbody>
    <%} %>
    </table>
    <ul id="tablistmain"><li class="selected"><a><span><%=Tag("通用信息")%></span></a></li></ul>
    <table class="table">
    <tr>
        <th style="width: 20%;">
            <%=Tag("是否启用")%>：
        </th>
        <td>
            <label><input type="radio" name="IsUsed" shop="true" value="1" <%=model.IsUsed==1?"checked":"" %> /><%=Tag("是")%></label>
            <label><input type="radio" name="IsUsed" shop="true" value="0" <%=model.IsUsed==0?"checked":"" %> /><%=Tag("否")%></label>
        </td>
    </tr>
    <%if(model.Code!="OnlinePay" && model.Code!="OfflinePay" ){%>
    <tr>
        <th>
            <%=Tag("系统代码")%>：
        </th>
        <td style="text-align: left;">
            <input type="text" class="input" shop="true" name="Code" id="Code" value="<%=model.Code %>" style="width: 100px;" />
        </td>
    </tr>
    <%}%>
    <%if (model.Code=="OfflinePay"){ %>
    <tr>
        <th>
            <%=Tag("手续费")%>：
        </th>
        <td style="text-align: left;">
            <input type="text" class="input" shop="true" name="FeeRate" id="FeeRate" value="<%=model.FeeRate %>" onkeyup="value=value.replace(/[^\d\.]/g,'');" style="width: 70px;" /> %
        </td>
    </tr>
    <%} %>
    <tr>
        <th>
            <%=Tag("排序序号")%>：
        </th>
        <td style="text-align: left;">
            <input type="text" class="input" shop="true" name="Sort" id="Sort" value="<%=model.Sort %>" style="width: 70px;" onkeyup="value=value.replace(/[^\d]/g,'')" />
        </td>
    </tr>
    <tr>
        <td colspan="2" class="action">
            <div class="tools tools-m">
                <ul>
                    <li class="submit"><a href="javascript:void(0);" onclick="SaveObj();"><b></b><span><%=Tag("保存")%></span></a></li>
                </ul>
            </div>
        </td>
    </tr>
</table>
<script type="text/javascript">
    LanguageTab_EditPage('<%=CurrentLanguage.Code %>'); //加载默认语言
    function SaveObj() {
        var postData = GetFormJsonData("shop");
        if (!CheckForm("shop", "span"))
            return false;
        var url = "<%=site.AdminPath %>/ajax/ajax_site.aspx?__Action=Pay_Edit&id=<%=model.id %>";
        RequestAjax(url,postData,function(){MsgBox(1, "<%=Tag("操作成功")%>", "?")});
    }
</script>
</lbbody>