AuditManagement.blade.php 9.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. @extends('admin.master')
  2. @section('content')
  3. <div class="row">
  4. <div class="col-lg-12">
  5. <div class="contentpanel">
  6. <form id="listForm" method="post">
  7. <!-- 功能按鈕(新增/批量處理等等) -->
  8. <div class="row" style="margin-bottom: 5px;">
  9. <div class="col-lg-12">
  10. <ol class="headermenu">
  11. <li>
  12. <button class="btn btn-darkblue btn-xs" onclick="window.print(); return false;">列印此頁</button>
  13. <a class="btn btn-darkblue btn-xs" id="GV_round_nav" href="#GV_round_anc"><strong>回合</strong></a>
  14. <a class="btn btn-darkblue btn-xs" id="GV_game_nav" href="#GV_game_anc"><strong>遊戲機率</strong></a>
  15. <a class="btn btn-darkblue btn-xs" id="GV_checkin_nav" href="#GV_checkin_anc"><strong>簽到贈點</strong></a>
  16. <a class="btn btn-darkblue btn-xs" id="GV_good_nav" href="#GV_good_anc"><strong>獎項</strong></a>
  17. </li>
  18. </ol>
  19. </div>
  20. </div>
  21. <!-- 搜尋段 -->
  22. <div class="panel panel-default">
  23. <div class="panel-heading" data-toggle="collapse" data-target="#search_content">
  24. <h3 class="panel-title">遊戲參數審核</h3>
  25. </div>
  26. <div id="search_content" class="collapse in">
  27. <div class="panel-body">
  28. </div>
  29. </div>
  30. </div>
  31. <hr class="search-hr"/>
  32. <!-- 列表段 -->
  33. <div class="row">
  34. <div class="col-lg-12">
  35. 相同一筆設定,若有分上下兩部分:<br>
  36. 上排代表目前修改中的最新設定,在審核通過前都不會生效。<br>
  37. 下排代表目前經審核通過的線上設定。
  38. </div>
  39. <div class="col-lg-12">
  40. <div id="GV_round_anc">
  41. <h3>回合</h3>
  42. </div>
  43. <table id="GV_round" class="table table-striped table-bordered" cellspacing="0">
  44. <thead>
  45. <tr>
  46. <th>審核</th>
  47. <th>ID</th>
  48. <th>回合名稱</th>
  49. <th>起日</th>
  50. <th>迄日</th>
  51. <th>兌獎延長天數</th>
  52. <th>有效否</th>
  53. <th>建立時間</th>
  54. <th>修改時間</th>
  55. <th>修改人</th>
  56. </tr>
  57. </thead>
  58. </table>
  59. <hr>
  60. <div id="GV_game_anc">
  61. <h3>遊戲機率</h3>
  62. </div>
  63. <table id="GV_game" class="table table-striped table-bordered" cellspacing="0">
  64. <thead>
  65. <tr>
  66. <th>審核</th>
  67. <th>ID</th>
  68. <th>機率</th>
  69. <th>吉點</th>
  70. <th>建立時間</th>
  71. <th>修改時間</th>
  72. <th>修改人</th>
  73. </tr>
  74. </thead>
  75. </table>
  76. <hr>
  77. <div id="GV_checkin_anc">
  78. <h3>簽到贈點</h3>
  79. </div>
  80. <table id="GV_checkin" class="table table-striped table-bordered" cellspacing="0">
  81. <thead>
  82. <tr>
  83. <th>審核</th>
  84. <th>ID</th>
  85. <th>第幾天</th>
  86. <th>吉點</th>
  87. <th>建立時間</th>
  88. <th>修改時間</th>
  89. <th>修改人</th>
  90. </tr>
  91. </thead>
  92. </table>
  93. <hr>
  94. <div id="GV_good_anc">
  95. <h3>獎項</h3>
  96. </div>
  97. <table id="GV_good" class="table table-striped table-bordered" cellspacing="0">
  98. <thead>
  99. <tr>
  100. <th>審核</th>
  101. <th>ID</th>
  102. <th>LINE POINT</th>
  103. <th>吉點</th>
  104. <th>有效否</th>
  105. <th>共可發數量</th>
  106. <th>已發數量</th>
  107. <th>建立時間</th>
  108. <th>修改時間</th>
  109. <th>修改人</th>
  110. </tr>
  111. </thead>
  112. </table>
  113. <hr>
  114. </div>
  115. </div>
  116. </form>
  117. <!-- row -->
  118. </div>
  119. </div>
  120. </div>
  121. @endsection
  122. @section('extjs')
  123. <script>
  124. $(document).ready(function () {
  125. $('#GV_round').dataTable({
  126. "scrollX": true,
  127. "processing": true,
  128. "serverSide": true,
  129. "ajax": "auditManagement/grid/round",
  130. "paging": true,
  131. "ordering": true,
  132. "info": true,
  133. "order": [[1, "desc"]],
  134. "stateSave": true,
  135. "pagingType": "full",
  136. "bFilter": true,
  137. "aoColumnDefs": [{
  138. 'bSortable': false,
  139. 'aTargets': [0] //不想參加排序的欄位,可指定多個,逗號分隔
  140. }]
  141. });
  142. $('#GV_game').dataTable({
  143. "scrollX": true,
  144. "processing": true,
  145. "serverSide": true,
  146. "ajax": "auditManagement/grid/game",
  147. "paging": true,
  148. "ordering": true,
  149. "info": true,
  150. "order": [[1, "desc"]],
  151. "stateSave": true,
  152. "pagingType": "full",
  153. "bFilter": true,
  154. "aoColumnDefs": [{
  155. 'bSortable': false,
  156. 'aTargets': [0] //不想參加排序的欄位,可指定多個,逗號分隔
  157. }]
  158. });
  159. $('#GV_checkin').dataTable({
  160. "scrollX": true,
  161. "processing": true,
  162. "serverSide": true,
  163. "ajax": "auditManagement/grid/checkin",
  164. "paging": true,
  165. "ordering": true,
  166. "info": true,
  167. "order": [[1, "desc"]],
  168. "stateSave": true,
  169. "pagingType": "full",
  170. "bFilter": true,
  171. "aoColumnDefs": [{
  172. 'bSortable': false,
  173. 'aTargets': [0] //不想參加排序的欄位,可指定多個,逗號分隔
  174. }]
  175. });
  176. $('#GV_good').dataTable({
  177. "scrollX": true,
  178. "processing": true,
  179. "serverSide": true,
  180. "ajax": "auditManagement/grid/good",
  181. "paging": true,
  182. "ordering": true,
  183. "info": true,
  184. "order": [[1, "desc"]],
  185. "stateSave": true,
  186. "pagingType": "full",
  187. "bFilter": true,
  188. "aoColumnDefs": [{
  189. 'bSortable': false,
  190. 'aTargets': [0] //不想參加排序的欄位,可指定多個,逗號分隔
  191. }]
  192. });
  193. // 從網址參觸發搜尋
  194. custom_search();
  195. $('#GV_round_filter').hide();
  196. $('#GV_game_filter').hide();
  197. $('#GV_checkin_filter').hide();
  198. $('#GV_good_filter').hide();
  199. });
  200. //客製化搜尋欄位
  201. function custom_search() {
  202. $('#GV_round').DataTable();
  203. $('#GV_round').dataTable().fnDraw(true);
  204. $('#GV_game').DataTable();
  205. $('#GV_game').dataTable().fnDraw(true);
  206. $('#GV_checkin').DataTable();
  207. $('#GV_checkin').dataTable().fnDraw(true);
  208. $('#GV_good').DataTable();
  209. $('#GV_good').dataTable().fnDraw(true);
  210. }
  211. </script>
  212. @endsection