testPieClassForm.jsp 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/webpage/include/taglib.jsp"%>
  3. <html>
  4. <head>
  5. <title>学生管理</title>
  6. <meta name="decorator" content="ani"/>
  7. <script type="text/javascript">
  8. function save() {
  9. var isValidate = jp.validateForm('#inputForm');//校验表单
  10. if(!isValidate){
  11. return false;
  12. }else{
  13. jp.loading();
  14. jp.post("${ctx}/echarts/other/testPieClass/save",$('#inputForm').serialize(),function(data){
  15. if(data.success){
  16. jp.getParent().refreshCharts();
  17. var dialogIndex = parent.layer.getFrameIndex(window.name); // 获取窗口索引
  18. parent.layer.close(dialogIndex);
  19. jp.success(data.msg)
  20. }else{
  21. jp.error(data.msg);
  22. }
  23. })
  24. }
  25. }
  26. </script>
  27. </head>
  28. <body class="bg-white">
  29. <form:form id="inputForm" modelAttribute="testPieClass" class="form-horizontal">
  30. <form:hidden path="id"/>
  31. <sys:message content="${message}"/>
  32. <table class="table table-bordered">
  33. <tbody>
  34. <tr>
  35. <td class="width-15 active"><label class="pull-right"><font color="red">*</font>班级:</label></td>
  36. <td class="width-35">
  37. <form:input path="className" htmlEscape="false" class="form-control required"/>
  38. </td>
  39. <td class="width-15 active"><label class="pull-right"><font color="red">*</font>人数:</label></td>
  40. <td class="width-35">
  41. <form:input path="num" htmlEscape="false" class="form-control required digits"/>
  42. </td>
  43. </tr>
  44. <tr>
  45. <td class="width-15 active"><label class="pull-right">备注信息:</label></td>
  46. <td class="width-35">
  47. <form:textarea path="remarks" htmlEscape="false" rows="4" class="form-control "/>
  48. </td>
  49. <td class="width-15 active"></td>
  50. <td class="width-35" ></td>
  51. </tr>
  52. </tbody>
  53. </table>
  54. </form:form>
  55. </body>
  56. </html>