{layout:default} {class:Shop.Admin.agent.config}
<lbhead>
    <title>
        <%=Tag("参数设置") %>-<%=Tag("分销")%>-<%=site.title%></title>
</lbhead>
<lbpath>
    <h3 class="text-themecolor m-b-0 m-t-0"><%=Tag("参数设置")%></h3>
    <ol class="breadcrumb">
        <li class="breadcrumb-item"><a href="<%=site.AdminPath %>/Ajax/ajax_admin.aspx?__Action=MenuJump&pid=0"><%=Tag("管理首页")%></a></li>
        <li class="breadcrumb-item"><%=Tag("分销")%></li>
        <li class="breadcrumb-item active"><%=Tag("参数设置")%></li>
    </ol>
</lbpath>
<lbbody>
    <div class="col-12">
        <div class="card">
            <div class="card-body">
                <form action="javascript:SaveObj();" novalidate>
                    <div class="form-group">
                        <label for="IsUsedAgent_1"><%=Tag("推广功能")%>：</label>
                        <div class="input-group">
                            <label class="custom-control custom-radio m-r-20">
                                <input type="radio" id="IsUsedAgent_1" name="IsUsedAgent" value="1" class="custom-control-input" shop="true" <%=model.IsUsedAgent=="1"?"checked":"" %>>
                                <span class="custom-control-label"><%=Tag("开启")%></span>
                            </label>
                            <label class="custom-control custom-radio">
                                <input type="radio" id="IsUsedAgent_0" name="IsUsedAgent" value="0" class="custom-control-input" shop="true" <%=model.IsUsedAgent=="0"?"checked":"" %>>
                                <span class="custom-control-label"><%=Tag("关闭")%></span>
                            </label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="CommissionMoneyDays"><%=Tag("佣金冻结天数")%>：</label>
                        <input type="text" class="form-control" shop="true" id="CommissionMoneyDays" name="CommissionMoneyDays" value="<%=model.CommissionMoneyDays %>">
                    </div>
                    <div class="form-group">
                        <label for="Angent1_Commission"><%=Tag("一级佣金")%>：</label>
                        <input type="text" class="form-control" shop="true" id="Angent1_Commission" name="Angent1_Commission" value="<%=model.Angent1_Commission %>">
                        <small class="form-text text-muted"><%=Tag("订单商品利润金额")%>%</small>
                    </div>
                    <div class="form-group">
                        <label for="Angent2_Commission"><%=Tag("二级佣金")%>：</label>
                        <input type="text" class="form-control" shop="true" id="Angent2_Commission" name="Angent2_Commission" value="<%=model.Angent2_Commission %>">
                        <small class="form-text text-muted"><%=Tag("订单商品利润金额")%>%</small>
                    </div>
                    <div class="form-group">
                        <label for="Angent3_Commission"><%=Tag("三级佣金")%>：</label>
                        <input type="text" class="form-control" shop="true" id="Angent3_Commission" name="Angent3_Commission" value="<%=model.Angent3_Commission %>">
                        <small class="form-text text-muted"><%=Tag("订单商品利润金额")%>%</small>
                    </div>
                    <%if (PageReturnMsg == ""){%>
                    <button type="submit" class="btn btn-success"><i class="ti-check"></i> <%=Tag("保存")%></button>
                    <%}%>
                </form>
            </div>
        </div>
    </div>
    <script>
        function SaveObj() {
            var postData = GetFormJsonData("shop");
            var url="<%=site.AdminPath %>/ajax/ajax_agent.aspx?__Action=AgentConfig_Set";
            RequestAjax(url,postData,function(res){MsgBox(1, "<%=Tag("操作成功")%>", "")});
        }
    </script>
</lbbody>