<!-- BEGIN: MAIN -->
<script src="themes/itbirja/js/sL-plugin.min.js" type="text/javascript"></script>
<script src="themes/itbirja/js/chosen.jquery.min.js" type="text/javascript"></script>
<script src="themes/itbirja/js/libs/withinviewport.js" type="text/javascript"></script>
<script src="themes/itbirja/js/libs/jquery.withinviewport.min.js" type="text/javascript"></script>
<script src="themes/itbirja/js/pages/prd_new_edit.js" type="text/javascript"></script>
<script src="themes/itbirja/js/track/readTrackService.js" type="text/javascript"></script>
<script src="themes/itbirja/js/track/track.js" type="text/javascript"></script>
<script src="themes/itbirja/js/pages/add-files.js" type="text/javascript"></script>
<script src="themes/itbirja/js/jquery.imgareaselect.min.js" type="text/javascript"></script>

<script src="themes/itbirja/trumbowyg/trumbowyg.min.js"></script>
<script src="themes/itbirja/trumbowyg/langs/ru.min.js"></script>
<link rel="stylesheet" href="themes/itbirja/trumbowyg/ui/trumbowyg.min.css">
<script src="themes/itbirja/trumbowyg/plugins/colors/trumbowyg.colors.min.js"></script>
<link rel="stylesheet" href="themes/itbirja/trumbowyg/plugins/colors/ui/trumbowyg.colors.min.css">

<script>
  IS_ORDER_PAGE = {ORDER_ID};
  var Track = {
      "maxFileCount": 10,
      "maxFileSize": 6291456,
      "multiDodjiRate": 0.5,
      "isDodjiUser": false,
      "orderId": {ORDER_ID},
      "opponentId": {ORDER_SELLER_ID},
      "inCancelRequest": false,
      "canWriteMessage": false,
      "isDoneConvAllow": true,
      "isArbitrageEnabled": true,
      "canWriteReview": false,
      "editTypeReview": "all",
      "deadline": {ORDER_DEADLINE.date},
      "hasCountbox": {ORDER_DEADLINE.hasCountbox},
      "canWriteToSeller": true,
      "canSendPortfolio": false,
      "canDeletePortfolio": false,
      "canReOrder": true,
      "isCancelRequest": false,
      "needHideAddExtrasList": false,
      "maxDodjiCount": 10,
      "actorType": "payer",
      "time": {PHP.sys.now}
  };
