{template "header.html"}


<link href="{THEME_PATH}assets/global/plugins/codemirror/lib/codemirror.css" rel="stylesheet" type="text/css" />
<link href="{THEME_PATH}assets/global/plugins/codemirror/theme/neat.css" rel="stylesheet" type="text/css" />

<script src="{THEME_PATH}assets/global/plugins/codemirror/lib/codemirror.js" type="text/javascript"></script>
<script src="{THEME_PATH}assets/global/plugins/codemirror/mode/javascript/javascript.js" type="text/javascript"></script>


<script type="text/javascript">
    jQuery(document).ready(function() {
        var myTextArea = document.getElementById('file_code');
        var myCodeMirror = CodeMirror.fromTextArea(myTextArea, {
            lineNumbers: true,
            matchBrackets: true,
            styleActiveLine: true,
            theme: "neat",
            mode: 'javascript'
        });
    });


</script>

<div class="note note-danger">
    <p>
        {if $islog}<a style="color: red" href="{dr_url('weixin/account/index')}">
        当前已开启请求日志记录功能，建议上线后关闭此项，会生成大量日志内容，增加服务器负担
        {else}<a style="color: blue" href="{dr_url('weixin/account/index')}">
        当前没有开启请求日志记录功能，开发阶段建议开启日志可以分析微信是否与服务器通信
        {/if} </a>
    </p>
    <p style="margin-top: 10px;">
        <label><button type="button" onclick="dr_ajax_option('{dr_url('weixin/log/del')}', '{dr_lang('你确定要清空记录吗？')}', 1)" class="btn red btn-sm"> <i class="fa fa-trash"></i> {dr_lang('清空')}</button></label>
    </p>
</div>

<div class="right-card-box">


<div class="form-group">
    <textarea id="file_code" name="code">{$code}</textarea>
</div>

{template "footer.html"}