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
<!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 rel="stylesheet" href="images/codecss/codemirror.css?v={yun:}$config.cachecode{/yun}">
        <link rel="stylesheet" href="images/codecss/paraiso-dark.css?v={yun:}$config.cachecode{/yun}">
        <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>
        <script src="js/codejs/codemirror.js?v={yun:}$config.cachecode{/yun}"></script>
        <script src="js/codejs/javascript.js?v={yun:}$config.cachecode{/yun}"></script>
        <script src="js/codejs/active-line.js?v={yun:}$config.cachecode{/yun}"></script>
        <script src="js/codejs/matchbrackets.js?v={yun:}$config.cachecode{/yun}"></script>
        <title>后台管理</title>
    </head>
    <body class="body_ifm">
        <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>
            </div>
 
            <div class="infoboxp_top mt10">
                <h6>修改模板</h6>
            </div>
 
 
            <iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
            <form name="myform" action="index.php?m=admin_tpl&c=savetpl" target="supportiframe" id="formstatus" method="post">
                <div class="table-list">
                    <div class="admin_table_border" style="width:100%; overflow:hidden">
                        <table class="table_form table_form_bg" style="border:none;width:100%">
                            <tr>
 
                                <td><span style=" display:inline-block">文件名:</span>{yun:}$tp_info.name{/yun}<input readonly type="hidden" class="input-text"
                                     name="name" value="{yun:}$tp_info.name{/yun}"><span style="width:120px; margin-left:50px; display:inline-block; text-align:right;">所在路径:</span>{yun:}$tp_info.path{/yun}<input
                                     type="hidden" value="{yun:}$tp_info.path{/yun}" name="tp_path"></td>
                            </tr>
 
                            <tr>
                                <td>
                                    <div style="background-color:#f7f7f8;padding:0 10px;height: 30px;line-height: 30px;border-top: 1px solid #ddd;border-left: 1px solid #ddd;border-right: 1px solid #ddd;width:1131px;">code</div>
                                    <textarea id="code" name="code" cols="200" rows="38">{yun:}$tp_info.content{/yun}</textarea>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div style="width:500px; text-align:right">
                                        <input class="admin_button" type="submit" name="submit" value="&nbsp;提  交&nbsp;" />
                                        <input class="admin_button" type="reset" name="reset" value="&nbsp;重 置 &nbsp;" />
                                        <input type="hidden" name="safekey" value="{yun:}$tp_info.safekey{/yun}">
                                        <input type="hidden" name="dir" value="{yun:}$tp_info.dir{/yun}" />
                                    </div>
                                </td>
                            </tr>
                        </table>
                        <input type="hidden" name="pytoken" id='pytoken' value="{yun:}$pytoken{/yun}">
                    </div>
                </div>
            </form>
 
        </div>
        <style type="text/css">
            .CodeMirror {
                border: 1px solid #ddd;
                font-size: 13px;
                width: 1150px;
                height: 400px;
            }
 
            .CodeMirror-code pre {
                padding: 4px 5px;
                color: #333;
                font-family: Courier New;
            }
 
            .CodeMirror-gutter {
                width: 40px;
            }
        </style>
        <script>
            var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
                lineNumbers: true,
                styleActiveLine: true,
                matchBrackets: true
            });
            // editor.setOption("theme", "paraiso-dark");
            editor.setOption("theme", "neat");
        </script>
    </body>
</html>