index.php 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <?php
  2. $this->title = '首页';
  3. ?>
  4. <?php $this->beginBlock('header_script'); ?>
  5. <link href="<?= STATIC_URL ?>/ui/css/plugins/dataTables/datatables.min.css" rel="stylesheet">
  6. <?php $this->endBlock(); ?>
  7. <div class="row">
  8. <div class="col-md-3">
  9. <?= $this->render('/common/_left_menu.php') ?>
  10. </div>
  11. <div class="col-md-9">
  12. <div class="row">
  13. <!--<div class="col-md-3">
  14. <div class="ibox float-e-margins">
  15. <div class="ibox-content">
  16. <h1 class="no-margins"><?= $fvSum ?></h1>
  17. <small class="text-navy">外汇总手数</small>
  18. </div>
  19. </div>
  20. </div>
  21. <div class="col-md-3">
  22. <div class="ibox float-e-margins">
  23. <div class="ibox-content">
  24. <h1 class="no-margins"><?= $mvSum ?></h1>
  25. <small class="text-navy">贵金属总手数</small>
  26. </div>
  27. </div>
  28. </div>
  29. <div class="col-md-3">
  30. <div class="ibox float-e-margins">
  31. <div class="ibox-content">
  32. <h1 class="no-margins"><?= $cvSum ?></h1>
  33. <small class="text-navy">CFD总手数</small>
  34. </div>
  35. </div>
  36. </div>
  37. <div class="col-md-3">
  38. <div class="ibox float-e-margins">
  39. <div class="ibox-content">
  40. <h1 class="no-margins"><?= $tvSum ?></h1>
  41. <small class="text-navy">总手数</small>
  42. </div>
  43. </div>
  44. </div>
  45. </div>-->
  46. <div class="ibox">
  47. <div class="ibox-title">
  48. <h5>账户信息</h5>
  49. </div>
  50. <div class="ibox-content">
  51. <table class="table table-bordered">
  52. <tbody>
  53. <tr>
  54. <th>账户</th>
  55. <td><?= $mt4user['LOGIN'] ?></td>
  56. <th>余额</th>
  57. <td>$<?= $mt4user['BALANCE'] ?></td>
  58. <th>直客数</th>
  59. <td><?= $directlyUserCount ?></td>
  60. </tr>
  61. </tbody>
  62. </table>
  63. </div>
  64. </div>
  65. <!--<div class="row">
  66. <div class="col-md-12">
  67. <div class="ibox-title">
  68. <h5>增长曲线</h5>
  69. </div>
  70. <div class="ibox-content">
  71. <div class="flot-chart">
  72. <div class="flot-chart-content" id="sumDepositByDay"></div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>-->
  77. <div class="ibox-content">
  78. <div class="ibox-title">
  79. <h5>工单申请进度情况</h5>
  80. </div>
  81. <div class="table-responsive">
  82. <table id="datatables" class="table table-striped table-bordered table-hover dataTables-example">
  83. <thead>
  84. <tr>
  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. </div>
  96. </div>
  97. </div>
  98. </div>
  99. <?php $this->beginBlock('footer_script'); ?>
  100. <!-- Mainly scripts -->
  101. <!-- Flot -->
  102. <!--<script src="<?= STATIC_URL ?>/ui/js/plugins/flot/jquery.flot.js"></script>
  103. <script src="<?= STATIC_URL ?>/ui/js/plugins/flot/jquery.flot.tooltip.min.js"></script>
  104. <script src="<?= STATIC_URL ?>/ui/js/plugins/flot/jquery.flot.resize.js"></script>
  105. <script src="<?= STATIC_URL ?>/ui/js/plugins/flot/jquery.flot.pie.js"></script>
  106. <script src="<?= STATIC_URL ?>/ui/js/plugins/flot/jquery.flot.time.js"></script>-->
  107. <script src="<?= STATIC_URL ?>/ui/js/plugins/dataTables/datatables.min.js"></script>
  108. <script>
  109. var table;
  110. $(document).ready(function() {
  111. var sumDepositByDay = <?= $depositSumByDay ?>;
  112. /*$.plot($("#sumDepositByDay"), [{
  113. data: sumDepositByDay
  114. }], {
  115. xaxes: [{
  116. mode: 'time',
  117. timeformat: "%y/%m/%d"
  118. }],
  119. colors: ["#1ab394"],
  120. grid: {
  121. color: "#999999",
  122. hoverable: true,
  123. clickable: true,
  124. tickColor: "#D4D4D4",
  125. borderWidth:0,
  126. hoverable: true //IMPORTANT! this is needed for tooltip to work,
  127. },
  128. tooltip: true,
  129. tooltipOpts: {
  130. content: "截止 %x 的总佣金 %y ",
  131. xDateFormat: "%y/%m/%d",
  132. onHover: function(flotItem, $tooltipEl) {
  133. // console.log(flotItem, $tooltipEl);
  134. }
  135. }
  136. });*/
  137. table = $('#datatables').DataTable({
  138. <?php if ($isHaveAdmin) : ?>
  139. "aLengthMenu": [[20,50,100,500,999999999], [20,50,100,500,"ALL"]],
  140. <?php else : ?>
  141. "aLengthMenu": [[20,50,100], [20,50,100]],
  142. <?php endif; ?>
  143. language: {
  144. "sProcessing": "处理中...",
  145. "sLengthMenu": "显示 _MENU_ 项结果",
  146. "sZeroRecords": "没有匹配结果",
  147. "sInfo": "显示第 _START_ 至 _END_ 项结果,共 _TOTAL_ 项",
  148. "sInfoEmpty": "显示第 0 至 0 项结果,共 0 项",
  149. "sInfoFiltered": "(由 _MAX_ 项结果过滤)",
  150. "sInfoPostFix": "",
  151. "sSearch": "搜索账户,客户姓名:",
  152. "sUrl": "",
  153. "sEmptyTable": "表中数据为空",
  154. "sLoadingRecords": "载入中...",
  155. "sInfoThousands": ",",
  156. "oPaginate": {
  157. "sFirst": "首页",
  158. "sPrevious": "上页",
  159. "sNext": "下页",
  160. "sLast": "末页"
  161. },
  162. "oAria": {
  163. "sSortAscending": ": 以升序排列此列",
  164. "sSortDescending": ": 以降序排列此列"
  165. }
  166. },
  167. "bProcessing": true,
  168. "serverSide": true,
  169. "ajax": '/ib/dashboard/apply-list',
  170. "order": [[3, "desc"]],
  171. "columns": [{
  172. "data": "login"
  173. },{
  174. "data": "name"
  175. },{
  176. "data": "business"
  177. },{
  178. "data": "in_time"
  179. },{
  180. "data": "type"
  181. },{
  182. "data": "complete_time"
  183. },{
  184. "data": "memo"
  185. }],
  186. columnDefs: [{
  187. targets: 0,
  188. "orderable": false
  189. },{
  190. targets: 1,
  191. "orderable": false
  192. },{
  193. targets: 6,
  194. "orderable": false
  195. }],
  196. "sPaginationType": "full_numbers",
  197. dom: '<"html5buttons"B>lTfgitp',
  198. buttons: [{
  199. extend: 'copy'
  200. },
  201. {
  202. extend: 'csv'
  203. },
  204. {
  205. extend: 'excel'
  206. },
  207. {
  208. extend: 'pdf'
  209. },
  210. {
  211. extend: 'print',
  212. customize: function(win) {
  213. $(win.document.body).addClass('white-bg');
  214. $(win.document.body).css('font-size', '10px');
  215. $(win.document.body).find('table').addClass('compact').css('font-size', 'inherit');
  216. }
  217. }]
  218. });
  219. });
  220. </script>
  221. <?php $this->endBlock(); ?>