sendmail-config-test.jsp 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <%@page contentType="text/html;charset=UTF-8"%>
  2. <%@include file="/taglibs.jsp"%>
  3. <%pageContext.setAttribute("currentHeader", "sendmail");%>
  4. <%pageContext.setAttribute("currentMenu", "sendmail");%>
  5. <!doctype html>
  6. <html lang="en">
  7. <head>
  8. <%@include file="/common/meta.jsp"%>
  9. <title>编辑</title>
  10. <%@include file="/common/s3.jsp"%>
  11. <script type="text/javascript">
  12. $(function() {
  13. $("#mailConfigForm").validate({
  14. submitHandler: function(form) {
  15. bootbox.animate(false);
  16. var box = bootbox.dialog('<div class="progress progress-striped active" style="margin:0px;"><div class="bar" style="width: 100%;"></div></div>');
  17. form.submit();
  18. },
  19. errorClass: 'validate-error'
  20. });
  21. })
  22. </script>
  23. </head>
  24. <body>
  25. <%@include file="/header/sendmail.jsp"%>
  26. <div class="row-fluid">
  27. <%@include file="/menu/sendmail.jsp"%>
  28. <!-- start of main -->
  29. <section id="m-main" class="col-md-10" style=" ">
  30. <div class="panel panel-default">
  31. <div class="panel-heading">
  32. <i class="glyphicon glyphicon-list"></i>
  33. ${mailDto.success ? '发送成功' : '发送失败'}
  34. </div>
  35. <div class="panel-body">
  36. <c:if test="${mailDto.success}">
  37. 发送成功
  38. </c:if>
  39. <c:if test="${not mailDto.success}">
  40. <pre>${exception}</pre>
  41. </c:if>
  42. </div>
  43. </div>
  44. </section>
  45. <!-- end of main -->
  46. </div>
  47. </body>
  48. </html>