TAuditManagement.blade.php 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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_tround_nav" href="#GV_tround_anc"><strong>回合</strong></a>
  14. <a class="btn btn-darkblue btn-xs" id="GV_tcheckin_nav" href="#GV_tcheckin_anc"><strong>簽到贈點</strong></a>
  15. <a class="btn btn-darkblue btn-xs" id="GV_tgood_nav" href="#GV_tgood_anc"><strong>獎項</strong></a>
  16. </li>
  17. </ol>
  18. </div>
  19. </div>
  20. <!-- 搜尋段 -->
  21. <div class="panel panel-default">
  22. <div class="panel-heading" data-toggle="collapse" data-target="#search_content">
  23. <h3 class="panel-title">遊戲參數審核</h3>
  24. </div>
  25. <div id="search_content" class="collapse in">
  26. <div class="panel-body">
  27. </div>
  28. </div>
  29. </div>
  30. <hr class="search-hr"/>
  31. <!-- 列表段 -->
  32. <div class="row">
  33. <div class="col-lg-12">
  34. 相同一筆設定,若有分上下兩部分:<br>
  35. 上排代表目前修改中的最新設定,在審核通過前都不會生效。<br>
  36. 下排代表目前經審核通過的線上設定。
  37. </div>
  38. <div class="col-lg-12">
  39. <div id="GV_tround_anc">
  40. <h3>回合</h3>
  41. </div>
  42. <table id="GV_tround" class="table table-striped table-bordered" cellspacing="0">
  43. <thead>
  44. <tr>
  45. <th>審核</th>
  46. <th>ID</th>
  47. <th>回合名稱</th>
  48. <th>起日</th>
  49. <th>迄日</th>
  50. <th>兌獎延長天數</th>
  51. <th>有效否</th>
  52. <th>建立時間</th>
  53. <th>修改時間</th>
  54. <th>修改人</th>
  55. </tr>
  56. </thead>
  57. </table>
  58. <hr>
  59. <div id="GV_tcheckin_anc">
  60. <h3>簽到贈點</h3>
  61. </div>
  62. <table id="GV_tcheckin" class="table table-striped table-bordered" cellspacing="0">
  63. <thead>
  64. <tr>
  65. <th>審核</th>
  66. <th>ID</th>
  67. <th>滿幾天</th>
  68. <th>吉點</th>
  69. <th>建立時間</th>
  70. <th>修改時間</th>
  71. <th>修改人</th>
  72. </tr>
  73. </thead>
  74. </table>
  75. <hr>
  76. <div id="GV_tgood_anc">
  77. <h3>獎項</h3>
  78. </div>
  79. <table id="GV_tgood" class="table table-striped table-bordered" cellspacing="0">
  80. <thead>
  81. <tr>
  82. <th>審核</th>
  83. <th>ID</th>
  84. <th>LINE POINT</th>
  85. <th>機率</th>
  86. <th>有效否</th>
  87. <th>共可發數量</th>
  88. <th>已發數量</th>
  89. <th>建立時間</th>
  90. <th>修改時間</th>
  91. <th>修改人</th>
  92. </tr>
  93. </thead>
  94. </table>
  95. <hr>
  96. </div>
  97. </div>
  98. </form>
  99. <!-- row -->
  100. </div>
  101. </div>
  102. </div>
  103. @endsection
  104. @section('extjs')
  105. <script>
  106. $(document).ready(function () {
  107. $('#GV_tround').dataTable({
  108. "scrollX": true,
  109. "processing": true,
  110. "serverSide": true,
  111. "ajax": "tauditManagement/grid/tround",
  112. "paging": true,
  113. "ordering": true,
  114. "info": true,
  115. "order": [[1, "desc"]],
  116. "stateSave": true,
  117. "pagingType": "full",
  118. "bFilter": true,
  119. "aoColumnDefs": [{
  120. 'bSortable': false,
  121. 'aTargets': [0] //不想參加排序的欄位,可指定多個,逗號分隔
  122. }]
  123. });
  124. $('#GV_tcheckin').dataTable({
  125. "scrollX": true,
  126. "processing": true,
  127. "serverSide": true,
  128. "ajax": "tauditManagement/grid/tcheckin",
  129. "paging": true,
  130. "ordering": true,
  131. "info": true,
  132. "order": [[1, "desc"]],
  133. "stateSave": true,
  134. "pagingType": "full",
  135. "bFilter": true,
  136. "aoColumnDefs": [{
  137. 'bSortable': false,
  138. 'aTargets': [0] //不想參加排序的欄位,可指定多個,逗號分隔
  139. }]
  140. });
  141. $('#GV_tgood').dataTable({
  142. "scrollX": true,
  143. "processing": true,
  144. "serverSide": true,
  145. "ajax": "tauditManagement/grid/tgood",
  146. "paging": true,
  147. "ordering": true,
  148. "info": true,
  149. "order": [[1, "desc"]],
  150. "stateSave": true,
  151. "pagingType": "full",
  152. "bFilter": true,
  153. "aoColumnDefs": [{
  154. 'bSortable': false,
  155. 'aTargets': [0] //不想參加排序的欄位,可指定多個,逗號分隔
  156. }]
  157. });
  158. // 從網址參觸發搜尋
  159. custom_search();
  160. $('#GV_tround_filter').hide();
  161. $('#GV_tcheckin_filter').hide();
  162. $('#GV_tgood_filter').hide();
  163. });
  164. //客製化搜尋欄位
  165. function custom_search() {
  166. $('#GV_tround').DataTable();
  167. $('#GV_tround').dataTable().fnDraw(true);
  168. $('#GV_tcheckin').DataTable();
  169. $('#GV_tcheckin').dataTable().fnDraw(true);
  170. $('#GV_tgood').DataTable();
  171. $('#GV_tgood').dataTable().fnDraw(true);
  172. }
  173. </script>
  174. @endsection