| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- <?php
- $this->title = '名下代理详细';
- ?>
- <div class="row">
- <div class="col-md-3">
- <?= $this->render('/common/_left_menu.php') ?>
- </div>
- <div class="col-md-9">
- <ol class="breadcrumb">
- <li>
- <a href="/ib/dashboard">首页</a>
- </li>
- <li>
- <a href="/ib/ibs">名下代理</a>
- </li>
- <li class="active">
- <strong>代理详细</strong>
- </li>
- </ol>
- <div class="row">
- <div class="col-md-6">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <h1 class="no-margins">$<?= $equity ?></h1>
- <small class="text-navy">净值</small>
- </div>
- </div>
- </div>
- <div class="col-md-6">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <h1 class="no-margins">$<?= $depositSum ?></h1>
- <small class="text-navy">总佣金</small>
- </div>
- </div>
- </div>
- <div class="col-md-6">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <h1 class="no-margins">$<?= $withdrawSum ?></h1>
- <small class="text-navy">总出金</small>
- </div>
- </div>
- </div>
- <div class="col-md-6">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <h1 class="no-margins"><?= $directlyUserCount ?></h1>
- <small class="text-navy">直属MT4账户总数</small>
- </div>
- </div>
- </div>
- </div>
- <div class="ibox">
- <div class="ibox-title">
- <h5>代理信息</h5>
- </div>
- <div class="ibox-content">
- <table class="table table-bordered">
- <tbody>
- <tr>
- <th>姓名</th>
- <td><?= $ib['name'] ?></td>
- <th>返佣账户</th>
- <td><?= $ib['logins'] ?></td>
- </tr>
- <tr>
- <th>邮箱</th>
- <td><?= $ib['username'] ?></td>
- <th>手机</th>
- <td><?= $ib['mobile'] ?></td>
- </tr>
- <?php foreach (explode(',', $ib['logins']) as $k => $v) : ?>
- <tr>
- <th>返佣账户</th>
- <td><?= $v ?></td>
- <th>余额</th>
- <td>$<?= isset($mt4Users[$v]['BALANCE']) ? $mt4Users[$v]['BALANCE'] : 0 ?></td>
- </tr>
- <?php endforeach; ?>
- </tbody>
- </table>
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- <div class="ibox-title">
- <h5>佣金增长曲线</h5>
- </div>
- <div class="ibox-content">
- <div class="flot-chart">
- <div class="flot-chart-content" id="sumDepositByDay"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <?php $this->beginBlock('footer_script'); ?>
- <!-- Mainly scripts -->
- <!-- Flot -->
- <script src="<?= STATIC_URL ?>/ui/js/plugins/flot/jquery.flot.js"></script>
- <script src="<?= STATIC_URL ?>/ui/js/plugins/flot/jquery.flot.tooltip.min.js"></script>
- <script src="<?= STATIC_URL ?>/ui/js/plugins/flot/jquery.flot.resize.js"></script>
- <script src="<?= STATIC_URL ?>/ui/js/plugins/flot/jquery.flot.pie.js"></script>
- <script src="<?= STATIC_URL ?>/ui/js/plugins/flot/jquery.flot.time.js"></script>
- <script>
- $(document).ready(function() {
- var depositSumByDay = <?= $depositSumByDay ?>;
- $.plot($("#sumDepositByDay"), [{
- data: depositSumByDay
- }], {
- xaxes: [{
- mode: 'time',
- timeformat: "%y/%m/%d"
- }],
- colors: ["#1ab394"],
- grid: {
- color: "#999999",
- hoverable: true,
- clickable: true,
- tickColor: "#D4D4D4",
- borderWidth:0,
- hoverable: true //IMPORTANT! this is needed for tooltip to work,
- },
- tooltip: true,
- tooltipOpts: {
- content: "截止 %x 的总佣金 %y ",
- xDateFormat: "%y/%m/%d",
- onHover: function(flotItem, $tooltipEl) {
- // console.log(flotItem, $tooltipEl);
- }
- }
- });
- });
- </script>
- <?php $this->endBlock(); ?>
|