index.html 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <include file="public@header"/>
  2. </head>
  3. <body>
  4. <div class="wrap">
  5. <ul class="nav nav-tabs">
  6. <li class="active"><a href="{:url('mailer/index')}">{:lang('ADMIN_MAILER_INDEX')}</a></li>
  7. <li><a href="{:url('mailer/template')}?template_key=verification_code">数字验证码邮件模板</a></li>
  8. </ul>
  9. <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('Admin/mailer/indexPost')}">
  10. <div class="form-group">
  11. <label for="input-from_name" class="col-sm-2 control-label">
  12. <span class="form-required">*</span>
  13. {:lang('SENDER_NAME')}
  14. <a href="http://www.thinkcmf.com/faq.html?url=https://www.kancloud.cn/thinkcmf/faq/493502"
  15. title="查看帮助手册"
  16. data-toggle="tooltip"
  17. target="_blank"><i class="fa fa-question-circle"></i></a>
  18. </label>
  19. <div class="col-md-6 col-sm-10">
  20. <input type="text" class="form-control" id="input-from_name" name="from_name"
  21. value="{$from_name|default=''}">
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label for="input-from" class="col-sm-2 control-label">
  26. <span class="form-required">*</span>{:lang('SENDER_EMAIL_ADDRESS')}
  27. </label>
  28. <div class="col-md-6 col-sm-10">
  29. <input type="text" class="form-control" id="input-from" name="from" value="{$from|default=''}">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label for="input-host" class="col-sm-2 control-label">
  34. <span class="form-required">*</span>{:lang('SENDER_SMTP_SERVER')}
  35. </label>
  36. <div class="col-md-6 col-sm-10">
  37. <input type="text" class="form-control" id="input-host" name="host" value="{$host|default=''}">
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label for="js-smtpsecure" class="col-sm-2 control-label">
  42. <span class="form-required">*</span>连接方式
  43. </label>
  44. <div class="col-md-6 col-sm-10">
  45. <select name="smtp_secure" id="js-smtpsecure" class="form-control">
  46. <option value="">默认</option>
  47. <option value="ssl">ssl</option>
  48. <option value="tls">tls</option>
  49. </select>
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label for="input-port" class="col-sm-2 control-label">
  54. <span class="form-required">*</span>SMTP服务器端口
  55. </label>
  56. <div class="col-md-6 col-sm-10">
  57. <input type="text" class="form-control" id="input-port" name="port" value="{$port|default=''}"
  58. placeholder="默认为25">
  59. </div>
  60. </div>
  61. <div class="form-group">
  62. <label for="input-login_name" class="col-sm-2 control-label">
  63. <span class="form-required">*</span>{:lang('SMTP_MAIL_ADDRESS')}
  64. </label>
  65. <div class="col-md-6 col-sm-10">
  66. <input type="text" class="form-control" id="input-login_name" name="username"
  67. value="{$username|default=''}">
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label for="input-password" class="col-sm-2 control-label">
  72. <span class="form-required">*</span>{:lang('SMTP_MAIL_PASSWORD')}
  73. </label>
  74. <div class="col-md-6 col-sm-10">
  75. <input type="password" class="form-control" id="input-password" name="password"
  76. value="{$password|default=''}">
  77. </div>
  78. </div>
  79. <div class="form-group">
  80. <div class="col-sm-offset-2 col-sm-10">
  81. <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
  82. <a class="btn btn-warning"
  83. href="javascript:parent.openIframeDialog('{:url('mailer/test')}','发送测试邮件',{width:'600px',height:'400px'});">测试邮件</a>
  84. </div>
  85. </div>
  86. </form>
  87. </div>
  88. <script src="__STATIC__/js/admin.js"></script>
  89. <script>
  90. $(function () {
  91. $('#js-smtpsecure').val("{$smtp_secure|default=''}");
  92. });
  93. </script>
  94. </body>
  95. </html>