<?php
$FORMS = Array();
$FORMS['category'] = <<<END
%catalog getCategoryList('default', '%category_id%', 100, 1)%
%catalog getObjectsList('default', '%category_id%', '%custom getcount()%')%
END;
$FORMS['category_block'] = <<<END
<div class="price_box" umi:module="catalog" umi:method="object" umi:element-id="%id%" umi:button-position="bottom left">
%lines%
</div>
<br>
<div umi:element-id="%pid%" umi:field-name="descr">%data getProperty('%id%', 'descr', 'string')%</div>
END;
$FORMS['category_block_empty'] = "";
$FORMS['category_block_line'] = <<<END
%catalog viewObject(%id%, 'catalog_full')%
END;
$FORMS['objects_block'] = <<<END
<div class="creators">
%catalog search('%category_id%', 'proizvoditel', 'proizvoditel_search')%
<div class="sort">
<h6>Сортировать по:</h6>
<ul>
%system numpages(%total%, %per_page%, 'default')%
%system numpages(%total%, %per_page%, 'default_2')%
</ul>
</div>
%catalog search('%category_id%', ' ', 'search')%
</div>
<div class="1">
%data getProperty('%id%', 'proizvoditel_2', 'templ')%
</div>
<div class="price_box" umi:module="catalog" umi:method="object" umi:element-id="%id%" umi:button-position="bottom left">
%lines%
</div>
%system numpages(%total%, %per_page%, 'catalog')%
<br>
<div umi:element-id="%pid%" umi:field-name="descr">%data getProperty('%id%', 'descr', 'string')%</div>
END;
$FORMS['objects_block_search_empty'] = <<<END
<div class="price_box">
<p>По Вашему запросу ничего не найдено.</p>
</div>
END;
$FORMS['objects_block_line'] = <<<END
%catalog viewObject(%id%, 'tovar')%
END;
$inst = umiObjectsCollection::getInstance();
//umiObjectProperty
$element_id = cmsController::getInstance()->getCurrentElementId();
//$curr_category_id = cmsController::getInstance()->getCurrentElementId();
$hierarchy = umiHierarchy::getInstance();
$page = $hierarchy->getElement($element_id);
if ($page->getValue('pokraska_dverej_po_shkale_ral')){
$style="display:inline;";
}
else{$style=='';}
//var_dump($page->getValue('pokraska_dverej_po_shkale_ral'));
//echo $element_id;exit;
//$object = $inst->getObject($element_id);
// var_dump($object);exit;
//var_dump($object);
//exit;
// $id_value = $object->getValue($ide);
$FORMS['view_block'] = <<<END
<div id="product">
<div class="zag" umi:element-id="%pid%" umi:field-name="name">%name%</div>
<div class="product_box">
<div class="product_info">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
%data getPropertyGroup('%id%', 'polnoe_opisanie', 'catalog_polnoe_opisanie')%
</table>
<div class="product_price">
<label>Цена:</label>
<p class="tovar_price">%data getProperty(%id%, 'price', 'string_price')%</p>
<a href="#" class="submit_btn">Заказать</a>
%webforms add('128', '459', 'zakaz')%
</div><!--class="product_price"-->
<div umi:element-id="%pid%" umi:field-name="polnoe_opisanie">%data getProperty('%id%', 'polnoe_opisanie', 'string')%</div>
</div><!--class="product_info"-->
<div class="product_image">
<div id="big_photo">
<a href="#">
%data getProperty('%id%', 'izobrazhenie_tovara', 'foto_1')%
</a>
</div>
<ul id="small_photos">
<li>
%data getProperty('%id%', 'izobrazhenie_tovara_2', 'foto_2')%
</li>
<li>
%data getProperty('%id%', 'izobrazhenie_tovara_3', 'foto_2')%
</li>
<li>
%data getProperty('%id%', 'izobrazhenie_tovara_4', 'foto_2')%
</li>
</ul>
</div><!--class="product_image"-->
</div><!--class="product_box"-->
%data getProperty('%id%', 'varianty_otdelki', 'catalog_full')%
<div class="colors" style="{$style}">
<h6>Покраска дверей по шкале RAL</h6>
<!-- <p><a href="#" class="more">Показать / скрыть доступные цвета</a></p>
<img src="/templates/dvernoy_centr/images/color.jpg" alt="" /> -->
</div>
</div><!--id="product"-->
END;
$FORMS['search_block'] = <<<END
<form method="get" action="%content get_page_url(%category_id%)%">
<div>
<div style="padding-bottom:5px;">Фильтр по товарам</div>
%lines%
<div style="clear:both;"></div>
</div>
<p style="padding-left:9px;"><input type="submit" class="filter_btn" value="Подобрать" /> <input class="filter_btn" type="button" onclick="javascript: window.location = '%content get_page_url(%category_id%)%';" value="Сбросить" class="filter_btn" /></p>
</form>
END;
$FORMS['search_block_line'] = <<<END
<table border="0" cellpadding="0" cellspacing="0" style="float:left;" id="search_block" rules="rows">
%selector%
</table>
END;
$FORMS['search_block_line_relation'] = <<<END
<tr id="hat">
<td style=" width: 100px;">
%title%
</td>
</tr>
<tr>
<td>
<select name="fields_filter[%name%]" class="textinputs" style="width:100px; height: 18px;"><option />%items%</select>
</td>
</tr>
END;
$FORMS['search_block_line_text'] = <<<END
<tr id="hat">
<td>
%title%
</td>
</tr>
<tr>
<td>
<input type="text" name="fields_filter[%name%]" class="textinputs" value="%value%" />
</td>
</tr>
END;
$FORMS['search_block_line_price'] = <<<END
<tr id="hat">
<td>
%title% от до
</td>
</tr>
<tr>
<td>
<input type="text" name="fields_filter[%name%][0]" class="textinputs" style="width:40px;" value="%value_from%" size="12" /> <input type="text" name="fields_filter[%name%][1]" class="textinputs" style="width:40px;" value="%value_to%" size="12" />
</td>
</tr>
END;
$FORMS['search_block_line_boolean'] = <<<END
<tr id="hat">
<td>
<label for="fields_filter[%name%]" style="">%title%</label>
</td>
</tr>
<tr>
<td>
<input type="checkbox" name="fields_filter[%name%]" id="fields_filter[%name%]" %checked% value="1" />
</td>
</tr>
END;
?>