chengkun
2025-04-18 1bb985f32f2efe0f9dd69f3cf29a1c809b1cf96d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
        <link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
        <link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
        <link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
        <script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
        <link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet"
         type="text/css" />
        <script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
        <script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
        <script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
 
        <title>后台管理</title>
    </head>
    <body class="body_ifm">
        <div id="subboxdiv" style="width:100%;height:100%;display:none;position:absolute;"></div>
 
        <div class="infoboxp">
            <div class="tty-tishi_top">
                <div class="admin_new_tip">
                    <a href="javascript:;" class="admin_new_tip_close"></a>
                    <a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
                    <div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
                    <div class="admin_new_tip_list_cont">
                        <div class="admin_new_tip_list">该页面展示了邮件模板设置</div>
                    </div>
                </div>
 
                {yun:}assign var=name value=$smarty.get.name{/yun}
                <iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
                <form action="" method="post" target="supportiframe">
                    <table width="100%" class="table_form">
                        <tr>
                            <th colspan="2" class="admin_bold_box">
                                <div class="admin_bold">邮件模板设置</div>
                            </th>
                        </tr>
                        <tr>
                            <th width="150" height="36">模板页面:</th>
                            <td>{yun:}$arr_tpl[$name].name{/yun}</td>
                        </tr>
                        <input type="hidden" name="name" value="{yun:}$name{/yun}" />
                        {yun:}if $arr_tpl[$name].type=="email"{/yun}
                        <tr class="email">
                            <th width="150">标题:</th>
                            <td>
                                <input class="layui-input t_w480" type="text" name="title" id="title" value="{yun:}$row.title{/yun}" size="60" />
                            </td>
                        </tr>
                        <tr class="email">
                            <th width="150">内容:</th>
                            <td>
                                <script id="content" name="content" type="text/plain" style="width:700px; height:200px;">
                                    {yun:}$row.content{/yun} </script>
                            </td>
                        </tr>
                        {yun:}else{/yun}
                        <tr class="email">
                            <th width="150">内容:</th>
                            <td>
                                <script id="content" name="content" type="text/plain" rows="10" cols="80" style="width:700px; height:200px;">
                                    {yun:}$row.content{/yun} </script>
                            </td>
                        </tr>
                        {yun:}/if{/yun}
                        <tr>
                            <th width="150" style="border-bottom:0px;">&nbsp;</th>
                            <td align="left" style="border-bottom:0px;">
                                <input class="tty_sub" id="mconfig" type="submit" name="config" value="提交" />&nbsp;&nbsp;
                                <input class="tty_cz" type="reset" value="重置" />
                            </td>
                        </tr>
                    </table>
                    <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
                </form>
                
                <table width="100%" class="table_form">
                    <tr>
                        <th colspan="2" class="admin_bold_box">
                            <div class="admin_bold">调用说明</div>
                        </th>
                    </tr>
                    {yun:}foreach from=$arr_tpl[$name] key=k item=v{/yun}
                    {yun:}if $k!="name" && $k!="type"{/yun}<tr>
                        <th width="150" height="36">{yun:}$v{/yun}</th>
                        <td>代码:{yun:}$k{/yun}</td>
                    </tr> {yun:}/if{/yun}
                    {yun:}/foreach{/yun}
                </table>
            </div>
 
                
            <script>
                (function($) {
                    $('.getname').click(function() {
                        $('#title').insertAtCaret($(this).attr("name"));
                    });
                    $('.getname2').click(function() {
                        $('#contentddd').insertAtCaret($(this).attr("name"));
                    });
                })($);
            </script>
        </div>
        <script src="{yun:}$config.sy_weburl{/yun}/js/ueditor/ueditor.config.js?v={yun:}$config.cachecode{/yun}"></script>
        <script src="{yun:}$config.sy_weburl{/yun}/js/ueditor/ueditor.all.min.js?v={yun:}$config.cachecode{/yun}"></script>
        {yun:}if $smarty.get.m=="emailconfig"{/yun}
        <script language="javascript">
            var editor = UE.getEditor('content', {
                toolbars: [
                    ['Source', '|', 'Undo', 'Redo', 'Bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'fontfamily',
                        'fontsize', 'forecolor', 'backcolor', 'removeformat', 'autotypeset', 'pasteplain', '|', 'insertorderedlist',
                        'insertunorderedlist', 'selectall', 'cleardoc', '|', 'simpleupload', '|', 'link', 'unlink', 'indent', '|',
                        'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify'
                    ]
                ],
                wordCount: false,
                elementPathEnabled: false,
                initialFrameHeight: 200
            });
        </script>
        {yun:}/if{/yun}
    </body>
</html>