template_verification_code.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <include file="public@header"/>
  2. </head>
  3. <body>
  4. <div class="wrap">
  5. <ul class="nav nav-tabs">
  6. <li><a href="{:url('mailer/index')}">{:lang('ADMIN_MAILER_INDEX')}</a></li>
  7. <li class="active"><a href="#" data-toggle="tab">数字验证码邮件模板</a></li>
  8. </ul>
  9. <form method="post" class="form-horizontal js-ajax-form margin-top-20" role="form"
  10. action="{:url('admin/mailer/templatePost')}">
  11. <div class="form-group">
  12. <label for="input-title" class="col-sm-2 control-label"><span class="form-required">*</span>{:lang('EMAIL_SUBJECT')}</label>
  13. <div class="col-md-6 col-sm-10">
  14. <input type="text" class="form-control" name="subject" id="input-title" value="{$subject|default=''}">
  15. </div>
  16. </div>
  17. <div class="form-group">
  18. <label for="input-title" class="col-sm-2 control-label"><span class="form-required">*</span>{:lang('EMAIL_TEMPLATE')}</label>
  19. <div class="col-md-6 col-sm-12">
  20. <script type="text/plain" id="content" name="template">{$template|default=""|htmlspecialchars_decode}</script>
  21. <literal><span style="color: #ffb752;">请用{$code}代替数字验证码<!--,{$username}代替用户名--></span></literal>
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <div class="col-sm-offset-2 col-sm-10">
  26. <input type="hidden" name="template_key" value="verification_code">
  27. <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
  28. </div>
  29. </div>
  30. </form>
  31. </div>
  32. <script src="__STATIC__/js/admin.js"></script>
  33. <script type="text/javascript">
  34. //编辑器路径定义
  35. var editorURL = GV.WEB_ROOT;
  36. </script>
  37. <script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
  38. <script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
  39. <script type="text/javascript">
  40. var editorcontent = new baidu.editor.ui.Editor();
  41. editorcontent.render('content');
  42. </script>
  43. </body>
  44. </html>