mbgllc.jsp 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%
  3. String path = request.getContextPath();
  4. String basePath=path+"/";
  5. String tname =request.getParameter("tname");
  6. %>
  7. <!doctype html>
  8. <html>
  9. <head>
  10. <meta http-equiv="content-type" content="text/html; charset=utf-8">
  11. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  12. <link rel="stylesheet" href="<%=basePath%>player/js/bootstrap-3.3.7-dist/css/bootstrap.min.css">
  13. <link rel="stylesheet" href="<%=basePath%>player/css/font-awesome/css/font-awesome.min.css">
  14. <link rel="stylesheet" href="<%=basePath%>player/js/toastr/toastr.min.css">
  15. <style type="text/css">
  16. html{
  17. height: 100%;
  18. }
  19. body{
  20. height: calc(100% - 15px);
  21. }
  22. .bodyCls{
  23. margin: 15px;
  24. height: calc(100% - 20px);
  25. }
  26. .btn-white{
  27. border-width: 1px;
  28. border-color: #c3c6c9;
  29. color: #657483;
  30. background-color: #fff;
  31. width:100%;
  32. }
  33. .btn-white:hover,.btn-white:focus,.btn-white:active,.btn-white.active {
  34. border-color: #c3c6c9;
  35. color: #657483;
  36. background-color: #f7f8f9;
  37. }
  38. .pagination{
  39. margin:0px !important;
  40. }
  41. .panel-body{
  42. padding:10px !important;
  43. text-align: center;
  44. }
  45. .panel-info{
  46. height: 100%;
  47. width: 31%;
  48. }
  49. .panel1{
  50. float: left;
  51. }
  52. .panel2{
  53. float: left;
  54. margin: 0px calc(7%/3 - 11px);
  55. }
  56. .panel3{
  57. height: 100%;
  58. float: left;
  59. padding:0px !important;
  60. padding-top: calc(24% - 30px) !important;
  61. }
  62. .panel4{
  63. float: right;
  64. }
  65. .table{
  66. table-layout:fixed;
  67. }
  68. .table-bordered{
  69. margin:7px 0px;
  70. }
  71. .table > tbody > tr.clicked {
  72. background-color: #3c8dbc;
  73. color:#fff;
  74. }
  75. .table>tbody>tr>td{
  76. padding:6px !important;
  77. text-align: left;
  78. overflow: hidden;
  79. text-overflow:ellipsis;
  80. white-space: nowrap;
  81. }
  82. .checkTh{
  83. text-align: center;
  84. padding: 5px !important;
  85. width: 24px;
  86. }
  87. .pagination>li>a{
  88. width:34px;
  89. padding:6px 0px !important;
  90. cursor:pointer;
  91. }
  92. </style>
  93. </head>
  94. <body>
  95. <div class="bodyCls">
  96. <div class="panel panel-info panel1">
  97. <div class="panel-heading">
  98. <h3 class="panel-title">选择流程模板(只能选择一个)</h3>
  99. </div>
  100. <div class="panel-body">
  101. <div class="input-group">
  102. <input type="text" class="form-control" placeholder="请输入模板名称、描述" id="templateInput" >
  103. <span class="input-group-btn">
  104. <button type="button" name="search" id="search-btn" class="btn btn-default" onclick="searchByLike(1)"><i class="fa fa-search text-muted"></i>
  105. </button>
  106. </span>
  107. </div>
  108. <table class="table table-bordered table-hover table-striped" >
  109. <thead>
  110. <tr>
  111. <th style="width: 40%;">模板名称</th>
  112. <th>模板描述</th>
  113. <th style="width: 20%;">节点数</th>
  114. </tr>
  115. </thead>
  116. <tbody id="templateTbody">
  117. </tbody>
  118. </table>
  119. <ul class="pagination" id="templatePagination">
  120. </ul>
  121. </div>
  122. </div>
  123. <div class="panel panel-info panel2">
  124. <div class="panel-heading">
  125. <h3 class="panel-title">未关联流程定义</h3>
  126. </div>
  127. <div class="panel-body">
  128. <div class="input-group">
  129. <input type="text" class="form-control" placeholder="请输入流程编号、名称" id="unrelateDefinitionInput">
  130. <span class="input-group-btn">
  131. <button type="button" name="search" id="search-btn" class="btn btn-default" onclick="searchByLike(2)"><i class="fa fa-search text-muted"></i>
  132. </button>
  133. </span>
  134. </div>
  135. <table class="table table-bordered table-hover table-striped">
  136. <thead>
  137. <tr>
  138. <th class="checkTh"><input type="checkbox" name="allChecked"/></th>
  139. <th style="width: 40%;">编号</th>
  140. <th>定义名称</th>
  141. <th style="width: 20%;">节点数</th>
  142. </tr>
  143. </thead>
  144. <tbody id="unrelateDefinitionTbody">
  145. </tbody>
  146. </table>
  147. <ul class="pagination" id="unrelateDefinitionPagination">
  148. </ul>
  149. </div>
  150. </div>
  151. <div class="panel-body panel3">
  152. <button type="button" style="margin-bottom:5px;" class="btn btn-sm btn-white" title="添加" onclick="addItems()"><i class="fa fa-chevron-right"></i></button>
  153. <br>
  154. <button type="button" class="btn btn-sm btn-white" title="移除" onclick="removeItems()"><i class="fa fa-chevron-left"></i></button>
  155. </div>
  156. <div class="panel panel-info panel4">
  157. <div class="panel-heading">
  158. <h3 class="panel-title">已关联流程定义</h3>
  159. </div>
  160. <div class="panel-body">
  161. <div class="input-group">
  162. <input type="text" class="form-control" placeholder="请输入流程编号、名称" id="relateDefinitionInput" >
  163. <span class="input-group-btn">
  164. <button type="button" name="search" id="search-btn" class="btn btn-default" onclick="searchByLike(3)"><i class="fa fa-search text-muted"></i>
  165. </button>
  166. </span>
  167. </div>
  168. <table class="table table-bordered table-hover table-striped">
  169. <thead>
  170. <tr>
  171. <th class="checkTh"><input type="checkbox" name="allChecked"/></th>
  172. <th style="width: 40%;">编号</th>
  173. <th>定义名称</th>
  174. <th style="width: 20%;">节点数</th>
  175. </tr>
  176. </thead>
  177. <tbody id="relateDefinitionTbody">
  178. </tbody>
  179. </table>
  180. <ul class="pagination" id="relateDefinitionPagination">
  181. </ul>
  182. </div>
  183. </div>
  184. </div>
  185. </body>
  186. <script type="text/javascript">
  187. var basePath = '<%=basePath%>';
  188. var tname = decodeURI('<%=tname%>');
  189. </script>
  190. <script src="<%=basePath%>player/js/jquery/dist/jquery.min.js"></script>
  191. <script src="<%=basePath%>player/js/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
  192. <script src="<%=basePath%>player/js/common.js"></script>
  193. <script src="<%=basePath%>player/js/toastr/toastr.min.js"></script>
  194. <script src="<%=basePath%>player/js/mbgllc.js"></script>
  195. <script type="text/javascript">
  196. </script>
  197. </html>