{layout:default} {class:Shop.Admin.theme.SMSTPL}
<lbhead>
    <title><%=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 active"><%=Tag("短信模板") %></li>
    </ol>
</lbpath>
<lbbody>
    <div class="col-xlg-2 col-lg-3 col-md-3">
        <div class="card">
            <div class="card-body">
                <div class="row">
                    <div class="card-body inbox-panel p-t-0 p-b-0">
                        <ul class="list-group list-group-full">
                            <li class="list-group-item<%if (type!="admin"){ %> active<%} %>"><a href="?type=user"><i class="ti-file"></i> <%=Tag("会员模板")%></a></li>
                            <li class="list-group-item<%if (type=="admin"){ %> active<%} %>"><a href="?type=admin"><i class="ti-file"></i> <%=Tag("管理员模板")%></a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-xlg-10 col-lg-9 col-md-9">
        <div class="card">
            <form action="javascript:SaveObj();" novalidate>
                <div class="col-md-12 col-sm-12 col-xs-12">
                    <ul class="nav nav-tabs customtab m-t-15" role="tablist">
                        <%
                        List
                        <DB.LebiShop.Lebi_Language_Code>
                            tablangs = Shop.Bussiness.Language.Languages();foreach (DB.LebiShop.Lebi_Language_Code lang in langs){
                            %>
                            <li class="nav-item"> <a class="nav-link <%if (tablangs.FirstOrDefault().Code == lang.Code){%>active show<%}%>" data-toggle="tab" href="#lang_<%=lang.Code %>" role="tab" aria-selected="true"><%=lang.Name %></a> </li>
                            <%
                            }
                            %>
                    </ul>
                    <div class="tab-content m-t-20">
                        <%
                        foreach (DB.LebiShop.Lebi_Language_Code lang in tablangs)
                        {%>
                        <div class="tab-pane <%if (tablangs.FirstOrDefault().Code == lang.Code){%>active show<%}%>" id="lang_<%=lang.Code %>" role="tabpanel">
                            <%if (type == "user"){ %>
                            <div class="form-group">
                                <label for="SMSTPL_newuser<%=lang.Code %>"><%=Tag("新用户注册")%>：</label>
                                <textarea id="SMSTPL_newuser<%=lang.Code %>" name="SMSTPL_newuser<%=lang.Code %>" class="form-control" style="height: 55px;" shop="true"><%=Shop.Bussiness.Language.Content(model.SMSTPL_newuser, lang.Code)%></textarea>
                            </div>
                            <div class="form-group">
                                <label for="SMSTPL_ordersubmit<%=lang.Code %>"><%=Tag("订单提交")%>：</label>
                                <textarea id="SMSTPL_ordersubmit<%=lang.Code %>" name="SMSTPL_ordersubmit<%=lang.Code %>" class="form-control" style="height: 55px;" shop="true"><%=Shop.Bussiness.Language.Content(model.SMSTPL_ordersubmit, lang.Code)%></textarea>
                            </div>
                            <div class="form-group">
                                <label for="SMSTPL_orderpickup<%=lang.Code %>"><%=Tag("订单自提确认")%>：</label>
                                <textarea id="SMSTPL_orderpickup<%=lang.Code %>" name="SMSTPL_orderpickup<%=lang.Code %>" class="form-control" style="height: 55px;" shop="true"><%=Shop.Bussiness.Language.Content(model.SMSTPL_orderpickup, lang.Code)%></textarea>
                            </div>
                            <div class="form-group">
                                <label for="SMSTPL_ordershipping<%=lang.Code %>"><%=Tag("订单发货")%>：</label>
                                <textarea id="SMSTPL_ordershipping<%=lang.Code %>" name="SMSTPL_ordershipping<%=lang.Code %>" class="form-control" style="height: 55px;" shop="true"><%=Shop.Bussiness.Language.Content(model.SMSTPL_ordershipping, lang.Code)%></textarea>
                            </div>
                            <div class="form-group">
                                <label for="SMSTPL_balance<%=lang.Code %>"><%=Tag("余额提醒")%>：</label>
                                <textarea id="SMSTPL_balance<%=lang.Code %>" name="SMSTPL_balance<%=lang.Code %>" class="form-control" style="height: 55px;" shop="true"><%=Shop.Bussiness.Language.Content(model.SMSTPL_balance, lang.Code)%></textarea>
                            </div>
                            <div class="form-group">
                                <label for="SMSTPL_getpwd<%=lang.Code %>"><%=Tag("找回密码")%>：</label>
                                <textarea id="SMSTPL_getpwd<%=lang.Code %>" name="SMSTPL_getpwd<%=lang.Code %>" class="form-control" style="height: 55px;" shop="true"><%=Shop.Bussiness.Language.Content(model.SMSTPL_getpwd, lang.Code)%></textarea>
                            </div>
                            <div class="form-group">
                                <label for="SMSTPL_getnewpwd<%=lang.Code %>"><%=Tag("获取新密码")%>：</label>
                                <textarea id="SMSTPL_getnewpwd<%=lang.Code %>" name="SMSTPL_getnewpwd<%=lang.Code %>" class="form-control" style="height: 55px;" shop="true"><%=Shop.Bussiness.Language.Content(model.SMSTPL_getnewpwd, lang.Code)%></textarea>
                            </div>
                            <div class="form-group">
                                <label for="SMSTPL_comment<%=lang.Code %>"><%=Tag("商品评论")%>：</label>
                                <textarea id="SMSTPL_comment<%=lang.Code %>" name="SMSTPL_comment<%=lang.Code %>" class="form-control" style="height: 55px;" shop="true"><%=Shop.Bussiness.Language.Content(model.SMSTPL_comment, lang.Code)%></textarea>
                            </div>
                            <div class="form-group">
                                <label for="SMSTPL_ask<%=lang.Code %>"><%=Tag("商品咨询")%>：</label>
                                <textarea id="SMSTPL_ask<%=lang.Code %>" name="SMSTPL_ask<%=lang.Code %>" class="form-control" style="height: 55px;" shop="true"><%=Shop.Bussiness.Language.Content(model.SMSTPL_ask, lang.Code)%></textarea>
                            </div>
                            <div class="form-group">
                                <label for="SMSTPL_message<%=lang.Code %>"><%=Tag("站内信")%>：</label>
                                <textarea id="SMSTPL_message<%=lang.Code %>" name="SMSTPL_message<%=lang.Code %>" class="form-control" style="height: 55px;" shop="true"><%=Shop.Bussiness.Language.Content(model.SMSTPL_message, lang.Code)%></textarea>
                            </div>
                            <div class="form-group">
                                <label for="SMSTPL_checkcode<%=lang.Code %>"><%=Tag("手机验证码")%>：</label>
                                <textarea id="SMSTPL_checkcode<%=lang.Code %>" name="SMSTPL_checkcode<%=lang.Code %>" class="form-control" style="height: 55px;" shop="true"><%=Shop.Bussiness.Language.Content(model.SMSTPL_checkcode, lang.Code)%></textarea>
                            </div>
                            <div class="form-group">
                                <label for="SMSTPL_reserveok<%=lang.Code %>"><%=Tag("预定到货提醒")%>：</label>
                                <textarea id="SMSTPL_reserveok<%=lang.Code %>" name="SMSTPL_reserveok<%=lang.Code %>" class="form-control" style="height: 55px;" shop="true"><%=Shop.Bussiness.Language.Content(model.SMSTPL_reserveok, lang.Code)%></textarea>
                            </div>
                            <%}else{ %>
                            <div class="form-group">
                                <label for="SMSTPL_Admin_newuser<%=lang.Code %>"><%=Tag("新用户注册")%>：</label>
                                <textarea id="SMSTPL_Admin_newuser<%=lang.Code %>" name="SMSTPL_Admin_newuser<%=lang.Code %>" class="form-control" style="height: 55px;" shop="true"><%=Shop.Bussiness.Language.Content(model.SMSTPL_Admin_newuser, lang.Code)%></textarea>
                            </div>
                            <div class="form-group">
                                <label for="SMSTPL_Admin_ordersubmit<%=lang.Code %>"><%=Tag("订单提交")%>：</label>
                                <textarea id="SMSTPL_Admin_ordersubmit<%=lang.Code %>" name="SMSTPL_Admin_ordersubmit<%=lang.Code %>" class="form-control" style="height: 55px;" shop="true"><%=Shop.Bussiness.Language.Content(model.SMSTPL_Admin_ordersubmit, lang.Code)%></textarea>
                            </div>
                            <div class="form-group">
                                <label for="SMSTPL_Admin_orderpaid<%=lang.Code %>"><%=Tag("订单付款")%>：</label>
                                <textarea id="SMSTPL_Admin_orderpaid<%=lang.Code %>" name="SMSTPL_Admin_orderpaid<%=lang.Code %>" class="form-control" style="height: 55px;" shop="true"><%=Shop.Bussiness.Language.Content(model.SMSTPL_Admin_orderpaid, lang.Code)%></textarea>
                            </div>
                            <div class="form-group">
                                <label for="SMSTPL_Admin_orderrecive<%=lang.Code %>"><%=Tag("订单收货")%>：</label>
                                <textarea id="SMSTPL_Admin_orderrecive<%=lang.Code %>" name="SMSTPL_Admin_orderrecive<%=lang.Code %>" class="form-control" style="height: 55px;" shop="true"><%=Shop.Bussiness.Language.Content(model.SMSTPL_Admin_orderrecive, lang.Code)%></textarea>
                            </div>
                            <div class="form-group">
                                <label for="SMSTPL_Admin_ordercomment<%=lang.Code %>"><%=Tag("订单留言")%>：</label>
                                <textarea id="SMSTPL_Admin_ordercomment<%=lang.Code %>" name="SMSTPL_Admin_ordercomment<%=lang.Code %>" class="form-control" style="height: 55px;" shop="true"><%=Shop.Bussiness.Language.Content(model.SMSTPL_Admin_ordercomment, lang.Code)%></textarea>
                            </div>
                            <div class="form-group">
                                <label for="SMSTPL_Admin_inquiry<%=lang.Code %>"><%=Tag("留言反馈")%>：</label>
                                <textarea id="SMSTPL_Admin_inquiry<%=lang.Code %>" name="SMSTPL_Admin_inquiry<%=lang.Code %>" class="form-control" style="height: 55px;" shop="true"><%=Shop.Bussiness.Language.Content(model.SMSTPL_Admin_inquiry, lang.Code)%></textarea>
                            </div>
                            <div class="form-group">
                                <label for="SMSTPL_Admin_comment<%=lang.Code %>"><%=Tag("商品评论")%>：</label>
                                <textarea id="SMSTPL_Admin_comment<%=lang.Code %>" name="SMSTPL_Admin_comment<%=lang.Code %>" class="form-control" style="height: 55px;" shop="true"><%=Shop.Bussiness.Language.Content(model.SMSTPL_Admin_comment, lang.Code)%></textarea>
                            </div>
                            <div class="form-group">
                                <label for="SMSTPL_Admin_ask<%=lang.Code %>"><%=Tag("商品咨询")%>：</label>
                                <textarea id="SMSTPL_Admin_ask<%=lang.Code %>" name="SMSTPL_Admin_ask<%=lang.Code %>" class="form-control" style="height: 55px;" shop="true"><%=Shop.Bussiness.Language.Content(model.SMSTPL_Admin_ask, lang.Code)%></textarea>
                            </div>
                            <div class="form-group">
                                <label for="SMSTPL_Admin_message<%=lang.Code %>"><%=Tag("站内信")%>：</label>
                                <textarea id="SMSTPL_Admin_message<%=lang.Code %>" name="SMSTPL_Admin_message<%=lang.Code %>" class="form-control" style="height: 55px;" shop="true"><%=Shop.Bussiness.Language.Content(model.SMSTPL_Admin_message, lang.Code)%></textarea>
                            </div>
                            <%}%>
                        </div>
                        <%} %>
                    </div>
                </div>
                <%if (PageReturnMsg == ""){%>
                <div class="col-md-12 col-sm-12 col-xs-12 m-b-20">
                    <button type="submit" class="btn btn-success"><i class="ti-check"></i> <%=Tag("保存")%></button>
                </div>
                <%}%>
            </form>
        </div>
        <div class="card">
            <div class="card-body">
                <h4 class="card-title"><%=Tag("标签规则")%></h4>
                <div class="row">
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <%if (type == "user")
                        { %>
                        <%=Tag("用户名")%>：{$UserName}<br/>
                        <%=Tag("用户ID")%>：{$UserID}<br />
                        <%=Tag("真实姓名")%>：{$RealName}<br />
                        <%=Tag("密码")%>：{$Password}<br />
                        <%=Tag("自提点")%>：{$PickUpStation}<br />
                        <%=Tag("自提时间")%>：{$PickUpTime}<br />
                        <%} %>
                        <%=Tag("用户昵称")%>：{$NickName}<br />
                        <%=Tag("订单号码")%>：{$OrderNO}<br />
                        <%=Tag("快递公司")%>：{$ExpressCompany}<br />
                        <%=Tag("快递单号")%>：{$ExpressNumber}<br />
                        <%if (type == "admin")
                        { %>
                        <%=Tag("配送方式")%>：{$Transport}<br />
                        <%} %>
                        <%=Tag("金额")%>：{$Money}<br />
                        <%=Tag("时间")%>：{$Time}<br />
                        <%=Tag("标题")%>：{$Title}<br />
                        <%=Tag("内容")%>：{$Content}<br />
                        <%=Tag("客服电话")%>：{$Phone}<br />
                        <%=Tag("客服传真")%>：{$Fax}<br />
                        <%=Tag("客服邮箱")%>：{$Email}<br />
                        <%=Tag("客服QQ")%>：{$QQ}<br />
                        <%=Tag("域名")%>：{$Domain}<br />
                        <%=Tag("站点名称")%>：{$SiteName}<br />
                        <%=Tag("验证码")%>：{$CheckCode}
                    </div>
                </div>
            </div>
        </div>
    </div>
</lbbody>
<lbscripts>
    <script>
        function SaveObj() {
            var postData = GetFormJsonData("shop");
            var url = "<%=site.AdminPath %>/ajax/ajax_site.aspx?__Action=SMSTPL_Edit&type=<%=type %>";
            RequestAjax(url,postData,function(){MsgBox(1, "<%=Tag("操作成功")%>", "")});
        }
    </script>
</lbscripts>