view.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <?php
  2. $this->title = '名下代理详细';
  3. ?>
  4. <div class="row">
  5. <div class="col-md-3">
  6. <?= $this->render('/common/_left_menu.php') ?>
  7. </div>
  8. <div class="col-md-9">
  9. <ol class="breadcrumb">
  10. <li>
  11. <a href="/ib/dashboard">首页</a>
  12. </li>
  13. <li>
  14. <a href="/ib/ibs">名下代理</a>
  15. </li>
  16. <li class="active">
  17. <strong>代理详细</strong>
  18. </li>
  19. </ol>
  20. <div class="row">
  21. <div class="col-md-6">
  22. <div class="ibox float-e-margins">
  23. <div class="ibox-content">
  24. <h1 class="no-margins">$<?= $equity ?></h1>
  25. <small class="text-navy">净值</small>
  26. </div>
  27. </div>
  28. </div>
  29. <div class="col-md-6">
  30. <div class="ibox float-e-margins">
  31. <div class="ibox-content">
  32. <h1 class="no-margins">$<?= $depositSum ?></h1>
  33. <small class="text-navy">总佣金</small>
  34. </div>
  35. </div>
  36. </div>
  37. <div class="col-md-6">
  38. <div class="ibox float-e-margins">
  39. <div class="ibox-content">
  40. <h1 class="no-margins">$<?= $withdrawSum ?></h1>
  41. <small class="text-navy">总出金</small>
  42. </div>
  43. </div>
  44. </div>
  45. <div class="col-md-6">
  46. <div class="ibox float-e-margins">
  47. <div class="ibox-content">
  48. <h1 class="no-margins"><?= $directlyUserCount ?></h1>
  49. <small class="text-navy">直属MT4账户总数</small>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. <div class="ibox">
  55. <div class="ibox-title">
  56. <h5>代理信息</h5>
  57. </div>
  58. <div class="ibox-content">
  59. <table class="table table-bordered">
  60. <tbody>
  61. <tr>
  62. <th>姓名</th>
  63. <td><?= $ib['name'] ?></td>
  64. <th>返佣账户</th>
  65. <td><?= $ib['logins'] ?></td>
  66. </tr>
  67. <tr>
  68. <th>邮箱</th>
  69. <td><?= $ib['username'] ?></td>
  70. <th>手机</th>
  71. <td><?= $ib['mobile'] ?></td>
  72. </tr>
  73. <?php foreach (explode(',', $ib['logins']) as $k => $v) : ?>
  74. <tr>
  75. <th>返佣账户</th>
  76. <td><?= $v ?></td>
  77. <th>余额</th>
  78. <td>$<?= isset($mt4Users[$v]['BALANCE']) ? $mt4Users[$v]['BALANCE'] : 0 ?></td>
  79. </tr>
  80. <?php endforeach; ?>
  81. </tbody>
  82. </table>
  83. </div>
  84. </div>
  85. <div class="row">
  86. <div class="col-md-12">
  87. <div class="ibox-title">
  88. <h5>佣金增长曲线</h5>
  89. </div>
  90. <div class="ibox-content">
  91. <div class="flot-chart">
  92. <div class="flot-chart-content" id="sumDepositByDay"></div>
  93. </div>
  94. </div>
  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>
  108. $(document).ready(function() {
  109. var depositSumByDay = <?= $depositSumByDay ?>;
  110. $.plot($("#sumDepositByDay"), [{
  111. data: depositSumByDay
  112. }], {
  113. xaxes: [{
  114. mode: 'time',
  115. timeformat: "%y/%m/%d"
  116. }],
  117. colors: ["#1ab394"],
  118. grid: {
  119. color: "#999999",
  120. hoverable: true,
  121. clickable: true,
  122. tickColor: "#D4D4D4",
  123. borderWidth:0,
  124. hoverable: true //IMPORTANT! this is needed for tooltip to work,
  125. },
  126. tooltip: true,
  127. tooltipOpts: {
  128. content: "截止 %x 的总佣金 %y ",
  129. xDateFormat: "%y/%m/%d",
  130. onHover: function(flotItem, $tooltipEl) {
  131. // console.log(flotItem, $tooltipEl);
  132. }
  133. }
  134. });
  135. });
  136. </script>
  137. <?php $this->endBlock(); ?>