<!-- BEGIN: MAIN -->
<script>
$( document ).ajaxComplete(function() {
	$('.locselect select').selectpicker('refresh');
});
</script>
<div class="box">
<div class="h_title"><i class="fa fa-filter"></i> Фильтр</div>
	<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">{PHP.L.Location}:</td>
				<td>{SEARCH_LOCATION}</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=folio'),'',true}" id="prd_form" method="POST">
<div id="listfolio">
<div class="box">
	<!-- BEGIN: PRD_ROWS -->
	<div class="row row-box odd-box">
    
    <div class="col-md-2">
		<!-- IF {PRD_ROW_MAVATAR.1} -->
		
			<a href="{PRD_ROW_URL}"><div class="thumbnail"><img src="{PRD_ROW_MAVATAR.1|cot_mav_thumb($this, 220, 160, crop)}" /></div></a>
		<!-- ENDIF -->
        </div>
        <div class="col-md-6">
		<h4 class="mg-0 mg-bt10"><a href="{PRD_ROW_URL}">{PRD_ROW_SHORTTITLE}</a></h4>
		<small>
		<p class="owner"><strong>Опубликовал:</strong> {PRD_ROW_OWNER_NAME}</p>		
        <p class="date"><strong>Дата:</strong> {PRD_ROW_DATE}</p>
		<p class="type"><strong>Категория:</strong> <a href="{PRD_ROW_CATURL}">{PRD_ROW_CATTITLE}</a></p>
        <!-- IF {PRD_ROW_COUNTRY} --><p class="region"><strong>Местоположение:</strong> {PRD_ROW_COUNTRY}<!-- IF {PRD_ROW_REGION} -->, {PRD_ROW_REGION}<!-- ENDIF --><!-- IF {PRD_ROW_CITY} -->, {PRD_ROW_CITY}<!-- ENDIF --><!-- ENDIF --></p>
        </small><p class="text">{PRD_ROW_SHORTTEXT}</p>
	</div>
    <div class="col-md-2">
    <!-- IF {PRD_ROW_COST} > 0 --><div class="cost">{PRD_ROW_COST} {PHP.cfg.payments.valuta}</div><!-- ENDIF -->
    <!-- IF {PRD_ROW_STATE} == 2 -->
			<a href="{PRD_ROW_VALIDATE_URL}" class="button btn btn-success">{PHP.L.Validate}</a>
			<!-- ENDIF -->
			<a href="{PRD_ROW_DELETE_URL}" class="button btn btn-warning">{PHP.L.Delete}</a><br>
{PRD_ROW_ADMIN_EDIT}
    </div>
    <div class="col-md-1">
    <label><input type="checkbox" name="prd_arr[]" value="{PRD_ROW_ID}"></label>
    </div></div>
		<!-- END: PRD_ROWS -->
</div></div>
<hr>
<div class="row">
	<div class="col-md-3">
		<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="col-md-9">
		<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.folio_notfound}</div>
<!-- ENDIF -->
</form>	
<!-- END: MAIN -->