<!-- BEGIN: MAIN -->

<div class="moderation-page centerwrap clearfix pt30 pb20 page-offer">
  <div class="" style="margin: auto">
    <h1 class="semibold font-OpenSans f32">
      Модерация
    </h1>

    <div class="block-response mb15">
      <i class="ico-arrow-left dib v-align-m"></i>
      <a class="dib v-align-m f14 color-gray color-text" href="{PHP|cot_url('moderation')}">На главную</a>
    </div>

    <div class="query-card white-bg-border">
      <h1>Услуги</h1>

      <div class="mb20">
      	<form action="{SEARCH_ACTION_URL}" method="get">
      		<input type="hidden" name="m" value="{PHP.m}" />
      		<input type="hidden" name="p" value="{PHP.p}" />
      		<input type="hidden" name="c" value="{PHP.c}" />
      		<table width="100%" cellpadding="5" cellspacing="0">
      			<tr>
      				<td width="100">{PHP.L.Search}:</td>
      				<td>{SEARCH_SQ}</td>
      			</tr>
      			<tr>
      				<td width="100">Пользователь:</td>
      				<td>{SEARCH_USER}</td>
      			</tr>
      			<tr>
      				<td >{PHP.L.Category}:</td>
      				<td>{SEARCH_CAT}</td>
      			</tr>
      			<tr>
      				<td>{PHP.L.Order}:</td>
      				<td>{SEARCH_SORTER}</td>
      			</tr>
      			<tr>
      				<td></td>
      				<td>{SEARCH_STATE}<br/></td>
      			</tr>
      			<tr>
      				<td></td>
      				<td><input type="submit" name="search" class="btn green-btn" value="{PHP.L.Search}" /></td>
      			</tr>
      		</table>
      	</form>
      </div>

      <form action="{PHP|cot_url('moderation','m=market','',true)}" id="prd_form" method="POST">
        <div id="listmarket">
        	<!-- BEGIN: PRD_ROWS -->
            <div class="newfox<!-- IF {PRD_ROW_ODDEVEN} == 'even' --> newfoxnewcolor<!-- ENDIF --><!-- IF {PRD_ROW_ADSBOLD} --> _adsbold<!-- ENDIF -->">
                  <div class="newfoximg">
                    <a href="{PRD_ROW_URL}">
                    <img src="{PRD_ROW_PHOTO_FIRST_CROP}" alt="{PRD_ROW_SHORTTITLE}" width="180" height="120"/>
                    </a>
                  </div>
                  <div class="newfoxdetails clearfix">
                    <div class="clearfix mh100">
                      <div class="price pull-right color-green">
                        {PRD_ROW_COST_OT} {PRD_ROW_COST_FORMAT_FULL}
                      </div>
                      <h3 class="h3-title">
                        <a href="{PRD_ROW_URL}" title="{PRD_ROW_SHORTTITLE}">
                          <span class="first-letter dib">{PRD_ROW_SHORTTITLE}</span>
                        </a>
                      </h3>
                      <h5>
                        <span class="scriptomembittitle">
                          <a class="pull-left" href="{PRD_ROW_OWNER_DETAILSLINK}"><i class="icon ico-{PRD_ROW_OWNER_ONLINEICO}"></i> {PRD_ROW_OWNER_NICKNAME}</a>
                          <div class="mt3 otherdetails pull-left ml10">
                            <!-- IF {PRD_ROW_RSTAR} > 0 -->
                            <ul style="float: none; display: inline-block; vertical-align: middle">
                              <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">{PRD_ROW_RSTAR}</li>
                            </ul>
                            <!-- ENDIF -->
                            <span class="rating-block__count">({PRD_ROW_COUNT})</span>
                          </div>
                        </span>
                        &nbsp;
                      </h5>
                    </div>
                    <div class="otherdetails clearfix">
                      <div class="user_prd_mark_block pull-right t-align-r" style="min-width: 450px;margin: -10px 0px 0px 0px;">
                        <label class="mr5"><input type="checkbox" name="prd_arr[]" value="{PRD_ROW_ID}">Отметить</label>
                    		<!-- IF {PRD_ROW_STATE} == 2 -->
                    			<a href="{PRD_ROW_VALIDATE_URL}" class="btn green-btn btn-xs mr5">{PHP.L.Validate}</a>
                    		<!-- ENDIF -->
                        <a href="{PRD_ROW_ID|cot_url('market', 'm=edit&id='$this)}" class="btn orange-btn btn-xs mr5">{PHP.L.Edit}</a>
                    		<a href="{PRD_ROW_DELETE_URL}" class="">{PHP.L.Delete}</a>
                      </div>

                      <!-- IF {PRD_ROW_MK_POPULAR} -->
                      <a href="{PRD_ROW_URL}"><span class="fox-express">{PHP.cfg.market.item_profi_title}</span></a>
                      <!-- ENDIF -->
                      <div class="pull-left mt2"><i class="icon-time v-align-m"></i><span class="dib v-align-m ml5 font-OpenSans f13 color-gray"><span class="big">{PRD_ROW_COSTPLAN.days_format} на выполнение </span></span></div>
                      <div class="pull-left mt2 ml15"><i class="icon-people v-align-m"></i><span class="dib v-align-m ml5 font-OpenSans f13 color-gray">{PRD_ROW_MK_ORDCNT} в очереди</span></div>
                    </div>
                  </div>
                  <div class="clear"></div>
                </div>
        	<!-- END: PRD_ROWS -->
        </div>

        <!-- IF {PAGENAV_COUNT} > 0 -->
          <div class="paging">
            <div class="p1">
              <ul>{PAGENAV_PAGES}</ul>
            </div>
          </div>
        <!-- ELSE -->
          <div class="alert mb0">{PHP.L.market_notfound}</div>
        <!-- ENDIF -->

        <hr>
        <div>
        	<select name="prd_action" id="prd_action" style="width: 200px;float: left;height: 32px;margin-right: 10px;">
        		<option value="0">---</option>
        		<option value="delete">{PHP.L.Delete}</option>
        		<option value="validate">{PHP.L.Validate}</option>
        	</select>

        	<button type="submit" class="btn orange-btn">{PHP.L.Confirm}</button>
        </div>
      </form>
    </div>

  </div>
</div>

<script>
  $('.moderation-page').find('input[type="text"], input[type="password"], select').addClass('input-styled');
</script>

<!-- END: MAIN -->