studentCourseList.jsp 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/webpage/include/taglib.jsp"%>
  3. <html>
  4. <head>
  5. <title>学生课程记录管理</title>
  6. <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  7. <meta name="decorator" content="ani"/>
  8. <%@ include file="/webpage/include/bootstraptable.jsp"%>
  9. <%@include file="/webpage/include/treeview.jsp" %>
  10. <%@include file="studentCourseList.js" %>
  11. </head>
  12. <body>
  13. <div class="wrapper wrapper-content">
  14. <div class="panel panel-primary">
  15. <div class="panel-heading">
  16. <h3 class="panel-title">学生课程记录列表</h3>
  17. </div>
  18. <div class="panel-body">
  19. <!-- 搜索 -->
  20. <div id="search-collapse" class="collapse">
  21. <div class="accordion-inner">
  22. <form:form id="searchForm" modelAttribute="studentCourse" class="form form-horizontal well clearfix">
  23. <div class="col-xs-12 col-sm-6 col-md-4">
  24. <label class="label-item single-overflow pull-left" title="学生:">学生:</label>
  25. <sys:gridselect url="${ctx}/test/manytomany/student/data" id="student" name="student.id" value="${studentCourse.student.id}" labelName="student.name" labelValue="${studentCourse.student.name}"
  26. title="选择学生" cssClass="form-control required" fieldLabels="姓名" fieldKeys="name" searchLabels="姓名" searchKeys="name" ></sys:gridselect>
  27. </div>
  28. <div class="col-xs-12 col-sm-6 col-md-4">
  29. <label class="label-item single-overflow pull-left" title="课程:">课程:</label>
  30. <sys:gridselect url="${ctx}/test/manytomany/course/data" id="course" name="course.id" value="${studentCourse.course.id}" labelName="course.name" labelValue="${studentCourse.course.name}"
  31. title="选择课程" cssClass="form-control required" fieldLabels="课程名" fieldKeys="name" searchLabels="课程名" searchKeys="name" ></sys:gridselect>
  32. </div>
  33. <div class="col-xs-12 col-sm-6 col-md-4">
  34. <div style="margin-top:26px">
  35. <a id="search" class="btn btn-primary btn-rounded btn-bordered btn-sm"><i class="fa fa-search"></i> 查询</a>
  36. <a id="reset" class="btn btn-primary btn-rounded btn-bordered btn-sm" ><i class="fa fa-refresh"></i> 重置</a>
  37. </div>
  38. </div>
  39. </form:form>
  40. </div>
  41. </div>
  42. <!-- 工具栏 -->
  43. <div id="toolbar">
  44. <shiro:hasPermission name="test:manytomany:studentCourse:add">
  45. <button id="add" class="btn btn-primary" onclick="add()">
  46. <i class="glyphicon glyphicon-plus"></i> 新建
  47. </button>
  48. </shiro:hasPermission>
  49. <shiro:hasPermission name="test:manytomany:studentCourse:edit">
  50. <button id="edit" class="btn btn-success" disabled onclick="edit()">
  51. <i class="glyphicon glyphicon-edit"></i> 修改
  52. </button>
  53. </shiro:hasPermission>
  54. <shiro:hasPermission name="test:manytomany:studentCourse:del">
  55. <button id="remove" class="btn btn-danger" disabled onclick="deleteAll()">
  56. <i class="glyphicon glyphicon-remove"></i> 删除
  57. </button>
  58. </shiro:hasPermission>
  59. <shiro:hasPermission name="test:manytomany:studentCourse:import">
  60. <button id="btnImport" class="btn btn-info"><i class="fa fa-folder-open-o"></i> 导入</button>
  61. </shiro:hasPermission>
  62. <shiro:hasPermission name="test:manytomany:studentCourse:export">
  63. <button id="export" class="btn btn-warning">
  64. <i class="fa fa-file-excel-o"></i> 导出
  65. </button>
  66. </shiro:hasPermission>
  67. <shiro:hasPermission name="test:manytomany:studentCourse:view">
  68. <button id="view" class="btn btn-default" disabled onclick="view()">
  69. <i class="fa fa-search-plus"></i> 查看
  70. </button>
  71. </shiro:hasPermission>
  72. </div>
  73. <!-- 表格 -->
  74. <table id="studentCourseTable" data-toolbar="#toolbar"></table>
  75. <!-- context menu -->
  76. <ul id="context-menu" class="dropdown-menu">
  77. <shiro:hasPermission name="test:manytomany:studentCourse:view">
  78. <li data-item="view"><a>查看</a></li>
  79. </shiro:hasPermission>
  80. <shiro:hasPermission name="test:manytomany:studentCourse:edit">
  81. <li data-item="edit"><a>编辑</a></li>
  82. </shiro:hasPermission>
  83. <shiro:hasPermission name="test:manytomany:studentCourse:del">
  84. <li data-item="delete"><a>删除</a></li>
  85. </shiro:hasPermission>
  86. <li data-item="action1"><a>取消</a></li>
  87. </ul>
  88. </div>
  89. </div>
  90. </div>
  91. </body>
  92. </html>