sendsms-queue-input.jsp 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <%@page contentType="text/html;charset=UTF-8"%>
  2. <%@include file="/taglibs.jsp"%>
  3. <%pageContext.setAttribute("currentHeader", "sendsms");%>
  4. <%pageContext.setAttribute("currentMenu", "sendsms");%>
  5. <%pageContext.setAttribute("currentTitle", "party-14");%>
  6. <!doctype html>
  7. <html lang="en">
  8. <head>
  9. <%@include file="/common/meta.jsp"%>
  10. <title>编辑</title>
  11. <%@include file="/common/s3.jsp"%>
  12. <link rel="stylesheet" href="${ctx}/s/jquery-file-upload/css/jquery.fileupload.css">
  13. <script type="text/javascript">
  14. $(function() {
  15. $("#smsQueueForm").validate({
  16. submitHandler: function(form) {
  17. bootbox.animate(false);
  18. var box = bootbox.dialog('<div class="progress progress-striped active" style="margin:0px;"><div class="bar" style="width: 100%;"></div></div>');
  19. form.submit();
  20. },
  21. errorClass: 'validate-error'
  22. });
  23. })
  24. </script>
  25. </head>
  26. <body>
  27. <%@include file="/header/_pim3.jsp"%>
  28. <div class="row-fluid">
  29. <%@include file="/menu/sendmail.jsp"%>
  30. <!-- start of main -->
  31. <div id="m-main" class="col-md-10" style="">
  32. <div class="panel panel-default">
  33. <div class="panel-heading">
  34. <i class="glyphicon glyphicon-list"></i>
  35. 编辑
  36. </div>
  37. <div class="panel-body">
  38. <form id="smsQueueForm" method="post" action="sendsms-queue-save.do" class="form-horizontal">
  39. <c:if test="${not empty model}">
  40. <input id="smsQueue_id" type="hidden" name="id" value="${model.id}">
  41. </c:if>
  42. <div class="form-group">
  43. <label class="control-label col-md-1" for="smsQueue_sender">手机</label>
  44. <div class="col-sm-5">
  45. <input id="smsQueue_sender" type="text" name="mobile" value="${model.mobile}" minlength="11" maxlength="11">
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="control-label col-md-1" for="smsQueue_data">信息</label>
  50. <div class="col-sm-5">
  51. <textarea id="smsQueue_data" name="message" maxlength="70">${model.message}</textarea>
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="control-label col-md-1" for="smsQueue_smsConfigId">短信服务器</label>
  56. <div class="col-sm-5">
  57. <select id="smsQueue_smsConfigId" name="sendsmsConfigId">
  58. <c:forEach items="${sendsmsConfigs}" var="item">
  59. <option value="${item.id}">${item.name}</option>
  60. </c:forEach>
  61. </select>
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <div class="col-sm-5">
  66. <button type="submit" class="btn btn-primary a-submit"><spring:message code='core.input.save' text='保存'/></button>
  67. &nbsp;
  68. <button type="button" class="btn a-cancel btn-link" onclick="history.back();"><spring:message code='core.input.back' text='返回'/></button>
  69. </div>
  70. </div>
  71. </form>
  72. </div>
  73. </article>
  74. </div>
  75. <!-- end of main -->
  76. </div>
  77. </body>
  78. </html>