<!-- 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 page-offers">
  <h1 class="font-OpenSans semibold f32">Запросы от покупателей</h1>
  <div class="mt30 mb15">
    <div class="btn-group">
      <a href="{PHP|cot_url('projects')}" class="btn-group__button wide white-btn">Запросы на услуги</a>
      <a href="{PHP|cot_url('projects', 'm=useroffers')}" class="btn-group__button wide green-btn">Ваши предложения</a>
    </div>
    <div class="clearfix"></div>
  </div>
  <div>
    <table class="wMax table-style table-fixed offers-list-grid">
      <thead>
        <tr>
          <td style="padding-left:20px" width="150">Покупатель</td>
          <td width="315">Запрос</td>
          <td width="425">Моё предложение</td>
          <td width="20" class="p0"></td>
        </tr>
      </thead>
      <tbody>
        <!-- BEGIN: OFFER_ROWS -->
        <tr id="offer_id{OFFER_ROW_ID}">
          <td valign="top">
            <div class="query-item__name-block">
              <a href="{OFFER_ROW_OWNER_DETAILSLINK}">
                <div class="user-avatar query-item__avatar v-align-m s30 pull-left">
                  <img class="user-avatar__picture rounded" width="50px" src="<!-- IF {OFFER_ROW_PROJECT_OWNER_AVATAR_SRC} -->{OFFER_ROW_PROJECT_OWNER_AVATAR_SRC}<!-- ELSE -->themes/itbirja/files/avatar/big/noprofilepicture.gif<!-- ENDIF -->" alt="{OFFER_ROW_OWNER_NICKNAME}">
                </div>
                <div class="pull-left" style="padding-top: 15px;">{OFFER_ROW_PROJECT_OWNER_NICKNAME}</div>
                <div class="cleafix"></div>
              </a>
            </div>
          </td>
          <td valign="top">
            <div class="query-item__want-name breakwords js-shortened-text shortened-text" data-min-length="130" data-replace-text="{OFFER_ROW_PROJECT_SHORTTITLE}">{OFFER_ROW_PROJECT_SHORTTITLE}</div>
            <div class="query-item__info">
              <div class="pb5">{OFFER_ROW_DATE}</div>
              <div class="pb5">Предложений: {OFFER_ROW_PROJECT_OFFERS_COUNT}</div>
            </div>
          </td>
          <td valign="top">
            <table class="order-info__table">
              <tbody>
                <tr class="">
                  <td class="offer-desc" colspan="2">
                    <!-- IF {OFFER_ROW_PRD_ID} > 0 -->
                      <a href="{OFFER_ROW_PROJECT_URL}" class="order-info__name dib semibold pb10">{OFFER_ROW_PROJECT_SHORTTITLE}</a>
                    <!-- ELSE -->
                      <span class="order-info__name dib semibold pb10" style="color: #000;">{OFFER_ROW_PROJECT_SHORTTITLE}</span>
                    <!-- ENDIF -->
                  </td>
                  <td width="20" align="right" class="offer-price">
                    <b>
                      {OFFER_ROW_COST} &nbsp;<span class="rouble">Р</span>
                    </b>
                    <div class="pt10"></div>
                  </td>
                </tr>
                <tr>
                  <td style="width:10%"></td>
                  <td class="offer-desc">
                    <span class="order-info__extra-name">Количество {PHP|cot_sitename('padeg', '_r')}</span>
                  </td>
                  <td align="right" class="offer-price">
                    <span class="order-info__extra-price">
                    {OFFER_ROW_MDATA.count} ({OFFER_ROW_COST} &nbsp;<span class="rouble">Р</span>
                    )
                    </span>
                  </td>
                </tr>
                <!-- IF {OFFER_ROW_TEXT} -->
                <tr>
                  <td colspan="3">
                    <div class="f13 pb10 break-word">
                      <b>Комментарий:</b>
                      {OFFER_ROW_TEXT}
                    </div>
                  </td>
                </tr>
                <!-- ENDIF -->
                <!-- IF !{OFFER_ROW_MDATA.pid} AND {OFFER_ROW_MDATA.desc} -->
                <tr>
                  <td colspan="3">
                    <div class="f13 pb10 break-word">
                      <b>Описание:</b>
                      {OFFER_ROW_MDATA.desc}
                    </div>
                  </td>
                </tr>
                <!-- ENDIF -->
              </tbody>
              <tfoot class="order-info__footer">
                <tr>
                  <td align="right" colspan="2">
                    <div class="pull-left">
                      <!-- IF {OFFER_ROW_MDATA.orderId} > 0 -->
                        <span class="status-block status-block_green dib" role="button" onclick="location.href='{OFFER_ROW_MDATA.orderId|cot_url('plug', 'e=marketorders&m=order&id='$this)}';">Заказ #{OFFER_ROW_MDATA.orderId}</span>
                      <!-- ELSE -->
                        <span class="status-block status-block_blue dib">Отправлено</span>
                      <!-- ENDIF -->
                    </div>
                    <span class="order-info__total-days">Всего:&nbsp;&nbsp;{OFFER_ROW_DURATION}</span>
                    <div class="clear"></div>
                  </td>
                  <td align="right" valign="top">
                    <span class="order-info__total-price">
                    {OFFER_ROW_COST} &nbsp;<span class="rouble">Р</span>
                    </span>
                  </td>
                </tr>
              </tfoot>
            </table>
          </td>
          <td valign="top" style="padding-right:0">
            <a class="mt2 dib js-query-item__delete" data-id="{OFFER_ROW_ID}">
            <i class="icon ico-trash-18"></i>
            </a>
          </td>
        </tr>
        <!-- END: OFFER_ROWS -->
      </tbody>
    </table>
    <div style="text-align:center;" class="mb10">
      <div class="paging">
        <div class="p1">
          <ul>
            {PAGENAV_PAGES}
          </ul>
        </div>
      </div>
    </div>
  </div>
</div>
<script src="themes/itbirja/js/pages/useroffers.js"></script>
<!-- END: MAIN -->


