<div class="my_dohod">Статистика</div> </div> <div class="partner"> <div>Ваш партнерский номер:</div> <div class="bablo"><?php echo $_SESSION['partner_id'] != '0' ? $_SESSION['partner_id'] : $_GET['resellers_id']; ?> </div> <div>Баланс:</div> <div class="bablo"><?php echo oborot($_SESSION['partner_id'] != '0' ? $_SESSION['partner_id'] : $_GET['resellers_id'], '0', '1') . ' руб.'; ?> </div> <div>Оборот:</div> <div><?php echo oborot($_SESSION['partner_id'] != '0' ? $_SESSION['partner_id'] : $_GET['resellers_id'], '1', '0') . ' руб.'; ?> </div> </div> <div class="my_finansi mtop10"> <div class="my_dohod">История выплат</div> </div> <div class="partner"> <ul> <?php foreach (get_viplaty($_SESSION['partner_id'] != '0' ? $_SESSION['partner_id'] : $_GET['resellers_id']) as $key => $val) { echo '<li>' . $key . ' - ' . $val . ' руб.</li>'; } ?> </ul> </div>
//$balans = oborot($partner, '0', '1'); if ($_SESSION['login'] == 'maxim') { $www = select_users('partner', $_SESSION['partner_id']); //var_dump($www); } ?> <table class="table table-striped mtop10"> <tbody> <tr> <th>Номер</th> <th>Ф.И.О. партнера</th> <th>Телефон</th> <th>E-mail</th> <th>Баланс</th> <th>Действия</th> </tr> <?php $select_users = select_users('partner', $_SESSION['partner_id']); while ($fetch_users = $select_users->fetch_assoc()) { $fio = $fetch_users['familiya'] . ' ' . $fetch_users['name'] . ' ' . $fetch_users['otchestvo']; echo '<tr><td>' . $fetch_users['partner_id'] . '</td><td>' . $fio . '</td><td>' . $fetch_users['telefon'] . '</td><td>' . $fetch_users['email'] . '</td>'; echo '<td>' . oborot($fetch_users['partner_id'], $vsego = '0', $ostatok = '1') . '</td> <td><a title="Выплаты" class="fancybox fancybox.iframe" href="/inc/resellers/viplaty.php?id=' . $fetch_users['id'] . '"><span class="glyphicon glyphicon-usd"></span></a> <a title="Клиенты от реселлера" href="/inc/resellers/index.php?resellers_id=' . $fetch_users['partner_id'] . '"><span class="glyphicon glyphicon-th-list"></span></a></td></tr>'; } ?> </tbody> </table> <?php include "template/default/footer.php";