template_verification_code.html
2.0 KB
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
<include file="public@header"/>
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li><a href="{:url('mailer/index')}">{:lang('ADMIN_MAILER_INDEX')}</a></li>
<li class="active"><a href="#" data-toggle="tab">数字验证码邮件模板</a></li>
</ul>
<form method="post" class="form-horizontal js-ajax-form margin-top-20" role="form"
action="{:url('admin/mailer/templatePost')}">
<div class="form-group">
<label for="input-title" class="col-sm-2 control-label">{:lang('EMAIL_SUBJECT')}</label>
<div class="col-md-6 col-sm-10">
<input type="text" class="form-control" name="subject" id="input-title" value="{$subject|default=''}">
</div>
</div>
<div class="form-group">
<label for="input-title" class="col-sm-2 control-label">{:lang('EMAIL_TEMPLATE')}</label>
<div class="col-md-6 col-sm-12">
<script type="text/plain" id="content" name="template">{$template|default=""|htmlspecialchars_decode}</script>
<literal><span style="color: #ffb752;">请用{$code}代替数字验证码,{$username}代替用户名</span></literal>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<input type="hidden" name="template_key" value="verification_code">
<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
</div>
</div>
</form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
//编辑器路径定义
var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
var editorcontent = new baidu.editor.ui.Editor();
editorcontent.render('content');
</script>
</body>
</html>