sendmail-template-input.jsp 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <%@page contentType="text/html;charset=UTF-8"%>
  2. <%@include file="/taglibs.jsp"%>
  3. <%pageContext.setAttribute("currentHeader", "sendmail");%>
  4. <%pageContext.setAttribute("currentMenu", "sendmail");%>
  5. <%pageContext.setAttribute("currentTitle", "party-10");%>
  6. <!doctype html>
  7. <html>
  8. <head>
  9. <%@include file="/common/meta.jsp"%>
  10. <title>编辑</title>
  11. <%@include file="/common/s3.jsp"%>
  12. <script type="text/javascript">
  13. $(function() {
  14. $("#sendmail-templateForm").validate({
  15. submitHandler: function(form) {
  16. bootbox.animate(false);
  17. var box = bootbox.dialog('<div class="progress progress-striped active" style="margin:0px;"><div class="bar" style="width: 100%;"></div></div>');
  18. form.submit();
  19. },
  20. errorClass: 'validate-error'
  21. });
  22. })
  23. </script>
  24. </head>
  25. <body>
  26. <%@include file="/header/_pim3.jsp"%>
  27. <div class="row-fluid">
  28. <%@include file="/menu/sendmail.jsp"%>
  29. <!-- start of main -->
  30. <section id="m-main" class="col-md-10" style=" ">
  31. <div class="panel panel-default">
  32. <div class="panel-heading">
  33. <i class="glyphicon glyphicon-list"></i>
  34. 编辑
  35. </div>
  36. <div class="panel-body">
  37. <form id="mailTemplateForm" method="post" action="sendmail-template-save.do" class="form-horizontal">
  38. <c:if test="${not empty model}">
  39. <input id="mailTemplate_id" type="hidden" name="id" value="${model.id}">
  40. </c:if>
  41. <div class="form-group">
  42. <label class="control-label col-md-1" for="mailTemplate_name">名称</label>
  43. <div class="col-sm-5">
  44. <input id="mailTemplate_name" type="text" name="name" value="${model.name}" class="required" minlength="2" maxlength="50">
  45. </div>
  46. </div>
  47. <div class="form-group">
  48. <label class="control-label col-md-1" for="mailTemplate_sender">发件人</label>
  49. <div class="col-sm-5">
  50. <input id="mailTemplate_sender" type="text" name="sender" value="${model.sender}" maxlength="50">
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <label class="control-label col-md-1" for="mailTemplate_receiver">收件人</label>
  55. <div class="col-sm-5">
  56. <textarea id="mailTemplate_receiver" name="receiver" maxlength="200">${model.receiver}</textarea>
  57. </div>
  58. </div>
  59. <div class="form-group">
  60. <label class="control-label col-md-1" for="mailTemplate_cc">抄送</label>
  61. <div class="col-sm-5">
  62. <textarea id="mailTemplate_cc" name="cc" maxlength="200">${model.cc}</textarea>
  63. </div>
  64. </div>
  65. <div class="form-group">
  66. <label class="control-label col-md-1" for="mailTemplate_bcc">暗送</label>
  67. <div class="col-sm-5">
  68. <textarea id="mailTemplate_bcc" name="bcc" maxlength="200">${model.bcc}</textarea>
  69. </div>
  70. </div>
  71. <div class="form-group">
  72. <label class="control-label col-md-1" for="mailTemplate_subject">标题</label>
  73. <div class="col-sm-5">
  74. <input id="mailTemplate_subject" type="text" name="subject" value="${model.subject}" class="required" minlength="1" maxlength="50">
  75. </div>
  76. </div>
  77. <div class="form-group">
  78. <label class="control-label col-md-1" for="mailTemplate_content">内容</label>
  79. <div class="col-sm-5">
  80. <textarea id="mailTemplate_content" name="content" class="required" minlength="1" maxlength="65535">${model.content}</textarea>
  81. </div>
  82. </div>
  83. <div class="form-group">
  84. <label class="control-label col-md-1" for="mailTemplate_attachment">附件</label>
  85. <div class="col-sm-5">
  86. <!-- The fileinput-button span is used to style the file input field as button -->
  87. <span class="btn btn-success fileinput-button">
  88. <i class="glyphicon glyphicon-plus"></i>
  89. <span>选择文件</span>
  90. <!-- The file input field used as target for the file upload widget -->
  91. <input id="fileupload" type="file" name="file" multiple data-no-uniform="true">
  92. </span>
  93. <br>
  94. <br>
  95. <!-- The global progress bar -->
  96. <div id="progress" class="progress">
  97. <div class="bar bar-success"></div>
  98. </div>
  99. <!-- The container for the uploaded files -->
  100. <div id="files" class="files">
  101. <c:forEach items="${model.sendmailAttachments}" var="item">
  102. <span class="badge">
  103. <input type="hidden" name="attachmentIds" value="${item.id}">
  104. <a href="sendmail-attachment-download.do?id=${item.id}">${item.name}</a>
  105. <i title="${item.id}" class="icon-remove" style="cursor:pointer;"></i>
  106. </span>
  107. </c:forEach>
  108. </div>
  109. </div>
  110. </div>
  111. <div class="form-group">
  112. <label class="control-label col-md-1" for="mailTemplate_manual0">不使用ckeditor</label>
  113. <div class="col-sm-5">
  114. <label><input id="mailTemplate_manual0" type="radio" name="manual" value="1" ${model.manual == 1 ? 'checked' : ''}>手工</label>
  115. <label><input id="mailTemplate_manual1" type="radio" name="manual" value="0" ${empty model.manual || model.manual == 0 ? 'checked' : ''}>ckeditor</label>
  116. </div>
  117. </div>
  118. <div class="form-group">
  119. <div class="col-sm-5">
  120. <button type="submit" class="btn btn-primary a-submit"><spring:message code='core.input.save' text='保存'/></button>
  121. &nbsp;
  122. <button type="button" class="btn btn-link a-cancel" onclick="history.back();"><spring:message code='core.input.back' text='返回'/></button>
  123. </div>
  124. </div>
  125. </form>
  126. </div>
  127. </article>
  128. </section>
  129. <!-- end of main -->
  130. </div>
  131. </body>
  132. </html>