<!-- BEGIN: MAIN -->
<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="centerwrap clearfix pt20 mb60">
  <div>
    <table class="wMax">
      <tbody>
        <!-- BEGIN: LAST_PRJ_BUTTON -->
        <tr>
          <td colspan="2">
            <div class="project_card card_secondary mb20">
              <div class="card__content">
                <div class="pull-left">
                  <div class="icon ico-add-order mb0 mr15" style="margin-top: 3px;"></div>
                </div>
                <div class="pull-left">
                  <div class="mb6 f18 semibold" style="color:green">Новый запрос</div>
                  <div class="f14">Поставьте задачу и получите десятки предложений от продавцов</div>
                </div>
                <div class="pull-right">
                  <a href="{PHP|cot_url('projects', 'm=add')}" class="green-btn btn--big">Разместить запрос</a>
                </div>
              </div>
            </div>
          </td>
        </tr>
        <!-- END: LAST_PRJ_BUTTON -->
        <!-- BEGIN: PRJS_EMPTY -->
        <div class="p15-20 border-b-none font-OpenSans">
          <div class="ta-center fs18">
            <div class="pb20">
              <img src="themes/itbirja/images/ico-proect.png" alt="" class="m-w100"/>
            </div>
            <div class="pb10 m-f14">
              Если вы не нашли {PHP|cot_sitename('phrases', 'nugnoivam')}, <br class="m-hidden"/>
              вы можете создать запрос на нужные услуги<br class="m-hidden"/>и получить десятки предложений от продавцов.
            </div>
            <div class="">
              <a href="{PHP|cot_url('projects', 'm=add')}" class="GreenBtnStyle left-panel-button fs20 mt20">Создать запрос</a>
            </div>
          </div>
        </div>
        <!-- END: PRJS_EMPTY -->
      </tbody>
    </table>
    <div class="clear"></div>
  </div>
  <table class="wMax">
    <tbody>
      <!-- BEGIN: PRJ_ROWS -->
      <tr>
        <td style="vertical-align:top;">
          <div class="project_card mb20 w700">
            <div class="card__content">
              <div class="p0 w100p">

                <div class="pull-right">
                  <a href="javascript:delete_request_confirm({PRJ_ROW_ID})" class="btn-edit dib" title="Удалить">
                   <i class="icon ico-trash-18" style="width:15px;height:20px"></i>
                  </a>
                </div>
                <div class="pull-right">
                  <a href="projects/edit/{PRJ_ROW_ID}" class="btn-edit mr10 dib" title="Изменить">
                   <i class="icon ico-edit" style="width:20px;height:20px"></i>
                  </a>
                </div>
                <!-- IF {PRJ_ROW_STATE} == 1 -->
                <div class="pull-right">
                  <a href="projects/edit/{PRJ_ROW_ID}?action=public" class="btn-edit mr10 dib" title="Перезапустить">
                   <i class="ico-play-gray" style="width:20px;height:20px"></i>
                  </a>
                </div>
                <!-- ENDIF -->
                <!-- IF {PRJ_ROW_STATE} == 0 -->
                <div class="pull-right">
                  <a href="javascript:stop_request_confirm({PRJ_ROW_ID})" class="btn-edit mr10 dib" title="Остановить">
                   <i class="ico-pause-gray" style="width:20px;height:20px"></i>
                  </a>
                </div>
                <!-- ENDIF -->

                <div>
                  <div>
                    <div class="mr10 pull-left v-align-m" style="padding-top:3px">
                      <!-- IF {PRJ_ROW_STATE} == 0 -->
                        <span class="status-block status-block_green first-letter dib" style="font-size:12px;">активен</span>
                      <!-- ENDIF -->
                      <!-- IF {PRJ_ROW_STATE} == 1 -->
                        <span class="status-block status-block_blue first-letter dib" style="font-size:12px;">остановлен</span>
                      <!-- ENDIF -->
                      <!-- IF {PRJ_ROW_STATE} == 2 -->
                        <span class="status-block status-block_blue first-letter dib" style="font-size:12px;">на модерации</span>
                      <!-- ENDIF -->
                      <!-- IF {PRJ_ROW_STATE} == 3 -->
                        <span class="status-block status-block_red first-letter dib" style="font-size:12px;">отклонен модератором</span>
                      <!-- ENDIF -->
                    </div>
                    <div class="font-OpenSans project-name first-letter wrappable" title="{PRJ_ROW_SHORTTITLE}">{PRJ_ROW_SHORTTITLE}</div>
                    <div class="clear"></div>
                  </div>
                </div>
                <div class="mb15"></div>
                <div class="wish_name f14 first-letter">{PRJ_ROW_TEXT}</div>
                <div class="mb15"></div>
                <div class="clear">
                  <!-- IF {PRJ_ROW_OFFERS_COUNT} > 0 -->
                  <a href="{PRJ_ROW_URL}" class="link-view-offers f13 mr20 green-btn" style="cursor:pointer;">Посмотреть {PRJ_ROW_OFFERS_COUNT|cot_declension($this, 'предложение,предложения,предложений')}</a>
                  <!-- ELSE -->
                  <a class="link-view-offers f13 mr20 disabled white-btn" style="cursor:pointer;">Пока нет предложений</a>
                  <!-- ENDIF -->
                  <span class="color-gray f13 font-OpenSans pull-right pt5">{PRJ_ROW_DATE_STAMP|cot_date('d M, H:i', $this)}</span>
                </div>
              </div>
              <div class="clear"></div>
            </div>
          </div>
        </td>
        <!-- IF {PRJ_ROW_STATE} == 3 -->
        <td class="project_card_reason">
          <div style="padding:15px 15px 14px;" class="newfox">Причина отклонения: {PRJ_ROW_MODER_REJECTED}</div>
        </td>
        <!-- ENDIF -->
      </tr>
      <!-- END: PRJ_ROWS -->
    </tbody>
  </table>
</div>

<div id="alertcheck">{FILE "{PHP.cfg.themes_dir}/{PHP.cfg.defaulttheme}/warnings.tpl"}</div>
<script>
  $(function() {
    if($('#alertcheck .alert.alert-error').length > 0) {
     var eul = $('#alertcheck').hide().find('.alert.alert-error ul');
     $('#event_list').after('<div class="fox_error"><p>'+eul.html().trim().replaceAll('<li>', '<p>').replaceAll('</li>', '</p>')+'</p></div>');
    }
    if($('#alertcheck .alert.alert-success').length > 0) {
     var eul = $('#alertcheck').hide().find('.alert.alert-success ul');
     $('#event_list').after('<div class="fox_success"><p>'+eul.html().trim().replaceAll('<li>', '<p>').replaceAll('</li>', '</p>')+'</p></div>');
    }
  });
</script>
<!-- END: MAIN -->