<!-- BEGIN: MAIN -->
<!-- IF !{AJAX_LOAD} -->
<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="project-centerwrap clearfix pt20 mb60 page-projects">
  <h1 class="font-OpenSans semibold f32 pull-left">Запросы от покупателей</h1>
  <div class="info-block info-block_projects mt0 info-block-wrapper lang-ru mb0" data-type="projects">
    <div class="info-block__ico">
      <i class="info-block__ico-image icon ico-i-small relative" style="left: 2px;"></i>
    </div>
    <div class="f13 font-OpenSans">
      <div class="info-block__text">
        <div class="info-block__text-inner">
          <p class="pb5">Здесь вы найдете запросы на услуги от покупателей. Вы можете предложить на запрос {PHP|cot_sitename('phrases', 'svou')}. Если {PHP|cot_sitename('phrases', 'podhodyashei')} у вас нет, создайте {PHP|cot_sitename('gender_2')}. Тогда вы сможете отправить нужное предложение.</p>
        </div>
      </div>
      <a href="javascript:void(0)" class="js-info-block__link info-block__link link_local">Скрыть подсказку</a>
    </div>
  </div>
  <div class="clear"></div>
  <div class="mt20 mb15">

    <div class="btn-group">
			<a href="{PHP|cot_url('projects')}" class="btn-group__button wide green-btn">
				Запросы на услуги
			</a>
			<a href="{PHP|cot_url('projects', 'm=useroffers')}" class="btn-group__button wide white-btn">
			 Ваши предложения
			</a>
		</div>
  </div>

  <div style="margin-bottom: 15px;">
    <div class="categoriesList">
      <div class="cat_select has-tooltip">
        <div class="cat_select_addblock">
          <div class="dib mr15" style="width: 270px;">
            <select class="select-styled wMax select-styled--thin f14 parents dib mr10" id="parents" name="parents" autocomplete="off">
              <option value="all" class="fw600"<!-- IF !{PHP.c} AND !{PHP.a} --> selected="selected"<!-- ENDIF -->>Все категории</option>
              <option value="mine" class="fw600" data-sel="sel"<!-- IF {PHP.a} --> selected="selected"<!-- ENDIF -->>Мои категории</option>
              <!-- BEGIN: CATS_ROW -->
                <option value="{CAT_ROW_CODE}"{CAT_ROW_SELECTED}>{CAT_ROW_TITLE}</option>
              <!-- END: CATS_ROW -->
            </select>
          </div>

          <div class="js-sub-cat-container dib" style="<!-- IF {PHP.a} -->display:none;<!-- ENDIF -->width: 270px;" class="ml10">
            <select class="sub_category sub_empty select-styled select-styled--thin f14 childs dib gig_categories wMax<!-- IF {PHP.c} OR {PHP.a} --> hidden<!-- ENDIF -->" name="subAll" required autocomplete="off">
              <option value="">Все подкатегории</option>
            </select>
            <!-- BEGIN: CATSUBCATS_ROW -->
            <select data-catId="{CAT_ROW_CODE}" class="sub-{CAT_ROW_CODE} wMax sub_category select-styled select-styled--thin long-touch-js f14 childs dib gig_categories<!-- IF !{CAT_ROW_SELECTED} --> hidden<!-- ENDIF -->" autocomplete="off">
              <option value="subAll" selected="selected" data-sel="sel">Все подкатегории</option>
              <!-- BEGIN: SUBCATS_ROW -->
              <option style="color:#000" value="{SUBCAT_ROW_CODE}"{SUBCAT_ROW_SELECTED}>{SUBCAT_ROW_TITLE}</option>
              <!-- END: SUBCATS_ROW -->
            </select>
            <!-- END: CATSUBCATS_ROW -->
          </div>
          <div class="tooltipster tooltip_circle tooltip_circle--light js-is-active-tooltip tooltip_circle--hover ml5<!-- IF !{PHP.a} --> hidden<!-- ENDIF -->" data-tooltip-text="Категории, в которых у вас есть активные {PHP|cot_sitename('padeg', '_i')}">?
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="project-list js-project-list" data-preloader-class="preloader__ico_projects" data-preloader-opacity="true">
<!-- ENDIF -->
    <!-- BEGIN: PRJ_ROWS -->
    <div class="card mb20 js-card-{PRJ_ROW_ID}">
      <div class="card__content pb5">
        <div class="mb15">
          <div class="project-name mb10 first-letter">{PRJ_ROW_SHORTTITLE}</div>
          <div>
            <!-- IF {PRJ_ROW_SHORTTEXT} -->
            <div class="breakwords first-letter f14 js-want-block-desc-short" onclick="wantAddView({PRJ_ROW_ID});">
              {PRJ_ROW_SHORTTEXT}...&nbsp;<a role="button" class="js-want-toogle-desc-FIX link_local" onclick="$(this).parent().addClass('hidden').next().removeClass('hidden');">Показать полностью</a>
            </div>
            <div class="breakwords first-letter f14 js-want-block-desc-full hidden">
              {PRJ_ROW_TEXT}&nbsp;<a role="button" class="js-want-toogle-desc-FIX link_local" onclick="$(this).parent().addClass('hidden').prev().removeClass('hidden');">Скрыть</a>
            </div>
            <!-- ELSE -->
            <div class="breakwords first-letter f14 js-want-block-desc-short" onclick="wantAddView({PRJ_ROW_ID});">
              {PRJ_ROW_TEXT}
            </div>
            <!-- ENDIF -->
          </div>
          <!-- IF {PRJ_ROW_MAVATARS.MAVATARCOUNT} > 0 -->
          <div class="files-list mt10">
            <!-- FOR {KEY}, {VALUE} IN {PRJ_ROW_MAVATARS.MAVATAR} -->
            <div id="id{VALUE.ID}" class="mb5 file-item">
              <a href="{VALUE.URL}" target="_blank" class="color-text">
                <i class="ico-file-{VALUE.FILEEXTICON} dib v-align-m"></i>
                <span class="dib v-align-m ml10">{VALUE.FILEORIGNAME}.{VALUE.FILEEXT}</span>
              </a>
            </div>
            <!-- ENDFOR -->
          </div>
          <!-- ENDIF -->
        </div>
        <div style="padding-right:0;text-align:right;">
          <div class="query-item__info mb10" style="text-align:left; padding-top: 8px;">Осталось: {PRJ_ROW_TIMELEFT} &nbsp;&nbsp;&nbsp;Предложений: {PRJ_ROW_OFFERS_COUNT}</div>
          <div class="query-seen_block hide mr10" style="display:inline-block">
            <img src="https://prd.ru/images/ico-galka-green.png" alt=""/>
            <span>ПРОСМОТРЕНО</span>
          </div>
          <!-- IF {PHP.usr.id} != {PRJ_ROW_USER_ID} -->
            <!-- IF {PRJ_ROW_OFFEREXITST} -->
              <a class="green-btn projects-offer-btn" href="{PRJ_ROW_URL}">Открыть ваше предложение</a>
            <!-- ELSE -->
              <!-- IF {PRJ_ROW_CANSENDOFFER} == 0 -->
              <span class="tooltipster dib" data-tooltip-text="У вас нет {PHP|cot_sitename('padeg', '_r')} в категории «{PRJ_ROW_CATPATH_TITLES|implode(' > ', $this)}». После создания и модерации {PHP|cot_sitename('padeg', 'r')} вы сможете отправлять предложения в этой категории">
                <a class="disabled white-btn projects-offer-btn">Предложить {PHP|cot_sitename('padeg', 'v')}</a>
              </span>
              <!-- ENDIF -->
              <!-- IF {PRJ_ROW_CANSENDOFFER} == 1 -->
              <a class="green-btn projects-offer-btn" href="{PRJ_ROW_URL}">Предложить {PHP|cot_sitename('padeg', 'v')}</a>
              <!-- ENDIF -->
            <!-- ENDIF -->
          <!-- ENDIF -->
        </div>
      </div>
    </div>
    <!-- END: PRJ_ROWS -->
    <!-- BEGIN: PRJ_ROWS_EMPTY -->
    <div class="f15">Нет ни одного доступного запроса в выбранных категориях.<br><a class="js-blocked-prds" href="{PHP|cot_url('market', 'm=add')}">Создавайте</a> больше {PHP|cot_sitename('padeg', '_r')} в разных категориях, чтобы получать больше предложений об участии в запросах.</div>
    <!-- END: PRJ_ROWS_EMPTY -->

    <div style="text-align:center;" class="mb10">
      <div class="paging">
        <div class="p1">
          <ul>
            {PAGENAV_PREV}
            {PAGENAV_PAGES}
            {PAGENAV_NEXT}
          </ul>
        </div>
      </div>
    </div>
<!-- IF !{AJAX_LOAD} -->
  </div>
</div>

<script src="themes/itbirja/js/pages/projects.js" type="text/javascript"></script>
<!-- ENDIF -->
<!-- END: MAIN -->