smtp_mail.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <extend name="Public:base" />
  2. <block name="content">
  3. <div class="page-header">
  4. <h1>
  5. {$breadcrumb2}
  6. <small>
  7. <i class="icon-double-angle-right"></i>
  8. 邮件配置
  9. </small>
  10. </h1>
  11. </div>
  12. <div class="row">
  13. <div class="col-xs-12">
  14. <form class="form-horizontal" id="form" method="post" action="{:U('Settings/save')}">
  15. <div class="form-group">
  16. <label class="col-sm-2 control-label no-padding-left"> * SMTP服务器 </label>
  17. <div class="col-sm-10">
  18. <div class="clearfix">
  19. <input name="SMTP_HOST" class="col-xs-10 col-sm-5" value="{$smtp.SMTP_HOST.value|default=''}" type="text">
  20. </div>
  21. </div>
  22. </div>
  23. <div class="form-group">
  24. <label class="col-sm-2 control-label no-padding-left"> * SMTP服务器端口 </label>
  25. <div class="col-sm-10">
  26. <div class="clearfix">
  27. <input name="SMTP_PORT" class="col-xs-10 col-sm-5" value="{$smtp.SMTP_PORT.value|default=''}" type="text">
  28. </div>
  29. </div>
  30. </div>
  31. <div class="form-group">
  32. <label class="col-sm-2 control-label no-padding-left"> * SMTP服务器用户名 </label>
  33. <div class="col-sm-10">
  34. <div class="clearfix">
  35. <input name="SMTP_USER" class="col-xs-10 col-sm-5" value="{$smtp.SMTP_USER.value|default=''}" type="text">
  36. </div>
  37. </div>
  38. </div>
  39. <div class="form-group">
  40. <label class="col-sm-2 control-label no-padding-left"> * SMTP服务器密码 </label>
  41. <div class="col-sm-10">
  42. <div class="clearfix">
  43. <input name="SMTP_PASS" class="col-xs-10 col-sm-5" value="{$smtp.SMTP_PASS.value|default=''}" type="text">
  44. </div>
  45. </div>
  46. </div>
  47. <div class="form-group">
  48. <label class="col-sm-2 control-label no-padding-left"> * 发件人EMAIL </label>
  49. <div class="col-sm-10">
  50. <div class="clearfix">
  51. <input name="FROM_EMAIL" class="col-xs-10 col-sm-5" value="{$smtp.FROM_EMAIL.value|default=''}" type="text">
  52. </div>
  53. </div>
  54. </div>
  55. <div class="form-group">
  56. <label class="col-sm-2 control-label no-padding-left"> * 发件人名称 </label>
  57. <div class="col-sm-10">
  58. <div class="clearfix">
  59. <input name="FROM_NAME" class="col-xs-10 col-sm-5" value="{$smtp.FROM_NAME.value|default=''}" type="text">
  60. </div>
  61. </div>
  62. </div>
  63. </form>
  64. <div class="form-group">
  65. <label class="col-sm-1 control-label no-padding-left"> </label>
  66. <div class="col-sm-11">
  67. <button form="form" type="submit" class="btn btn-sm btn-primary">提交</button>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </block>
  73. <block name="javascript">
  74. <script src="__JS__/jquery.validate.min.js"></script>
  75. <script>
  76. $(function(){
  77. $('#validation-form').validate({
  78. errorElement: 'div',
  79. errorClass: 'help-block',
  80. focusInvalid: false,
  81. rules: {
  82. name: {
  83. required: true,
  84. minlength: 2
  85. }
  86. },
  87. messages: {
  88. name: {
  89. required: "必填",
  90. minlength: "不得少于2个字"
  91. }
  92. },
  93. invalidHandler: function (event, validator) { //display error alert on form submit
  94. $('.alert-danger', $('.login-form')).show();
  95. },
  96. highlight: function (e) {
  97. $(e).closest('.form-group').removeClass('has-info').addClass('has-error');
  98. },
  99. success: function (e) {
  100. $(e).closest('.form-group').removeClass('has-error').addClass('has-info');
  101. $(e).remove();
  102. },
  103. errorPlacement: function (error, element) {
  104. error.insertAfter(element.parent());
  105. },
  106. });
  107. });
  108. </script>
  109. </block>