access-batch-input.jsp 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <%@page contentType="text/html;charset=UTF-8"%>
  2. <%@include file="/taglibs.jsp"%>
  3. <%pageContext.setAttribute("currentHeader", "auth");%>
  4. <%pageContext.setAttribute("currentMenu", "auth");%>
  5. <!doctype html>
  6. <html>
  7. <head>
  8. <%@include file="/common/meta.jsp"%>
  9. <title><spring:message code="auth.access.batchinput.title" text="批量录入"/></title>
  10. <%@include file="/common/s.jsp"%>
  11. <style type="text/css">
  12. .dragClass {
  13. background-color: #EEEEEE;
  14. }
  15. </style>
  16. <script type="text/javascript">
  17. $(function() {
  18. $("#accessForm").validate({
  19. submitHandler: function(form) {
  20. bootbox.animate(false);
  21. var box = bootbox.dialog('<div class="progress progress-striped active" style="margin:0px;"><div class="bar" style="width: 100%;"></div></div>');
  22. form.submit();
  23. },
  24. errorClass: 'validate-error'
  25. });
  26. });
  27. function doPrev() {
  28. $('#accessForm').attr('method', 'get');
  29. $('#accessForm').attr('action', 'access-batch-list.do');
  30. $('#accessForm').submit();
  31. }
  32. </script>
  33. </head>
  34. <body>
  35. <%@include file="/header/auth.jsp"%>
  36. <div class="row-fluid">
  37. <%@include file="/menu/auth.jsp"%>
  38. <!-- start of main -->
  39. <section id="m-main" class="span10">
  40. <article class="m-widget">
  41. <header class="header">
  42. <h4 class="title"><spring:message code="auth.access.batchinput.title" text="批量录入"/></h4>
  43. </header>
  44. <div class="content content-inner">
  45. <form id="accessForm" method="post" action="access-batch-save.do" class="form-horizontal">
  46. <div class="control-group">
  47. <label class="control-label"><spring:message code='auth.access.input.type' text='类型'/></label>
  48. <div class="controls">
  49. <input type="hidden" name="type" value="${type}">
  50. <label style="padding-top:5px;">${type}<label>
  51. </div>
  52. </div>
  53. <div class="control-group">
  54. <label class="control-label" for="access_text"><spring:message code='auth.access.input.import' text='批量导入'/></label>
  55. <div class="controls">
  56. <textarea id="access_text" name="text" style="width:600px;" rows="10">${text}</textarea>
  57. </div>
  58. </div>
  59. <div class="control-group">
  60. <div class="controls">
  61. <button type="button" class="btn" onclick="doPrev()"><spring:message code='core.step.prev' text='上一步'/></button>
  62. &nbsp;
  63. <button id="submitButton" class="btn btn-primary a-submit"><spring:message code='core.step.next' text='下一步'/></button>
  64. </div>
  65. </div>
  66. </form>
  67. </div>
  68. </article>
  69. <div class="m-spacer"></div>
  70. </section>
  71. <!-- end of main -->
  72. </div>
  73. </body>
  74. </html>