</script>
<div class="centerwrap clearfix pb20 mt20">
  <div class="contentArea pb0 bgWhite clearfix mb0">
    <div class="p15-20 white-bg-border track-head" style="border-bottom:none;padding-bottom:25px;">
      <div class="">
        <div class="mb15">
          <div class="m-text-center prd-image">
            <div class="prd-image__inner rounded" style="background-image:url(<!-- IF {ORDER_PRD_PHOTO_FIRST_CROP} -->{ORDER_PRD_PHOTO_FIRST_CROP}<!-- ELSE --><!-- IF {ORDER_SELLER_AVATAR_SRC} -->{ORDER_SELLER_AVATAR_SRC}<!-- ELSE -->themes/itbirja/files/avatar/big/noprofilepicture.gif<!-- ENDIF --><!-- ENDIF -->);"></div>
          </div>
          <h1 class="pl10" style="display: table-cell;vertical-align:middle;">
            <!-- IF {ORDER_PRD_ID} > 0 -->
              <a class="color-text break-word" href="{ORDER_PRD_URL}">{ORDER_TITLE}</a>
            <!-- ELSE -->
              <span class="color-text break-word">{ORDER_TITLE}</span>
            <!-- ENDIF -->
          </h1>
          <div class="m-visible mt15"></div>
        </div>
      </div>
      <div class="clear"></div>
      <div class="pull-left m-pull-reset bread-crump block-response w100p mr-150 mb25 mt5">
        <span class="select-none">
        <a href="{PHP|cot_url('plug', 'e=marketorders&m=purchases')}">Мои заказы</a>
        <img class="ml10 mr10" style="width:5px" src="themes/itbirja/images/arrow_right_gray.png" alt="">
        </span>
        Заказ №{ORDER_ID} &nbsp;
      </div>
      <div class="pull-right m-pull-reset color-gray mt5">{ORDER_PAID|cot_date('d.m.Y, в H:i', $this)}</div>
      <div class="clear"></div>
      <div id="order-data" class="info mt10">
        <table class="order-info" style="width:100%;border-spacing:0px;table-layout:fixed;">
          <thead style="background-color:#f0f0f0;color:#000">
            <tr>
              <td style='padding:10px 20px;width:40%;' class="font-OpenSansSemi">Услуги</td>
              <td class="ta-center nowrap" style='width:14%;padding:10px 10px;'>Кол-во</td>
              <td class="ta-center nowrap" style='width:14%;padding:10px 10px;'>Срок</td>
              <td class="ta-center" style='width:18%;padding:10px 10px;'>Стоимость</td>
            </tr>
          </thead>
          <tbody>
            <tr class="font-OpenSans prd">
              <td style='padding:10px 20px;width: 100%;' class="order-info_services">
                <span class="f15 track-description-spoiler font-OpenSans link-color cur break-word" onclick="showDodjiDescription($(this));">
                <!-- IF {ORDER_PRD_ID} > 0 -->{ORDER_PRD_SHORTTITLE}<!-- ELSE -->{ORDER_TITLE}<!-- ENDIF --><img src="themes/itbirja/images/arrow_right_blue.png" width="9" alt=""/>
                </span>
              </td>
              <td class="nowrap" style="text-align:right;padding:10px 20px">{ORDER_COUNT}</td>
              <td class="nowrap" style="text-align:right;padding:10px 20px">{ORDER_COSTPLAN.info.time|cot_declension($this, 'день,дня,дней')}</td>
              <td class="nowrap" style="text-align:right;padding:10px 20px;color:#009900;">
                <!-- IF {ORDER_COSTPLAN.info.price} > 0 -->
                {ORDER_COSTPLAN.info.price}&nbsp;<span class="rouble">Р</span>
                <!-- ENDIF -->
                <!-- IF {ORDER_COSTPLAN.info.price_dodji} > 0 -->
                  <!-- IF {ORDER_COSTPLAN.info.price} > 0 -->/<!-- ENDIF -->
                  {ORDER_COSTPLAN.info.price_dodji}&nbsp;<span class="rouble rouble-dodji">Р</span>
                <!-- ENDIF -->
              </td>
            </tr>
            <tr class="track-order_description" style="display: none;">
              <td colspan="4" style='padding:10px 20px;' class="p10">
                <div class="shortened-url-track">
                  <span class="bold db">Описание {PHP|cot_sitename('padeg', 'r')}</span>
                  {ORDER_TEXT}
                </div>
                <br>
                <!-- IF {ORDER_COSTPLAN.extras.info.title} != '' -->
                  <div>
                    <span class="bold">Объем услуги при заказе {PHP|cot_sitename('gender_3')} {PHP|cot_sitename('padeg', 'r')}: </span>
                    {ORDER_COSTPLAN.extras.info.title}
                  </div>
                <!-- ENDIF -->
                <div class="mt10" onclick="hideDodjiDescription($(this));">
                  <a class="dib mt5 m-hidden" style="cursor:pointer;">
                  Свернуть<img src="themes/itbirja/images/arrow_right_blue.png" class="rotate180" width="9" alt=""/>
                  </a>
                </div>
              </td>
            </tr>
            <!-- BEGIN: ORDER_CP_ROW -->
            <tr class="option font-OpenSans">
              <td style="padding:10px 20px;width: 100%;" class="font-OpenSans break-word">
                {CP_ROW.name}
                <!-- IF {CP_ROW.type} == 'text' AND {CP_ROW.select} != '' -->
                  ({CP_ROW.select})
                <!-- ENDIF -->
              </td>
              <!-- IF {PHP.costplan.package} == 'single' OR {CP_ROW.opt_type} == 'custom_addextra' -->
                <td class="nowrap" style="text-align:right;padding:10px 20px">{CP_ROW.count}</td>
                <td class="nowrap" style="text-align:right;padding:10px 20px">{CP_ROW.time_format}</td>
                <td class="nowrap" style="text-align:right;padding:10px 20px;color:#009900;">
                  <!-- IF {CP_ROW.cost} > 0 -->
                    {CP_ROW.cost}&nbsp;<span class="rouble">Р</span>
                  <!-- ENDIF -->
                  <!-- IF {CP_ROW.cost_dodji} > 0 -->
                    <!-- IF {CP_ROW.cost} > 0 -->/<!-- ENDIF -->
                    {CP_ROW.cost_dodji}&nbsp;<span class="rouble rouble-dodji">Р</span>
                  <!-- ENDIF -->
                </td>
              <!-- ELSE -->
                <td class="nowrap" style="text-align:right;padding:10px 20px"></td>
                <td class="nowrap" style="text-align:right;padding:10px 20px"></td>
                <td style="text-align:right;padding:10px 20px;color:#009900;"></td>
              <!-- ENDIF -->
            </tr>
            <!-- END: ORDER_CP_ROW -->
            <tr class="m-hidden">
              <td colspan="4" style="margin:0px;padding:0px;">
                <div style="margin:5px 15px;background-color:#EAEAEA;height:1px;"></div>
              </td>
            </tr>
            <tr class="m-text-center">
              <td></td>
              <td class="nowrap f14 font-OpenSansSemi p10 m-text-cente t-align-r" style="padding:10px 20px;">Итого:</td>
              <td class="nowrap f14 font-OpenSansSemi p10 m-text-center t-align-r" style="padding:10px 20px">{ORDER_COSTPLAN.itog.time|cot_declension($this, 'день,дня,дней')}</td>
              <td class="nowrap f14 font-OpenSansSemi p10 m-text-center t-align-c" style="padding:10px 0">
                <!-- IF {ORDER_COST} > 0 -->
                  <span class="f20" style="color:#009900;">
                    {ORDER_COST}&nbsp;<span class="rouble">Р</span>
                  </span>
                <!-- ENDIF -->
                <!-- IF {ORDER_COST_DODJI} > 0 -->
                  <!-- IF {ORDER_COST} > 0 --><br><!-- ENDIF -->
                  <span class="f20" style="color:#009900;">
                    {ORDER_COST_DODJI}&nbsp;<span class="rouble rouble-dodji">Р</span>
                  </span>
                <!-- ENDIF -->
              </td>
            </tr>
          </tbody>
        </table>

        <!-- BEGIN: CP_NINORD -->
        <form action="/send_mk" method="post" name="addextras" id="addextrastop">
          <input type="hidden" name="action" value="addextras">
          <input type="hidden" name="addextrassubmited" value="1">
          <input type="hidden" name="orderId" value="{PHP.id}">
          <div style='width:100%;border-spacing:0px;'>
            <div class="show-extra-list-block font-OpenSansSemi" style="color: #000;" onclick="$('#addExtrasList').toggle();$(this).find('i').toggleClass('rotate180');">
              Закажите дополнительно <i class="ico-arrow-down dib v-align-m rotate180"></i>
            </div>
            <div style="margin-bottom: -10px; background: #fafafa none repeat scroll 0 0;" id="addExtrasList">
              <div class="order-extras" id="newextrachecks">
                <ul class="order-extras-list track-extras-list">
                  <!-- BEGIN: ORDER_CP_NINORD_ROW -->
                  <li data-id="{CP_ROW.id}">
                    <!--<input type="hidden" id="newe{CP_ROW.id}" value="500"/>-->
                    <input class="styled-checkbox" data-price="{CP_ROW.cost}" data-time="{CP_ROW.time}" data-id="{CP_ROW.id}" name="gextras[]" type="checkbox" value="{CP_ROW.id}">
                    <label for="order-extras_{CP_ROW.id}" class="w460">{CP_ROW.name}</label>
                    <div class="prd-count pull-right m-visible">
                      <div class="prd-count_minus">-</div>
                      <input type="text" value="1" class="prdcnt_mobile" readonly data-max="10" id="mobile_extra_count{CP_ROW.id}">
                      <div class="prd-count_plus">+</div>
                    </div>
                    <div class="m-hidden order-extras__select-block">
                      <select class="floatright h25 styled" id="extra_count{CP_ROW.id}" name="extra_count{CP_ROW.id}">
                        {CP_ROW.priceselect}
                      </select>
                      <script>
                        $('#extra_count{CP_ROW.id}').chosen({
                            width: "108px",
                            disable_search: true
                        });
                      </script>
                    </div>
                  </li>
                  <!-- END: ORDER_CP_NINORD_ROW -->
                </ul>
              </div>
              <div style='padding:10px 0px;background-color:white;'>
                <button class="green-btn pull-right ml10 disabled submit noOutline" type="button">
                Добавить к заказу за <span>0</span>
                руб.
                </button>
                <!-- IF {CP_NINORD_CNT} > 5 -->
                  <button class="white-btn pull-right ml10" onclick="$('#addextrastop .order-extras-list li').show();$(this).remove();">Показать все опции</button>
                <!-- ENDIF -->
                <div class="clear"></div>
              </div>
            </div>
          </div>
        </form>
        <!-- END: CP_NINORD -->
      </div>
      <div class="clear"></div>
    </div>
    <div class="waveborder bottom"></div>
    <div style="height:15px;background-color:#F6F6F6"></div>
    <div class="m-visible">
      <div class="sidebar-order-state p15-20 white-bg-border pt20">
        <div class="mb14">
          <i class="{ORDER_STATUSARR.icon} v-align-t mt5"></i>
          <h2 class="dib v-align-t ml10 w218 {ORDER_STATUSARR.color}">
            №{ORDER_ID}<br>
            <span class="track-order-state">
              {ORDER_STATUSARR.title}
              <!-- IF {ORDER_STATUSARR.hint} -->
                &nbsp;
                <span class="v-align-m tooltipster tooltip_circle tooltip_circle--light tooltip_circle--hover" data-tooltip-side="right" data-tooltip-text="{ORDER_STATUSARR.hint}">?</span>
              <!-- ENDIF -->
            </span>
          </h2>
        </div>
        <!-- IF {ORDER_DEADLINE.time} > 0 -->
        <i class="dib v-align-m icon-time ml5"></i>
        <span class="fs16 pl10 v-align-m color-light-green tooltipster" data-tooltip-side="right" data-tooltip-text="{ORDER_DEADLINE.hint}">{ORDER_DEADLINE.ago}</span>
        <!-- ENDIF -->
      </div>
      <div class="bgLightGray p15-20">
        <div class="font-OpenSans">
          <div class="profile-info clearfix">
            <div class="profile-avatar-track">
              <a href="{ORDER_SELLER_DETAILSLINK}">
              <img class="rounded" src="<!-- IF {ORDER_SELLER_AVATAR_SRC} -->{ORDER_SELLER_AVATAR_SRC}<!-- ELSE -->themes/itbirja/files/avatar/big/noprofilepicture.gif<!-- ENDIF -->" width="80" height="80" alt="">
              </a>
            </div>
            <div class="pull-left">
              <div class="user-info m-border-none mt0" style="max-width: 150px;">
                <div>
                  <b>Ваш продавец</b>
                </div>
                <a class="mt6 mb4" href="{ORDER_SELLER_DETAILSLINK}">{ORDER_SELLER_NICKNAME}</a>
                <a href="{ORDER_SELLER_DETAILSLINK}">{ORDER_SELLER_FNAME}</a>
                <div class="f13 mt8 fw300 color-gray online-status">
                  <!-- IF {ORDER_SELLER_ONLINE} == 1 -->
                  <i class="icon ico-online"></i>
                    Онлайн
                  <!-- ELSE -->
                    <i class="icon ico-offline"></i>
                    Оффлайн<!--<span class="f12">(7 часов)</span>-->
                  <!-- ENDIF -->
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div style="height:15px;background-color:#F6F6F6"></div>
    <div class="waveborder top"></div>
    <div id="step-block-order" class="step-block-order white-bg-border" style="border-top:none;">

      <!-- IF {MKTRACK_CNT} > 10 -->
      <div class="t-align-c pt20 pb20 show-track">
        Показаны 10 последних сообщений.&nbsp;<a role="button" class="show-track-action link">Показать все</a>
      </div>
      <div class="t-align-c pt20 pb20 show-track-hide hide">
        Показаны все сообщения.&nbsp;<a role="button" class="show-track-action-hide link">Свернуть</a>
      </div>
      <!-- ENDIF -->

      <div id="tracks-wrapper">
        <!-- BEGIN: MTK_ROW_DS -->
        <div id="track-id-0" class="step-block-order_item text_message<!-- IF {MKTRACK_CNT} > 10 --> hide<!-- ENDIF --><!-- IF {DS_ROW_JJ} > 1 --> hidable-message hide-by-conversation<!-- ENDIF --> <!-- IF {DS_ROW_USER_ID} == {PHP.dsfromid} -->out<!-- ELSE -->in<!-- ENDIF -->" data-track-id="0">
          <!-- IF {DS_ROW_JJ} == 1 -->
          <div style="text-align:center;font-weight:bold;">
            <a class="show-conversation link">
              Переписка, которая может относиться к заказу<img src="themes/itbirja/images/arrow_right_blue.png" width="9" alt="Развернуть" class="">
            </a>
          </div>
          <!-- ENDIF -->
          <div class="block-circle pull-left">
            <img alt="{DS_ROW_USER_NICKNAME}" src="<!-- IF {DS_ROW_USER_AVATAR_SRC} -->{DS_ROW_USER_AVATAR_SRC}<!-- ELSE -->themes/itbirja/files/avatar/medium/noprofilepicture.gif<!-- ENDIF -->" class="rounded" width="50" alt=""/>
          </div>
          <div class="font-OpenSans ml80">
            <div class="f14 color-gray mt3 floatright">{DS_ROW_DATE}</div>
            <div class="f16 pt10 font-OpenSans online-status">
              <span data-is-online="{DS_ROW_USER_ONLINE}" data-darktheme="true" data-user-id="{DS_ROW_USER_ID}">
                <i class="icon ico-<!-- IF {DS_ROW_USER_ONLINE} -->online<!-- ELSE -->offlineDark<!-- ENDIF -->"></i>
              </span>
              <span class="username f16">{DS_ROW_USER_NICKNAME}</span>
            </div>
          </div>
          <div class="clear"></div>

          <!-- IF {DS_ROW_MTYPE} == 1 -->
            <div class="t-align-c">
              <i class="ico-quest-info"></i>
              <h3 class="font-OpenSansSemi mb15 js-message-text">Запрос {PHP|cot_sitename('padeg_individ', 'r')}</h3>
              <!-- IF {DS_ROW_USER_ID} != {PHP.dsfromid} -->
                Покупатель {DS_ROW_USER_NICKNAME} прислал запрос на {PHP|cot_sitename('padeg_individ', 'v')}. Пожалуйста, ответьте покупателю как можно скорее<br>
              <!-- ENDIF -->
            </div>
          <!-- ENDIF -->
          <!-- IF {DS_ROW_MTYPE} == 2 -->
            <div class="t-align-c">
              <i class="ico-green-extras"></i>
              <h3 class="font-OpenSansSemi mb15 js-message-text">Предложение {PHP|cot_sitename('padeg_individ', 'r')}</h3>
            </div>
          <!-- ENDIF -->
          <!-- IF {DS_ROW_MTYPE} == 3 -->
            <div class="t-align-c">
              <i class="ico-green-extras"></i>
              <h3 class="font-OpenSansSemi mb15 js-message-text">Предложение {PHP|cot_sitename('padeg_individ', 'r')}</h3>
            </div>
          <!-- ENDIF -->

          <!-- IF {DS_ROW_PRETEXT} -->
          <div class="font-OpenSans ml80 m-ml0 m-mt10">
            <div class="f15 breakwords">
              {DS_ROW_PRETEXT}
            </div>
          </div>
          <!-- ENDIF -->

          <div class="clear"></div>

          <div class="font-OpenSans ml80 m-ml0 m-mt10">
            <div class="f15 breakwords">
              {DS_ROW_TEXT}
            </div>
            <div class="track-files" data-json-files="null">
              <!-- IF {DS_MAVATARS.MAVATARCOUNT} > 0 -->
                <!-- FOR {KEY}, {VALUE} IN {DS_MAVATARS.MAVATAR} -->
                  <div id="id{VALUE.ID}" class="mb5 file-item file-item-conversations">
                    <a href="{VALUE.FILE}" target="_blank" class="color-text">
                    <i class="ico-file-{VALUE.FILEEXTICON} dib v-align-m"></i>
                    <span class="v-align-m ml10 mw80p">{VALUE.FILEORIGNAME}.{VALUE.FILEEXT}</span>
                    </a>
                  </div>
                <!-- ENDFOR -->
              <!-- ENDIF -->
            </div>
            {DS_ROW_RESEND}
            <!-- IF {DS_ROW_MTYPE} == 1 -->
              Бюджет: <!-- IF {DS_ROW_MDATA.budget} --><b>{DS_ROW_MDATA.budget} <span class="rouble">Р</span></b><!-- ELSE -->не указан<!-- ENDIF --><br>
              Сроки: <!-- IF {DS_ROW_MDATA.prd_duration} --><b>{DS_ROW_MDATA.prd_duration}</b><!-- ELSE -->не указаны<!-- ENDIF --><br>
            <!-- ENDIF -->
          </div>
        </div>
        <!-- END: MTK_ROW_DS -->

        <!-- BEGIN: MKT_ROW_MAIN -->
        <!-- IF {MKT_CODE} == 'market_msg' -->
        <div<!-- IF {MKT_ID} > 0 --> id="track-id-{MKT_ID}"<!-- ENDIF --> class="step-block-order_item<!-- IF !{MKT_JJ_SHOW} --> hide<!-- ENDIF --> text_message<!-- IF {MKT_FRUSER} == {ORDER_CUSTOMER_ID} --> out<!-- IF {MKT_MSG_EDITABLE} --> editable<!-- ENDIF --><!-- ELSE --> in<!-- ENDIF --><!-- IF !{MKT_STATUS} --> unread<!-- ENDIF -->" data-track-id="{MKT_ID}">
          <!-- IF {MKT_FRUSER} == {ORDER_CUSTOMER_ID} -->
          <div class="block-circle pull-left">
            <img class="rounded" width="50" src="<!-- IF {ORDER_CUSTOMER_AVATAR_SRC} -->{ORDER_CUSTOMER_AVATAR_SRC}<!-- ELSE -->themes/itbirja/files/avatar/big/noprofilepicture.gif<!-- ENDIF -->" alt="">
          </div>
          <div class="font-OpenSans ml80">
            <div class="f14 color-gray mt3 floatright">{MKT_DATE}</div>
            <div class="f16 pt10 font-OpenSans online-status">
              <i class="icon ico-{ORDER_CUSTOMER_ONLINEICO}"></i>
              <span class="username f16">{ORDER_CUSTOMER_NICKNAME}</span>
            </div>
          </div>
          <!-- ELSE -->
          <div class="block-circle pull-left">
            <img class="rounded" width="50" src="<!-- IF {ORDER_SELLER_AVATAR_SRC} -->{ORDER_SELLER_AVATAR_SRC}<!-- ELSE -->themes/itbirja/files/avatar/big/noprofilepicture.gif<!-- ENDIF -->" alt="">
          </div>
          <div class="font-OpenSans ml80">
            <div class="f14 color-gray mt3 floatright">{MKT_DATE}</div>
            <div class="f16 pt10 font-OpenSans online-status">
              <i class="icon ico-{ORDER_SELLER_ONLINEICO}"></i>
              <span class="username f16">{ORDER_SELLER_NICKNAME}</span>
            </div>
          </div>
          <!-- ENDIF -->
          <div class="clear"></div>
          <div class="font-OpenSans ml80 m-ml0 m-mt10">
            <div class="f15 breakwords">{MKT_JSON.msg}</div>
            <!-- IF {MKT_MAVATARS.MAVATARCOUNT} > 0 -->
            <div class="track-files">
              <!-- FOR {KEY}, {VAL} IN {MKT_MAVATARS.MAVATAR} -->
               <div class="mb5 file-item">
                <a href="{VAL.FILE}" target="_blank" class="dib color-text" style="width: calc(100% - 35px);">
                 <i class="ico-file-{VAL.FILEEXTICON} dib v-align-m"></i>
                 <span class="v-align-m ml10 mw80p dib">{VAL.FILEORIGNAME}.{VAL.FILEEXT}</span>
                </a>
                <!-- IF {MKT_FRUSER} == {ORDER_CUSTOMER_ID} AND {MKT_MSG_EDITABLE} -->
                  <a href="" class="remove-file-link" onclick="deleteTrackFile($(this), {VAL.ID}, {MKT_ID});return false;"></a>
                <!-- ENDIF -->
               </div>
              <!-- ENDFOR -->
            </div>
            <!-- ENDIF -->
          </div>
        </div>
        <!-- ELSE -->
        <div<!-- IF {MKT_ID} > 0 --> id="track-id-{MKT_ID}"<!-- ENDIF --> class="step-block-order_item<!-- IF !{MKT_JJ_SHOW} --> hide<!-- ENDIF --><!-- IF {MKT_FRUSER} == {ORDER_CUSTOMER_ID} --> out<!-- ELSE --> in<!-- ENDIF --><!-- IF !{MKT_STATUS} --> unread<!-- ENDIF -->" data-track-id="{MKT_ID}">
          <div class="f14 color-gray mt3 t-align-r">{MKT_DATE}</div>
          <div class="t-align-c">

            <!-- IF {MKT_CODE} == 'order_paid' -->
                <i class="ico-more-info"></i>
                <h3 class="track-green pt10 font-OpenSansSemi mb10">Создан новый заказ</h3>
                <div class="f15 mt15">Вы создали заказ</div>
              <!-- IF !{ORDER_SENDINSTR} AND !{ORDER_CANCEL} -->
               </div>
              </div>
              <div class="step-block-order_item" data-track-id="0">
                <div class="f14 color-gray mt3 t-align-r">{ORDER_PAID|cot_date('d M, H:i', $this)}</div>
                <div class="t-align-c">
                  <i class="ico-quest-info"></i>
                  <h3 class="track-green pt10 font-OpenSansSemi mb10">Предоставьте информацию по заказу</h3>
                  <!-- IF {ORDER_PRD_TEXT_INSTR} -->
                  <div class="f15 mt15 lh23">Для работы над заказом, продавцу нужна следующая информация:</div>
                  <div class="f15 mt5 lh23 t-align-l ml80 m-ml0 m-text-center-i">
                    <i>{ORDER_PRD_TEXT_INSTR}</i>
                  </div>
                  <!-- ENDIF -->
                  <div class="f15 mt5 lh23">Предоставьте информацию продавцу, чтобы он мог приступить к работе. </div>
              <!-- ENDIF -->
            <!-- ENDIF -->

            <!-- IF {MKT_CODE} == 'cancel' -->
              <!-- IF {MKT_CODE_ORIG_IN_SELLERCANCEL_CODES} AND !{MKT_JSON.cancel_accept} -->
                <i class="ico-quest-red-info"></i>
              <!-- ELSE -->
                <i class="ico-close"></i>
              <!-- ENDIF -->

              <h3 class="track-red pt10 font-OpenSansSemi mb10">{MKT_TEXT}</h3>
              <div class="f15 mt15"></div>
              <!-- IF {MKT_JSON.msg} -->
                <div class="f15 mt15">{MKT_JSON.msg}</div>
              <!-- ENDIF -->
              <!-- IF {MKT_CODE_ORIG_IN_SELLERCANCEL_CODES} -->
                <hr class="gray">
                <div class="db f15 color-gray v-align-m ml10 mt15">
                  <!-- IF !{MKT_JSON.cancel_accept} -->
                    <!-- IF !{ORDER_DONE} AND !{ORDER_CANCEL} AND !{ORDER_CLAIM} -->
                      <form action="send_mk" method="post" id="cancelaccept-tid{MKT_ID}">
                        <input type="hidden" name="redirect" value="1">
                        <input type="hidden" name="action" value="cancelaccept">
                        <input type="hidden" name="orderId" value="{ORDER_ID}">
                        <input type="hidden" name="trackId" value="{MKT_ID}">
                        <input type="hidden" name="accept" value="0">
                      </form>
                      <a role="button" class="green-btn mr2" onclick="event.preventDefault();$('#cancelaccept-tid{MKT_ID} input[name=accept]').val(0);$('#cancelaccept-tid{MKT_ID}').submit();">Вернуть заказ в работу</a>
                       &nbsp;
                      <a role="button" class="red-btn mr2" onclick="event.preventDefault();$('#cancelaccept-tid{MKT_ID} input[name=accept]').val(1);$('#cancelaccept-tid{MKT_ID}').submit();">Отменить заказ</a>
                       &nbsp;
                      <a role="button" class="orange-btn mr2 arbitrage-link" href="javascript:void(0)" data-track_type="to_arbitrage" data-order_id="{ORDER_ID}" data-track_id="{MKT_ID}" onclick="showArbitrageCheckPopupClick($(this));">обратиться в Арбитраж</a>
                    <!-- ENDIF -->
                    <script>$(document).ready(function() { $('[data-trackstatehist="{MKT_ID}"] .track-history-desc').html('Продавец предложил отменить заказ'); });</script>
                  <!-- ELSE -->
                    Вы отказались от отмены заказа
                    <script>$(document).ready(function() { $('[data-trackstatehist="{MKT_ID}"] .track-history-desc').html('Вы отказались от отмены заказа'); });</script>
                  <!-- ENDIF -->
                </div>
              <!-- ELSE -->
                <!-- IF {MKT_JSON.lowrating} > 0 -->
                  <div class="f15 mt15 track-red">Рейтинг ответственности продавца снижен <i>на {MKT_JSON.lowrating}</i></div>
                <!-- ELSE -->
                  <div class="f15 mt15">Отмена заказа не повлияла на рейтинг продавца</div>
                <!-- ENDIF -->
              <!-- ENDIF -->
            <!-- ENDIF -->

            <!-- IF {MKT_CODE} == 'seller_accept_order' -->
              <i class="ico-check"></i>
              <h3 class="track-green pt10 font-OpenSansSemi mb10">Продавец принял заказ</h3>
              <!-- IF {PHP.queuemsg} -->
              <hr class="gray">
              <div class="db f12 color-gray v-align-m ml10 mt15">
                {PHP.queuemsg}
              </div>
              <!-- ENDIF -->
            <!-- ENDIF -->

            <!-- IF {MKT_CODE} == 'seller_start_order' -->
              <i class="ico-green-truck"></i>
              <h3 class="track-green pt10 font-OpenSansSemi mb10">В работе</h3>
              <div class="f15 mt15">Продавец приступил к работе над заказом</div>
            <!-- ENDIF -->

            <!-- IF {MKT_CODE} == 'seller_to_arbitrage' OR {MKT_CODE} == 'payer_to_arbitrage' -->
              <i class="ico-quest-info"></i>
              <h3 class="track-orange pt10 font-OpenSansSemi">{MKT_TEXT}</h3>
              <!-- IF {MKT_JSON.msg} -->
              <div class="f15 mt15 t-align-l ml80 mb15 breakwords m-ml0">
                <i>{MKT_JSON.msg}</i>
              </div>
              <!-- ENDIF -->
              <!-- IF {MKT_MAVATARS.MAVATARCOUNT} > 0 -->
              <div class="f15 mt15 t-align-l ml80 mb15 breakwords m-ml0">
                <div class="track-files">
                  <!-- FOR {KEY}, {VAL} IN {MKT_MAVATARS.MAVATAR} -->
                   <div class="mb5 file-item">
                    <a href="{VAL.FILE}" target="_blank" class="dib color-text" style="width: calc(100% - 35px);">
                     <i class="ico-file-{VAL.FILEEXTICON} dib v-align-m"></i>
                     <span class="v-align-m ml10 mw80p dib">{VAL.FILEORIGNAME}.{VAL.FILEEXT}</span>
                    </a>
                    <!-- IF {MKT_FRUSER} == {ORDER_CUSTOMER_ID} AND {MKT_MSG_EDITABLE} -->
                      <a href="" class="remove-file-link" onclick="deleteTrackFile($(this), {VAL.ID}, {MKT_ID});return false;"></a>
                    <!-- ENDIF -->
                   </div>
                  <!-- ENDFOR -->
                </div>
              </div>
              <!-- ENDIF -->
            <!-- ENDIF -->

            <!-- IF {MKT_CODE} == 'seller_check_order' -->
              <i class="ico-green-box"></i>
              <h3 class="track-green pt10 font-OpenSansSemi">Заказ сдан на проверку</h3>
              <!-- IF {MKT_JSON.msg} -->
              <div class="f15 mt15 t-align-l ml80 mb15 breakwords m-ml0">
                <i>{MKT_JSON.msg}</i>
              </div>
              <!-- ENDIF -->
              <!-- IF {MKT_MAVATARS.MAVATARCOUNT} > 0 -->
              <div class="f15 mt15 t-align-l ml80 mb15 breakwords m-ml0">
                <div class="track-files">
                  <!-- FOR {KEY}, {VAL} IN {MKT_MAVATARS.MAVATAR} -->
                   <div class="mb5 file-item">
                    <a href="{VAL.FILE}" target="_blank" class="dib color-text" style="width: calc(100% - 35px);">
                     <i class="ico-file-{VAL.FILEEXTICON} dib v-align-m"></i>
                     <span class="v-align-m ml10 mw80p dib">{VAL.FILEORIGNAME}.{VAL.FILEEXT}</span>
                    </a>
                    <!-- IF {MKT_FRUSER} == {ORDER_CUSTOMER_ID} AND {MKT_MSG_EDITABLE} -->
                      <a href="" class="remove-file-link" onclick="deleteTrackFile($(this), {VAL.ID}, {MKT_ID});return false;"></a>
                    <!-- ENDIF -->
                   </div>
                  <!-- ENDFOR -->
                </div>
              </div>
              <!-- ENDIF -->
              <!-- IF {MKT_JSON.accept} == 0 -->
                <!-- IF !{ORDER_DONE} AND !{ORDER_CANCEL} AND !{ORDER_CLAIM} -->
                  <hr class="gray">
                  <div class="f12 color-gray v-align-m ml10 t-align-c">Если в течение 3 дней вы не примете решение, заказ будет принят автоматически.</div>
                  <hr class="gray">
                  <form action="send_mk" method="post" id="checkaccept-tid{MKT_ID}">
                    <input type="hidden" name="redirect" value="1">
                    <input type="hidden" name="action" value="checkaccept">
                    <input type="hidden" name="orderId" value="{ORDER_ID}">
                    <input type="hidden" name="trackId" value="{MKT_ID}">
                    <input type="hidden" name="accept" value="0">
                  </form>
                  <a role="button" class="orange-btn mr2" onclick="event.preventDefault();$('#checkaccept-tid{MKT_ID} input[name=accept]').val(0);$('#checkaccept-tid{MKT_ID}').submit();">Вернуть заказ на доработку</a>
                   &nbsp;
                  <a role="button" class="green-btn mr2" onclick="event.preventDefault();$('#checkaccept-tid{MKT_ID} input[name=accept]').val(1);$('#checkaccept-tid{MKT_ID}').submit();">Принять работу</a>
                <!-- ENDIF -->
              <!-- ENDIF -->
            <!-- ENDIF -->

            <!-- IF {MKT_CODE} == 'payer_reorder' -->
              <i class="ico-orange-box"></i>
              <h3 class="track-orange pt10 font-OpenSansSemi mb10">В работе</h3>
              <div class="f15 mt15">Вы не приняли сданную работу, и вернули ее на доработку.</div>
              <!-- IF {MKT_JSON.can_arbitrage} == 1 AND !{ORDER_DONE} AND !{ORDER_CANCEL} AND !{ORDER_CLAIM} -->
                <div class="f15 mt15">Если продавец не выполняет работу в полном объеме или работа не соответствует описанию или поставленным задачам, вы можете обратиться в <a class="arbitrage-link" href="javascript:void(0)" data-track_type="to_arbitrage" data-order_id="{ORDER_ID}" data-track_id="{MKT_ID}" onclick="showArbitrageCheckPopupClick($(this));">Арбитраж</a></div>
              <!-- ENDIF -->
            <!-- ENDIF -->

            <!-- IF {MKT_CODE} == 'payer_done_order' -->
              <i class="ico-check"></i>
              <h3 class="track-green pt10 font-OpenSansSemi mb10">Заказ выполнен</h3>
              <div class="f15 mt15">Вы проверили и приняли работу</div>
              <div class="f15 mt15">Оставьте, пожалуйста, свой отзыв о работе продавца. От отзывов зависит, как высоко будут отображаться {PHP|cot_sitename('padeg', '_i')} продавца в каталоге и поиске.</div>
            <!-- ENDIF -->

            <!-- IF {MKT_CODE} == 'auto_done_order' -->
              <i class="ico-check"></i>
              <h3 class="track-green pt10 font-OpenSansSemi mb10">Заказ выполнен</h3>
              <div class="f15 mt15">Завершен автоматически</div>
              <div class="f15 mt15">Оставьте, пожалуйста, свой отзыв о работе продавца. От отзывов зависит, как высоко будут отображаться {PHP|cot_sitename('padeg', '_i')} продавца в каталоге и поиске.</div>
            <!-- ENDIF -->

            <!-- IF {MKT_CODE} == 'payer_addextras' -->
                <i class="ico-green-extras"></i>
                <h3 class="pt10 font-OpenSansSemi track-green">К заказу добавлены дополнительные опции</h3>
                <h3 class="pt10 font-OpenSansSemi fs15" style="font-weight: 400;">Вы оплатили следующие опции</h3>
              </div>
              <table style='width:100%;border-spacing:0px;border:1px solid #f0f0f0' class="mt10">
                <thead style="background-color:#f0f0f0;" class="font-OpenSansSemi">
                  <tr>
                    <td style="padding:10px 20px;width:54%;" class="font-OpenSansSemi">Опция</td>
                    <td class="ta-center nowrap" style="width:14%;padding:10px 10px;">Кол-во</td>
                    <td class="ta-center nowrap" style="width:14%;padding:10px 10px;">Срок</td>
                    <td class="ta-center" style="width:18%;padding:10px 10px;">Стоимость</td>
                  </tr>
                </thead>
                <tbody>
                  <!-- FOR {KEY}, {VAL} IN {MKT_JSON.selected} -->
                  <tr class="option font-OpenSans">
                    <td style="padding:10px 20px;">{VAL.name}</td>
                    <td class="ta-center">{VAL.count}</td>
                    <td class="ta-center">{VAL.time|cot_declension($this, 'день,дня,дней')}</td>
                    <td class="ta-center">
                      {VAL.payerPrice} &nbsp;<span class="rouble">Р</span>
                    </td>
                  </tr>
                  <!-- ENDFOR -->
                  <tr class="m-hidden">
                    <td colspan="4" style="margin:0px;padding:0px;">
                      <div style="margin:5px 15px;background-color:#EAEAEA;height:1px;"></div>
                    </td>
                  </tr>
                  <tr class="m-text-center">
                    <td></td>
                    <td class="nowrap f14 font-OpenSansSemi p10 m-text-cente t-align-r" style="padding:10px 20px;">Итого:</td>
                    <td class="nowrap f14 font-OpenSansSemi p10 m-text-center t-align-r" style="padding:10px 20px">{MKT_JSON.totaltime|cot_declension($this, 'день,дня,дней')}</td>
                    <td class="nowrap f14 font-OpenSansSemi p10 m-text-center t-align-c" style="padding:10px 0">
                      <span class="f20" style="color:#009900;">
                      {MKT_JSON.totalcost} &nbsp;<span class="rouble">Р</span>
                      </span>
                    </td>
                  </tr>
                </tbody>
              </table>
              <div><!--FIX-->
            <!-- ENDIF -->

            <!-- IF {MKT_CODE} == 'seller_addextras' -->
                <i class="ico-green-extras"></i>
                <!-- IF {MKT_JSON.payed} > 0 -->
                  <h3 class="pt10 font-OpenSansSemi track-green">
                   К заказу добавлены дополнительные опции
                  </h3>
                  <h3 class="pt10 font-OpenSansSemi fs15" style="font-weight: 400;">Вы оплатили, предложенные продавцом, опции</h3>
                <!-- ELSE -->
                  <!-- IF {MKT_JSON.payed} == -1 -->
                    <h3 class="pt10 font-OpenSansSemi track-green">
                      Продавец предложил добавить к заказу дополнительные опции
                    </h3>
                    <h3 class="pt10 font-OpenSansSemi fs15" style="font-weight: 400;">Вы отказались от предложения добавить опции</h3>
                  <!-- ELSE -->
                  <h3 class="pt10 font-OpenSansSemi track-green">
                    Продавец предложил добавить к заказу дополнительные опции
                  </h3>
                  <!-- ENDIF -->
                <!-- ENDIF -->
                <h3 class="pt10 font-OpenSansSemi fs15" style="font-weight: 400;"><i>{MKT_JSON.msg}</i></h3>
              </div>
              <table style='width:100%;border-spacing:0px;border:1px solid #f0f0f0' class="mt10">
                <thead style="background-color:#f0f0f0;" class="font-OpenSansSemi">
                  <tr>
                    <td style="padding:10px 20px;width:54%;" class="font-OpenSansSemi">Опция</td>
                    <td class="ta-center nowrap" style="width:14%;padding:10px 10px;">Кол-во</td>
                    <td class="ta-center nowrap" style="width:14%;padding:10px 10px;">Срок</td>
                    <td class="ta-center" style="width:18%;padding:10px 10px;">Стоимость</td>
                  </tr>
                </thead>
                <tbody>
                  <!-- FOR {KEY}, {VAL} IN {MKT_JSON.selected} -->
                  <tr class="option font-OpenSans">
                    <td style="padding:10px 20px;">{VAL.name}</td>
                    <td class="ta-center">{VAL.count}</td>
                    <td class="ta-center">{VAL.time|cot_declension($this, 'день,дня,дней')}</td>
                    <td class="ta-center">
                      {VAL.payerPrice} &nbsp;<span class="rouble">Р</span>
                    </td>
                  </tr>
                  <!-- ENDFOR -->
                  <!-- FOR {KEY}, {VAL} IN {MKT_JSON.selected_custom} -->
                  <tr class="option font-OpenSans">
                    <td style="padding:10px 20px;">{VAL.name}</td>
                    <td class="ta-center">{VAL.count}</td>
                    <td class="ta-center">{VAL.time|cot_declension($this, 'день,дня,дней')}</td>
                    <td class="ta-center">
                      {VAL.payerPrice} &nbsp;<span class="rouble">Р</span>
                    </td>
                  </tr>
                  <!-- ENDFOR -->
                  <tr class="m-hidden">
                    <td colspan="4" style="margin:0px;padding:0px;">
                      <div style="margin:5px 15px;background-color:#EAEAEA;height:1px;"></div>
                    </td>
                  </tr>
                  <tr class="m-text-center">
                    <td class="nowrap f14 font-OpenSansSemi p10 m-text-center t-align-l" style="padding:10px 20px">
                      <!-- IF {MKT_JSON.payed} == 0 -->
                        <!-- IF !{ORDER_DONE} AND !{ORDER_CANCEL} AND !{ORDER_CLAIM} -->
                          <form action="send_mk" method="post" id="accept_seller_addextras-tid{MKT_ID}" class="">
                             <input type="hidden" name="action" value="accept_seller_addextras">
                             <input type="hidden" name="orderId" value="{ORDER_ID}">
                             <input type="hidden" name="trackId" value="{MKT_ID}">
                             <input type="hidden" name="accept" value="0">
                          </form>
                          <a role="button" class="green-btn mr2" onclick="event.preventDefault();$('#accept_seller_addextras-tid{MKT_ID} input[name=accept]').val(1);$('#accept_seller_addextras-tid{MKT_ID}').addClass('worker_extra_suggestion_form').submit();">Оплатить</a>
                            &nbsp;
                          <a role="button" class="white-btn mr2" onclick="event.preventDefault();$('#accept_seller_addextras-tid{MKT_ID} input[name=accept]').val(0);$('#accept_seller_addextras-tid{MKT_ID}').removeClass('worker_extra_suggestion_form').submit();">Отказаться</a>
                        <!-- ENDIF -->
                      <!-- ENDIF -->
                    </td>
                    <td class="nowrap f14 font-OpenSansSemi p10 m-text-center t-align-r" style="padding:10px 20px;">Итого:</td>
                    <td class="nowrap f14 font-OpenSansSemi p10 m-text-center t-align-r" style="padding:10px 20px">{MKT_JSON.totaltime|cot_declension($this, 'день,дня,дней')}</td>
                    <td class="nowrap f14 font-OpenSansSemi p10 m-text-center t-align-c" style="padding:10px 0">
                      <span class="f20" style="color:#009900;">
                      {MKT_JSON.totalcost} &nbsp;<span class="rouble">Р</span>
                      </span>
                    </td>
                  </tr>
                </tbody>
              </table>
              <div><!--FIX-->
            <!-- ENDIF -->

            <!-- IF {MKT_CODE} == 'market_fmsg' -->
              <i class="ico-more-info"></i>
              <h3 class="pt10 font-OpenSansSemi mb10">Вы предоставили нужные данные продавцу</h3>
              <!-- IF {MKT_TEXT} -->
              <hr class="gray">
              <div class="db f12 color-gray v-align-m ml10 mt15">
                {MKT_TEXT}
              </div>
              <!-- ENDIF -->
              <script>
                if ($('.instruction-js').length > 0) {
                  $(".js-send-message-action").val('text');
                  $('.instruction-js').remove();
                  $('.fox_attention').remove();
                }
              </script>
            <!-- ENDIF -->

            <!-- IF {MKT_CODE} == 'add_phases' -->
              <i class="ico-quest-info"></i>
              <h3 class="track-green pt10 font-OpenSansSemi mb10">Заказ разделен на этапы</h3>
              <div class="mt15">
                <link rel="stylesheet" href="themes/itbirja/css/pages/phases.css" type="text/css"/>
                <table class="phases phases_show js-phases-wrap-show">
                  <col width="40"/>
                  <col width="auto"/>
                  <col width="262"/>
                  <thead>
                    <tr>
                      <th></th>
                      <th>Название этапа</th>
                      <th>Прогресс</th>
                    </tr>
                  </thead>
                  <tbody>
                    <!-- FOR {KEY}, {VAL} IN {ORDER_STEPS} -->
                    <tr class="js-phases-item" data-index="0" data-progress="100">
                      <td>{KEY|cot_mk_step_plus_one($this)}.</td>
                      <td class="phase_name">
                        <span class="js-phases-name">{VAL.title}</span>
                      </td>
                      <td class="phases__loadbar">
                        Прогресс <span class="current-percent-value">{VAL.lprc}</span>%
                        <span class="phases__progress toolpster" data-tooltip-text="Продавец будет отправлять вам промежуточные отчеты в процессе выполнения заказа.">
                          <ul class="loadbar">
                           <!-- FOR {CKEY}, {CVAL} IN {VAL.changes} -->
                            <li>
                              <div data-track-id="{MKT_ID}" data-report-id="{CVAL.r}" title="{CVAL.m}" data-value="{CKEY}" data-progressindex="{KEY}" class="progress-bar<!-- IF {CVAL.v} OR {CKEY} == 0 --> progress-bar-fill min-active-value<!-- ENDIF -->"></div>
                            </li>
                           <!-- ENDFOR -->
                          </ul>
                        </span>
                      </td>
                    </tr>
                    <!-- ENDFOR -->
                  </tbody>
                </table>
              </div>
            <!-- ENDIF -->

            <!-- IF {MKT_CODE} == 'report_phases' -->
                <i class="ico-quest-info"></i>
                <h3 class="track-green mb15 pt10 font-OpenSansSemi">Промежуточный отчет продавца</h3>
                <!-- FOR {CKEY}, {CVAL} IN {MKT_JSON.changes} -->
                <div class="mb15 breakwords m-ml0">
                  <div class="mt10">
                    {CVAL.title}
                    <b>
                      <span class="current-percent-value">{CVAL.val}</span>
                      %&nbsp;
                    </b>
                  </div>
                  <ul class="loadbar">
                    <!-- FOR {JKEY}, {JJ} IN {CVAL.changes_main} -->
                      <li>
                        <div data-track-id="{MKT_CODE}" data-value="{JKEY}" title="{JKEY}%" class="progress-bar min-active-value<!-- IF {JKEY} <= {CVAL.val} --> progress-bar-fill<!-- ENDIF -->"></div>
                      </li>
                    <!-- ENDFOR -->
                  </ul>
                </div>
                <!-- ENDFOR -->
              <!-- IF {MKT_JSON.msg} -->
              </div>
                <div class="f15 mt15 t-align-c">{MKT_JSON.msg}</div>
              <div><!--FIX-->
              <!-- ENDIF -->
            <!-- ENDIF -->

            <!-- IF {MKT_CODE} == 'arbitrage_result' -->
              <!-- IF {MKT_JSON.status} == 'start' -->
                <i class="ico-orange-box"></i>
                <h3 class="track-orange pt10 font-OpenSansSemi mb10">В работе</h3>
              <!-- ENDIF -->
              <!-- IF {MKT_JSON.status} == 'cancel' OR {MKT_JSON.status} == 'close' -->
                <i class="ico-close"></i>
                <h3 class="track-red pt10 font-OpenSansSemi mb10">Заказ отменен</h3>
              <!-- ENDIF -->
              <!-- IF {MKT_JSON.status} == 'done' -->
                <i class="ico-check"></i>
                <h3 class="track-green pt10 font-OpenSansSemi mb10">Заказ выполнен</h3>
              <!-- ENDIF -->

              <div class="f15 mt15">
                {MKT_TEXT}<!-- IF {MKT_JSON.msg} -->: <span class="f15 italic">{MKT_JSON.msg}</span><!--  ENDIF -->
              </div>

              <!-- IF {MKT_JSON.payreturn.to_payer} > 0 OR {MKT_JSON.payreturn.to_seller} > 0 OR {MKT_JSON.chg_lowrating} OR {MKT_JSON.del_reviews} -->
                <div class="alert alert-warning t-align-l mt10">
                  <b>Внимание!</b>
                  <!-- IF {MKT_JSON.payreturn.to_payer} > 0 -->
                    <br>Сумма в размере {MKT_JSON.payreturn.to_payer} <span class="rouble">Р</span> была возвращена покупателю.
                  <!-- ENDIF -->
                  <!-- IF {MKT_JSON.payreturn.to_seller} > 0 -->
                    <br>Сумма в размере {MKT_JSON.payreturn.to_seller} <span class="rouble">Р</span> была возвращена продавцу.
                  <!-- ENDIF -->
                  <!-- IF {MKT_JSON.chg_lowrating} -->
                    <br>Рейтинг продавца изменен на <i>{MKT_JSON.val_lowrating}</i>.
                  <!-- ENDIF -->
                  <!-- IF {MKT_JSON.del_reviews} -->
                    <br>Отзыв продавца был удален.
                  <!-- ENDIF -->
                </div>
              <!-- ENDIF -->
            <!-- ENDIF -->

          </div>
        </div>
        <!-- ENDIF -->
        <!-- END: MKT_ROW_MAIN -->

        <!-- IF {ORDER_REVIEW.item_id} -->
        <div class="step-block-order_item" data-track-id="0">
          <div class="f14 color-gray mt3 t-align-r">{ORDER_REVIEW.item_date|cot_date('d M, в H:i', $this)}</div>
          <div class="t-align-c">
              <i class="ico-reating-<!-- IF {ORDER_REVIEW.item_score} -->good<!-- ELSE -->bad<!-- ENDIF -->"></i>
              <h3 class="pt10 font-OpenSansSemi track-<!-- IF {ORDER_REVIEW.item_score} -->green<!-- ELSE -->red<!-- ENDIF -->">Отзыв по заказу</h3>
              <div class="f15 mt15">
                Вы оставили <!-- IF {ORDER_REVIEW.item_score} -->положительный<!-- ELSE -->отрицательный<!-- ENDIF --> отзыв по этому заказу
                <br>
                <i>{ORDER_REVIEW.item_text|cot_mk_msg_html($this)}</i>
              </div>
              <i class="js-prd-comment-remove__link icon ico-trash-18 mb-5 mr5"></i>
              <a class="js-prd-comment-remove__link prd-comment-remove__link" href="javascript:void(0);">Удалить отзыв</a>
              <i class="js-prd-comment-edit__link icon ico-edit mb-5 mr5 ml15"></i>
              <a class="f14 dib mt10 prd-comment-edit__link" href="javascript:void(0);">Редактировать отзыв</a>
              <div class="bgLightGray p15-20 mt10" style='display: none'>
                <form action="/send_mk" method="post">
                   <div class="rating-block-review mt15">
                    <div class="rating-block-review_good<!-- IF {ORDER_REVIEW.item_score} --> active<!-- ENDIF -->"></div>
                    <div class="rating-block-review_bad<!-- IF !{ORDER_REVIEW.item_score} --> active<!-- ENDIF -->"></div>
                   </div>
                   <input type="hidden" name="action" value="rating_update">
                   <input type="hidden" name="orderId" value="{ORDER_ID}">
                   <input type="radio" class="hide" name="vote" id="rating-block-review_good-js" value="1"<!-- IF {ORDER_REVIEW.item_score} --> checked<!-- ENDIF -->>
                   <input type="radio" class="hide" name="vote" id="rating-block-review_bad-js" value="0"<!-- IF !{ORDER_REVIEW.item_score} --> checked<!-- ENDIF -->>
                   <textarea id="message_body" maxlength="300" name="comment" class="control-en styled-input db wMax mh115 mt20 js-stopwords-check" requiredplaceholder="Текст отзыва">{ORDER_REVIEW.item_text}</textarea>
                   <div class="clear"></div>
                  <input type="submit" class="hugeGreenBtn hoverMe GreenBtnStyle h50 w210 mt20 pull-reset btn-disable-toggle" value="Сохранить">
                </form>
              </div>
              <div class="js-popup-delete-rating__container hidden">
                <form action="/send_mk" method="post">
                  <h2>Удаление отзыва</h2>
                  <input type="hidden" name="action" value="payer_remove_rating">
                  <input type="hidden" name="orderId" value="{ORDER_ID}">
                  <hr class="gray">
                  <p>Вы хотите удалить отзыв?
                  <!-- IF {ORDER_REVIEW_ANSWER.item_id} > 0 -->
                    <p class="mb10">Ответ на отзыв также будет удалён.
                  <!-- ENDIF -->
                  <div class="popup__buttons">
                    <button type="button" class="popup__button white-btn popup-close-js">Отменить</button>
                    <button type="submit" class="popup__button green-btn pull-right">Удалить</button>
                    <div class="clearfix"></div>
                  </div>
                </form>
              </div>
          </div>
        </div>
        <!-- IF {ORDER_REVIEW_ANSWER.item_id} -->
          <div class="step-block-order_item<!-- IF !{ORDER_REVIEW_ANSWER.item_status} --> unread<!-- ENDIF -->" data-track-id="0">
            <div class="f14 color-gray mt3 t-align-r">{ORDER_REVIEW_ANSWER.item_date|cot_date('d M, в H:i', $this)}</div>
            <div class="t-align-c">
              <i class="ico-reating-<!-- IF {ORDER_REVIEW_ANSWER.item_score} -->good<!-- ELSE -->bad<!-- ENDIF -->"></i>
              <h3 class="pt10 font-OpenSansSemi track-<!-- IF {ORDER_REVIEW_ANSWER.item_score} -->green<!-- ELSE -->red<!-- ENDIF -->">Ответ на отзыв</h3>
              <div class="f15 mt15">
                {ORDER_SELLER_NICKNAME} оставил ответ на отзыв по этому заказу<br>
                <i>{ORDER_REVIEW_ANSWER.item_text|cot_mk_msg_html($this)}</i>
              </div>
            </div>
          </div>
          <!-- ENDIF -->
        <!-- ENDIF -->

      </div>
    </div>
    <script>
      var typeForm = '<!-- IF !{ORDER_SENDINSTR} AND !{ORDER_CANCEL} -->send-instruction<!-- ELSE -->only-message<!-- ENDIF -->';
      var trackFormHash = '{PHP.sys.xk}';
    </script>
    <div id="track-form">
      <script>
        var cancelReasons = {
          <!-- FOR {KEY}, {VAL} IN {ORDER_DATA_CANSELRESONS} -->
            "{KEY}": {
                "name": "{VAL.name}",
                "track_status": "{VAL.track_status}",
                "tooltip": "{VAL.tooltip}"
            },
          <!-- ENDFOR -->
        };
      </script>
      <a class="message-form-anchor"></a>
      <!-- IF {ORDER_STATUS} != 'cancel' AND {ORDER_STATUS} != 'done' -->
      <div class="p15-20 white-bg-border js-comment-box">
        <div class="btn-group track-page-group-btn dib mb10"></div>
        <div class="pull-right f14" style="margin-bottom:8px;">
          <div class="font-OpenSans t-align-r">{ORDER_SELLER_NICKNAME}</div>
          <div style="color:grey;" class="font-OpenSansLight online-status">
            <!-- IF {ORDER_SELLER_ONLINE} == 1 -->
              <i class="icon ico-online"></i>
              Онлайн
            <!-- ELSE -->
              <i class="icon ico-offline"></i>
              Оффлайн
            <!-- ENDIF -->
          </div>
        </div>
        <div class="clear"></div>
        <form action="send_mk" name="textmessage" enctype="multipart/form-data" id="form_pass_work" class="track-form-js send-message-js" method="post" onsubmit="return TrackUtils.defSubmitPassWorkForm();">
          <textarea id="message_body1" name="message" class="control-en js-alt-send styled-input db wMax f14 mh145 mt15 noBottomLeftRadius noBottomRightRadius js-stopwords-check js-stopwords-check-warning" required style="overflow:auto;"></textarea>
          <input type="hidden" name="message_send_ajax" id="message_send_ajax" value="1"/>
          <input type="hidden" class="js-send-message-action" name="action" id="fm_pass_action" value="text"/>
          <input type="hidden" name="orderId" value="{ORDER_ID}" id="fm_pass_orderId"/>
          <div class="clear"></div>
          <div class="block-state-active">
            <!-- IF !{ORDER_SENDINSTR} AND !{ORDER_CANCEL} -->
              <div class="similar_files_data mt10 instruction-js"></div>
            <!-- ENDIF -->
            <div id="list-files1" class="mt10"></div>
            <progress max="100" value="0" class="hidden" style="width:100%;"></progress>
            <div class="dialog__files mt10">
              <div id="load-files" class="add-files" data-input-name="">
               <!-- IF {MKT_FORM_MAVATARS.MAVATARCOUNT} > 0 -->
                <!-- FOR {KEY}, {VAL} IN {MKT_FORM_MAVATARS.MAVATAR} -->
                  <div class="file-item file-uploader__item" id="mavpreloadfile_{VAL.ID}">
                    <i class="file-item__ext ico-file-{VAL.FILEEXTICON}"></i>
                    <span class="file-item__name" style=" width: calc(100% - 75px);">{VAL.FILEORIGNAME}.{VAL.FILEEXT}</span>
                    <a class="file-item__action" data-filedelid="{VAL.ID}" onclick="deleteTrackFileCallback({id: {VAL.ID}}, function(){ $('#mavpreloadfile_{VAL.ID}').remove(); })">
                      <i class="file-item__action-ico"></i>
                    </a>
                  </div>
                <!-- ENDFOR -->
               <!-- ENDIF -->
              </div>
            </div>
            <div class="block-state-active_tooltip block-help-image-js" style="right:-280px; top: -60px;">На сайте есть ограничение на размер каждого файла: 6Мб. Всё, что больше, можно заливать в любое облако и добавлять ссылку в сообщение.</div>
          </div>
          <div class="clear"></div>
          <div class="pt10">
            <input id="track-send-message-button" type="button" style="display:none;" class="btn-track green-btn floatleft mr2" value="Отправить сообщение">
            <!-- IF !{ORDER_SENDINSTR} AND !{ORDER_CANCEL} AND {ORDER_STATUS} != 'claim' AND !{ORDER_CANCEL_PERF} AND !{ORDER_START} -->
              <input id="track-instruction-button" type="button" class="btn-track orange-btn floatright ml2" style="display:none;" value="Отправить информацию по заказу">
            <!-- ENDIF -->
          </div>
          <div class="clear"></div>
          <div class="dib f12 v-align-m ml10 mt10 sm-margin-reset color-gray" id="is_text" style="display: none; float: none; margin-bottom: 0;">Внимание! Чтобы отправить информацию по заказу, воспользуйтесь кнопкой "Отправить информацию по заказу". Отправка информации с помощью этой кнопки не гарантирует начало работы над заказом</div>
          <div class="dib mb10 f12 v-align-m ml10 mt10 sm-margin-reset color-gray" id="is_instruction" style="display: none; float: none; margin-bottom: 0;">Отправьте всю необходимую информацию продавцу. Только после получения всей информации начнется работа над заказом</div>
        </form>
        <style>
          form.track-form-js .trumbowyg-box,
          form.track-form-js .trumbowyg-editor,
          form.track-form-js .trumbowyg-editor,
          form.track-form-js .trumbowyg-textarea {
            min-height: 150px !important;
            margin-bottom: 0px !important;
          }
          #message_body1 {
            margin: 0px !important;
          }
        </style>
        <script>
          $(document).ready(function() {
             $('#message_body1').trumbowyg({
          		lang: 'ru',
          		fullscreenable: false,
          		closable: false,
          		btns: ['bold', '|', 'italic', '|', 'orderedList'],
          		removeformatPasted: true
          	});
          	$(".trumbowyg-editor").attr("spellcheck", "false");
          });
        </script>
      </div>
      <!-- ENDIF -->

      <!-- IF {ORDER_STATUS} != 'cancel' AND {ORDER_STATUS} != 'done' -->
      <div style="background-color: #f6f6f6;">
        <!-- IF {ORDER_STATUS} != 'claim' -->
          <!-- IF {ORDER_STATUS} == 'check' -->
          <div class="p15-20 pull-left">
            <a href="javascript:void(0)" title="Подтвердить выполнение заказа" class="js-track-form__popup-confirm-link font-OpenSans f14 pull-left">Подтвердить выполнение заказа</a>
          </div>
          <!-- ENDIF -->

          <!-- IF {ORDER_DATA_CANCANCEL_PAYER} -->
          <div class="p15-20 pull-right">
            <a href="javascript:void(0)" title="Отменить заказ" class="js-cancel-order-initial-button font-OpenSans f14">Отменить заказ</a>
          </div>
          <!-- ENDIF -->
        <!-- ENDIF -->

        <div class="clear"></div>
        <!-- IF {ORDER_DATA_CANCANCEL_PAYER} -->
        <div class="js-cancel-order-main-popup-template hidden">
          <form action="send_mk" method="post">
            <h1 class="popup__title">Отмена заказа</h1>
            <input type="hidden" name="redirect" value="1">
            <input type="hidden" name="action" value="cancelorder">
            <input type="hidden" name="orderId" value="{ORDER_ID}">
            <hr class="gray mt20" style="margin-bottom:20px;">
            <!-- IF {ORDER_DATA_CANSELRESONS|count($this)} > 0 -->
            <div class="order-cancel-form__reason">
              <span class="dib mb10">Выберите причину отмены:</span>
              <div class="f14 mt8" style="padding-left:5px; padding-right:5px;">
               <!-- FOR {KEY}, {VAL} IN {ORDER_DATA_CANSELRESONS} -->
                <div class="clearfix">
                  <input name="reason" class="styled-radio js-required js-popup-cancel-form__reason js-cancel-order-reason-input" id="reason-{KEY}-placeholder" type="radio" value="{KEY}" data-is-payer="1"/>
                  <label for="reason-{KEY}">{VAL.name}</label>
                  <!-- IF {VAL.tooltip} -->
                    <span class="tooltip_circle dib tooltipster tooltip_circle--hover tooltip_circle--light" style="display: inline-block;margin-left: 5px;" data-tooltip-text="{VAL.tooltip}" data-tooltip-side="right" data-tooltip-theme="dark">?</span>
                  <!-- ENDIF -->
                </div>
               <!-- ENDFOR -->
              </div>
            </div>
            <!-- ENDIF -->

            <div class="mt20 order-cancel-form__comment"<!-- IF {ORDER_DATA_CANSELRESONS|count($this)} > 0 --> style="display:none;"<!-- ENDIF -->>
              <label>
                Комментарий для продавца<textarea id="message_body3" name="message" rows="5" class="control-en textarea-styled wMax f14 mt8" style="padding-left:5px; padding-right:5px;"></textarea>
              </label>
            </div>
            <hr class="gray mt20">
            <div class="popup__buttons mt20">
              <button type="button" class="popup__button js-cancel-order-submit red-btn">Отменить заказ</button>
              <button type="reset" class="popup__button pull-right popup-close-js green-btn">Пока не отменять</button>
              <div class="clearfix"></div>
            </div>
          </form>
        </div>
        <div class="js-cancel-order-subtype-popup-template hidden">
          <form action="send_mk" method="post">
            <h1 class="popup__title">Уточнение причины отказа</h1>
            <input type="hidden" name="orderId" value="{ORDER_ID}">
            <hr class="gray mt20" style="margin-bottom:20px;">
            <div class="js-cancel-order-additional mt20" style="line-height:10px;">
              <i class="f12 color-gray"></i>
            </div>
            <hr class="gray mt20">
            <div class="popup__buttons mt20">
              <button type="submit" class="popup__button js-cancel-order-submit red-btn disabled mt0" disabled>Отменить заказ</button>
              <button type="button" style="height:40px;font-size:16px;display:none;" class="js-cancel-order-back red-btn mt0">Отменить по другой причине</button>
              <button type="reset" class="popup__button popup-close-js green-btn pull-right mt0">Вернуться к заказу</button>
              <div class="clearfix"></div>
            </div>
          </form>
        </div>
        <!-- ENDIF -->
      </div>
      <script>
        var typeForm = 'send-instruction';
        TrackUtils.startShow(typeForm);
      </script>
      <!-- ELSE -->

        <!-- IF {ORDER_STATUS} == 'cancel' OR {ORDER_STATUS} == 'done' -->
          <!-- IF {ORDER_CANREVIEW} -->
          <div class="p15-20 white-bg-border js-comment-box">
            <form action="/send_mk" method="post" class="send-review-js" data-form="send-review-js">
              <h2 class="pt10">Заказ <!-- IF {ORDER_STATUS} == 'cancel' -->отменен<!-- ELSE -->выполнен<!-- ENDIF -->, вы можете оставить отзыв</h2>
              <div class="rating-block-review mt15">
                <div class="rating-block-review_good <!-- IF {ORDER_STATUS} == 'done' -->active<!-- ENDIF -->"></div>
                <div class="rating-block-review_bad <!-- IF {ORDER_STATUS} == 'cancel' -->active<!-- ENDIF -->"></div>
              </div>
              <input type="hidden" name="action" value="rating">
              <input type="hidden" name="orderId" value="{ORDER_ID}">
              <input type="radio" class="hide" name="vote" id="rating-block-review_good-js" value="1"<!-- IF {ORDER_STATUS} == 'done' --> checked<!-- ENDIF -->>
              <input type="radio" class="hide" name="vote" id="rating-block-review_bad-js" value="0"<!-- IF {ORDER_STATUS} == 'cancel' --> checked<!-- ENDIF -->>
              <textarea id="message_body" maxlength="300" name="comment" class="control-en styled-input db wMax f14 mh145 mt20 js-stopwords-check" style="overflow:auto;" required placeholder="Текст отзыва"></textarea>
              <div class="clear"></div>
              <input type="submit" class="hugeGreenBtn hoverMe GreenBtnStyle h50 w210 mt20 pull-reset btn-disable-toggle" value="Отправить">
            </form>
          </div>
          <div style="background-color: #f6f6f6;"></div>
          <script>
            var typeForm = 'not-specified';
            TrackUtils.startShow(typeForm);
          </script>
          <!-- ENDIF -->

          <div class="p15-20 white-bg-border js-comment-box">
            <div class="btn-group track-page-group-btn dib">
              <!-- IF {ORDER_ITEM_ID} > 0 AND {ORDER_PRD_STATE} == 0 AND {ORDER_PRD_COST_VAL} > 0 -->
                <div data-prd-id="{ORDER_ITEM_ID}" data-quick="" class="green-btn sx-mb5 sx-wMax pull-left js-reorder" data-form="new-order-js">Заказать повторно</div>
              <!-- ELSE -->
                <div data-quick="" class="green-btn sx-mb5 sx-wMax pull-left tooltipster disabled" data-tooltip-text="{PHP|cot_sitename('phrases', 'dannaya', 'fcharup')} временно не продается">Заказать повторно</div>
              <!-- ENDIF -->
                <a class="white-btn sx-wMax ml20 pull-left sx-m0" style="border: 1px solid #ebebeb;" href="{ORDER_SELLER_DS_DIALOG_URL}">Связаться с продавцом</a>
            </div>
          </div>
        <!-- ENDIF -->
      <!-- ENDIF -->
    </div>
  </div>

  <div class="sidebarArea">
    <div class="m-hidden">
      <div class="sidebar-order-state p15-20 white-bg-border pt20">
        <div class="mb14">
          <i class="{ORDER_STATUSARR.icon} v-align-t mt5"></i>
          <h2 class="dib v-align-t ml10 w218 {ORDER_STATUSARR.color}">
            №{ORDER_ID}<br>
            <span class="track-order-state">
              {ORDER_STATUSARR.title}
              <!-- IF {ORDER_STATUSARR.hint} -->
                &nbsp;
                <span class="v-align-m tooltipster tooltip_circle tooltip_circle--light tooltip_circle--hover" data-tooltip-side="right" data-tooltip-text="{ORDER_STATUSARR.hint}">?</span>
              <!-- ENDIF -->
            </span>
          </h2>
        </div>
        <!-- IF {ORDER_DEADLINE.time} > 0 -->
        <i class="dib v-align-m icon-time ml5"></i>
        <span class="fs16 pl10 v-align-m color-light-green tooltipster" data-tooltip-side="right" data-tooltip-text="{ORDER_DEADLINE.hint}">{ORDER_DEADLINE.ago}</span>
        <!-- ENDIF -->
      </div>
      <div class="bgLightGray p15-20">
        <div class="font-OpenSans">
          <div class="profile-info clearfix">
            <div class="profile-avatar-track">
              <a href="{ORDER_SELLER_DETAILSLINK}">
              <img class="rounded" src="<!-- IF {ORDER_SELLER_AVATAR_SRC} -->{ORDER_SELLER_AVATAR_SRC}<!-- ELSE -->themes/itbirja/files/avatar/big/noprofilepicture.gif<!-- ENDIF -->" width="80" height="80" alt="">
              </a>
            </div>
            <div class="pull-left">
              <div class="user-info m-border-none mt0" style="max-width: 150px;">
                <div>
                  <b>Ваш продавец</b>
                </div>
                <a class="mt6 mb4" href="{ORDER_SELLER_DETAILSLINK}">{ORDER_SELLER_NICKNAME}</a>
                <a href="{ORDER_SELLER_DETAILSLINK}">{ORDER_SELLER_FNAME}</a>
                <div class="f13 mt8 fw300 color-gray online-status">
                  <!-- IF {ORDER_SELLER_ONLINE} == 1 -->
                  <i class="icon ico-online"></i>
                    Онлайн
                  <!-- ELSE -->
                    <i class="icon ico-offline"></i>
                    Оффлайн<!--<span class="f12">(7 часов)</span>-->
                  <!-- ENDIF -->
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="question-block-track-page">
      <div class="p15-20 white-bg-border mt20">
        <i class="icon ico-history dib v-align-m"></i>
        <span class="dib v-align-m ml10">История заказа</span>
        <i class="ico-arrow-down dib v-align-m"></i>
      </div>
      <div class="track-order-state-history bgLightGray p15-20 question-block-track-page_hidden" style="display:none;">
        <div class="clearfix">
          <div class="pull-left track-history-date">{ORDER_PAID|cot_date('d M, H:i', $this)}</div>
          <div class="pull-right track-history-desc">Создан</div>
        </div>
        <!-- BEGIN: MKT_ROW_RIGHT -->
        <hr class="gray" data-trackstatehist="{MKT_ID}">
        <div class="clearfix" data-trackstatehist="{MKT_ID}">
          <div class="pull-left track-history-date">{MKT_DATE}</div>
          <div class="pull-right track-history-desc">{MKT_TITLE}</div>
        </div>
        <!-- END: MKT_ROW_RIGHT -->
      </div>
    </div>
    <!-- IF {ORDER_ALL_FILES.MAVATARCOUNT} > 0 -->
    <div class="question-block-track-page">
      <div id="order-files">
        <div class="p15-20 white-bg-border mt20">
          <i class="icon ico-files dib v-align-m"></i>
          <span class="dib v-align-m ml10">Файлы заказа</span>
          <i class="ico-arrow-down dib v-align-m"></i>
        </div>
        <div class="order-files bgLightGray p15-20 f14 question-block-track-page_hidden" style="display:none;">
         <!-- FOR {KEY}, {VAL} IN {MKT_MAVATARS.MAVATAR} -->
          <a href="{VAL.FILE}" target="_blank" class="color-text">
            <i class="ico-file-{VAL.FILEEXTICON} dib v-align-m"></i>
            <span class="dib v-align-m ml10 mw78p">{VAL.FILEORIGNAME}.{VAL.FILEEXT}</span>
          </a>
          <a href="{VAL.FILE}" download>
            <img src="themes/itbirja/images/download.png">
          </a>
         <!-- ENDFOR -->
        </div>
      </div>
    </div>
    <!-- ENDIF -->
    <div id="help-blocks" class="question-block-track-page">
      <div class="p15-20 white-bg-border mt20">
        <i class="ico-question dib v-align-m"></i>
        <span class="dib v-align-m ml10">Помощь по разделу</span>
        <i class="ico-arrow-down dib v-align-m"></i>
      </div>
      <div class="bgLightGray p15-20 question-block-track-page_hidden">
        <div id="track-help-block-does-not-respond" class="track-help-block">
          <div class="font-OpenSansSemi track-help-block-title">Продавец не отвечает на мои сообщения</div>
          <div class="font-OpenSans f14 track-help-block-content mt10 lh19">Ответ некоторых продавцов может занять большее время, чем вы ожидали из-за разницы во времени или выходных. Если вы чувствуете, что продавец отвечает слишком долго, вы можете создать запрос на отмену заказа. Либо, если работа над заказом не была начата, дождаться автоотмены заказа через 24 часа.</div>
        </div>
        <div id="track-help-block-wrong-work" class="track-help-block">
          <hr class="gray">
          <div class="font-OpenSansSemi track-help-block-title">Работа, которую сдал продавец, отличалась от того, какой он её описывал</div>
          <div class="font-OpenSans f14 track-help-block-content mt10 lh19">У вас есть три дня, чтобы проверить сданную на проверку работу. Если вы видите, что работа не выполнена или выполнена не в том объеме - верните ее на доработку, указав причины и список доработок требования. Если работа выполнена совсем не так, как утверждалось, вы можете отменить заказ по согласованию с продавцом. Для этого нажмите "Отменить заказ" внизу страницы и выберите соответствующую причину.</div>
        </div>
        <div id="track-help-block-send-somewhere" class="track-help-block">
          <hr class="gray">
          <div class="font-OpenSans f14 track-help-block-content color-gray last">
            Если вы не нашли ответа на свой вопрос, посмотрите список всех <a role="button">вопросов-ответов</a>
            или <a role="button">задайте вопрос</a>
            специалисту поддержки пользователей
          </div>
        </div>
      </div>
    </div>

    {ADS_BLOCK_POS_7}

  </div>
