<!-- BEGIN: MAIN -->

<link rel="stylesheet" type="text/css" href="themes/itbirja/css/fontawesome.v5.min.css">
<div class="m-hidden">
  <div class="userbanner" style="background: url(<!-- IF {PHP.usr.profile.user_photo} -->{PHP.usr.profile.user_photo}<!-- ELSE -->themes/itbirja/files/cover/header1.jpg<!-- ENDIF -->) no-repeat center center; background-size: cover;">
    <div class="centerwrap clearfix">
      <div class="contentArea mt40 sm-text-center">
        <div class="pull-left sm-pull-reset"><img class="rounded" alt="{PHP.usr.name}" src="<!-- IF {PHP.usr.profile.user_avatar} -->{PHP.usr.profile.user_avatar}<!-- ELSE -->themes/itbirja/files/avatar/big/noprofilepicture.gif<!-- ENDIF -->" width="80" height="80"/></div>
        <div class="userbannertext pull-left ml15 sm-pull-reset m-text-center m-m0">
          <div>
            <h1 class="mt0">{PHP.usr.name}</h1>
            <span class="font-OpenSans f14 ml14 is-online-block color-lightGray"><i class="icon ico-online"></i> Онлайн</span>
          </div>
          <div class="color-white2 sm-pull-reset mb10">{PHP.usr.profile.user_FNAME}</div>
          <div class="color-white">
            <div class="pull-left cusongsblock-panel__rating mti3">
              <ul class="rating-block dib v-align-m">
                <!-- IF {PHP.usr.tags.RSTAR} > 0 -->
                <li class="mr2 v-align-m">
                    <i class="fa fa-star gold" aria-hidden="true"></i>
                </li>
                <li class="rating-block__rating-item--number fw600 v-align-m">{PHP.usr.tags.RSTAR}&nbsp;</li>
                <!-- ENDIF -->
              </ul>
            </div>
            <p class="dib sm-pull-reset color-white2"><!-- IF {PHP.urr.user_maingrp} == 7 -->{PHP.usr.tags.MK_PAYER_GROUP}<!-- ELSE -->{PHP.usr.tags.MK_SELLER_GROUP}<!-- ENDIF --></p>
            <span class="ml5"></span>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<div class="page-balance">

  <div class="centerwrap clearfix pt20 pb0 block-response">
    <h1 class="f32">{PHP.L.affiliate}</h1>
    {FILE "{PHP.cfg.themes_dir}/{PHP.cfg.defaulttheme}/warnings.tpl"}
  </div>

  <div class="centerwrap clearfix pb0 block-response">
    <div class="bgLightGray p20">
      {PHP.L.affiliate_link_title}:
      <div class="alert alert-info mt10">{PHP.cfg.mainurl}/?pro={PHP.usr.id}</div>

    	{PHP.L.affiliate_tree_title}:
    	{REFERALS_TREE}
    </div>
  </div>

  <div class="centerwrap clearfix mt0 pb20 block-response mt15 m-p0">
    <table class="table-style response-table m-order-table">
      <thead>
        <tr>
          <td class="pl20"><span>#</span></td>
          <td class="w19p">
            <div class="ml20"><span>Дата</span></div>
          </td>
          <td class="w52p"><span>{PHP.L.affiliate_referal}</span></td>
          <td class="w12p pr0"><span>Сумма</span></td>
        </tr>
      </thead>
      <tbody>
        <!-- BEGIN: PAY_ROW -->
        <tr>
          <td class="pl20">
            {PAY_ROW_ID}
          </td>
          <td class="m-text-right">{PAY_ROW_PDATE|cot_date('d.m.Y H:i', $this)}</td>
          <td class="clearfix">
            {PAY_ROW_REFERAL_NAME}
          </td>
          <td class="m-w50p m-pull-right pr0 m-text-right">
            <!-- IF {PAY_ROW_IN_DODJI} -->{PAY_ROW_SUMM_DODJI|number_format($this, 2, '.', ' ')}<!-- ELSE -->{PAY_ROW_SUMM|number_format($this, 2, '.', ' ')}<!-- ENDIF -->
            &nbsp;
            <span class="rouble<!-- IF {PAY_ROW_IN_DODJI} --> rouble-dodji<!-- ENDIF -->">Р</span>
          </td>
        </tr>
        <!-- END: PAY_ROW -->
      </tbody>
    </table>

    <p class="pl20">{PHP.L.payments_allpayments}: {PAYMENT_SUMM|number_format($this, '2', '.', ' ')} {PHP.cfg.payments.valuta}, {PAYMENT_SUMM_DODJI|number_format($this, '2', '.', ' ')} {PHP.cfg.payments.valutadodji}</p>
   </div>
  </div>

</div>
<!-- END: MAIN -->