sendmail-template-send.jsp 1.3 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/s.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="span10">
  30. <article class="m-widget">
  31. <header class="header">
  32. <h4 class="title">${mailDto.success ? '发送成功' : '发送失败'}</h4>
  33. </header>
  34. <div class="content content-inner">
  35. <c:if test="${mailDto.success}">
  36. 发送成功
  37. </c:if>
  38. <c:if test="${not mailDto.success}">
  39. <pre>${exception}</pre>
  40. </c:if>
  41. </div>
  42. </article>
  43. </section>
  44. <!-- end of main -->
  45. </div>
  46. </body>
  47. </html>