<!-- BEGIN: MAIN -->

<style>
.newfox {
    border: 1px solid #d9d9d9;
    padding: 15px 15px 14px;
    margin-bottom: 20px;
    background-color: white;
    display: flex;
    flex-wrap: nowrap;
}
.newfoximg {
    float: left;
    position: relative;
    width: 180px;
}
.newfoxdetails {
    float: left;
    padding-left: 15px;
    width: calc(100% - 180px);
    text-align: left;
    min-width: 452px;
}
.clear {
    clear: both;
}
.mh100 {
    min-height: 100px;
}
.cusongsblock-panel__rating, .otherdetails {
    line-height: 14px;
}
.clearfix:after, .clearfix:before {
    content: '';
    display: block;
    clear: both;
}
.price {
    font-size: 16px;
    color: #090;
    font-weight: bold;
}
.pull-right {
    float: right !important;
}
.color-green {
    color: #5abd2f !important;
}

.pull-right {
    float: right;
}
.color-green {
    color: #5abd2f !important;
}
.pull-right {
    float: right !important;
}
.price {
    font-size: 16px;
    color: #090;
    font-weight: bold;
}
.newfoxdetails h3 {
    font-size: 16px;
    line-height: 20px;
    font-weight: normal;
    padding-bottom: 3px;
    max-width: 85%;
    max-height: 41px;
    overflow: hidden;
    text-align: left;
}
.newfoxdetails h3 a {
    color: #000;
}
.newfoxdetails h5 {
    font-size: 14px;
    color: #4D4B4B;
    font-weight: normal;
    margin-bottom: 10px;
    display: inline-block;
}
.fox-express {
    padding: 0 5px;
    margin: 1px 18px 0 0;
    border-radius: 3px;
    float: left;
    background-color: #fff;
    border: 1px solid #ff9c31;
    color: #ff9c31;
    border-radius: 3px;
    -moz-border-radius: 3px;
    line-height: 19px;
    font-size: 9px;
    text-transform: uppercase;
}
.mt2 {
    margin-top: 2px;
}
.v-align-m {
    vertical-align: middle;
}
i.icon-time {
    display: inline-block;
    width: 17px;
    height: 17px;
    background: url(themes/itbirja/images/sprite-icon.png) -2px -184px no-repeat;
}
.dib {
    display: inline-block;
}
.f13 {
    font-size: 13px !important;
    line-height: 18px;
}
.ml5 {
    margin-left: 5px;
}
.color-gray {
    color: #8a8a8a;
}
i.icon-people {
    display: inline-block;
    width: 13px;
    height: 14px;
    background: url(themes/itbirja/images/sprite-icon.png) -2px -249px no-repeat;
}
.ml15 {
    margin-left: 15px;
}
.mt3 {
    margin-top: 3px;
}
.ml10 {
    margin-left: 10px;
}
.otherdetails ul li {
    float: left;
    list-style: none;
    padding-left: 1px;
}
.mr2 {
    margin-right: 2px;
}
.fw600 {
    font-weight: 600;
}
.rating-block__rating-item--number {
    color: #ffa800;
}
.fa-star.gold {
    color: #ffb100;
}
</style>

<h3>{PHP.L.market}</h3>

<div class="well">	
	<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 btn-success" value="{PHP.L.Search}" /></td>
			</tr>
		</table>		
	</form>
</div>

<form action="{PHP|cot_url('admin','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}
              </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 data-bookmark="{PRD_ROW_ID}"<!-- IF {PRD_ROW_ISFAV} --> class="active"<!-- ENDIF -->>
                <div class="tooltipster Favorites-block pull-right" data-tooltip-text="Добавить в избранное"><i class="icon ico-heart ico-heart_hover icon ico-heart_no-active"></i></div>
                <div class="tooltipster Favorites-block pull-right hidden" data-tooltip-text="Удалить из избранного"><i class="icon ico-heart ico-heart_hover"></i></div>
              </div>

              <div class="user_prd_mark_block pull-right">
                <label><input type="checkbox" name="prd_arr[]" value="{PRD_ROW_ID}">Отметить</label>
            		<!-- IF {PRD_ROW_STATE} == 2 -->
            			<a href="{PRD_ROW_VALIDATE_URL}" class="button btn btn-success btn-xs">{PHP.L.Validate}</a>
            		<!-- ENDIF -->
            		<a href="{PRD_ROW_DELETE_URL}" class="button btn btn-warning btn-xs">{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>	
<hr>
<div class="row">
	<div class="span3">
		<select name="prd_action" id="prd_action">
			<option value="0">---</option>
			<option value="delete">{PHP.L.Delete}</option>
			<option value="validate">{PHP.L.Validate}</option>
		</select>		
	</div>
	<div class="span9">
		<button type="submit" class="btn btn-default">{PHP.L.Confirm}</button>
	</div>
</div>

<!-- IF {PAGENAV_COUNT} > 0 -->	
<div class="pagination"><ul>{PAGENAV_PAGES}</ul></div>
<!-- ELSE -->
<div class="alert">{PHP.L.market_notfound}</div>
<!-- ENDIF -->
</form>	
<!-- END: MAIN -->