</div>
<script>
  var comission = 20;
  var formData = new FormData;
  var haveFiles = false;
  <!-- IF !{ORDER_SENDINSTR} AND !{ORDER_CANCEL} AND !{ORDER_DONE} AND !{ORDER_START} -->
  show_message('attention', 'Заказ не будет начат, пока вы не предоставите необходимую информацию <a class="white-btn ml20" onclick="js_scrollToInstructions();" style="border:none">Предоставить данные</a>');
  <!-- ENDIF -->

  <!-- IF {ORDER_CANREVIEW} -->
    <!-- IF {ORDER_STATUS} == 'done' -->
      show_message('success', 'Поздравляем! Заказ выполнен. Не забудьте оставить отзыв <button class="orange-btn inactive ml20 noOutline" onclick="js_scrollToSendReview();" style="border:none">Написать отзыв</button>');
    <!-- ENDIF -->
    <!-- IF {ORDER_STATUS} == 'cancel' -->
      show_message('attention', 'Заказ отменен. Вы можете оставить отзыв <button class="orange-btn inactive ml20 noOutline" onclick="js_scrollToSendReview();" style="border:none">Написать отзыв</button>');
    <!-- ENDIF -->
  <!-- ENDIF -->

  $(window).load(function() {
      $('#cancel-order').on('click', function() {
          if ($('.cancel-order-js input:checked').val() == 'worker_inprogress_cancel_request' || $('.cancel-order-js input:checked').val() == 'payer_inprogress_cancel_request') {

          } else if ($('.cancel-order-js input:checked').val() == 'payer_inprogress_cancel' || $('.cancel-order-js input:checked').val() == 'worker_inprogress_cancel') {

          }
      });
      $('.instruction-js .js-toggle-message-button[data-action=instruction]').click();
  });

  function show_popup_confurm() {
      var html = '<div>\
        <form action="send_mk" method="post">\
        <h1 class="popup__title">Подтверждение заказа</h1>\
        <input type="hidden" name="orderId" value="{ORDER_ID}">\
        <input type="hidden" name="action" value="payer_inprogress_done">\
        <hr class="gray mt20 mb20">\
        <div class="popup-msg">\
        <div class="icon ico-i-small"></div>\
        <div class="popup-text">Внимание! Подтвержайте выполнение заказа только после того как заказ выполнен полностью.</div>\
        </div>\
        <p>Вы уверены, что заказ полностью выполнен?</p>\
        <p>После подтверждения выполнения заказ будет переведен в статус «Выполнен», и продавец получит оплату.</p>\
        \
        <div class="popup__buttons mt20">\
        <button type="button" class="popup__button green-btn popup-close-js">Вернуться к заказу</button>\
        <button type="submit" class="popup__button inactive white-btn pull-right">Заказ выполнен</button>\
        <div class="clearfix"></div>\
        </div>\
        </form>\
        </div>';
      show_popup(html, "popup-confirm-order", true);
  }
  function show_popup_startorder() {

  }
</script>

<!-- END: MAIN -->