Вывод картинки группы в подгруппах
ок)
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output xmlns="http://www.w3.org/TR/xhtml1/strict" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" encoding="utf-8" indent="yes" method="html" omit-xml-declaration="no" version="1.0" media-type="text/xml"/>
<xsl:decimal-format name="my" decimal-separator="," grouping-separator=" "/>
<xsl:template match="/">
<xsl:apply-templates select="/shop"/>
</xsl:template>
<!-- Шаблон для магазина -->
<xsl:template match="/shop">
<!-- Получаем ID родительской группы и записываем в переменную $parent_group_id -->
<xsl:variable name="parent_group_id" select="@current_group_id"/>
<!-- Если в находимся корне - выводим название информационной системы -->
<xsl:if test="$parent_group_id = 0">
<h1>
<xsl:value-of disable-output-escaping="yes" select="name"/>
</h1>
</xsl:if>
<!-- Если в находимся в группе - выводим название группы -->
<xsl:if test="../small_image!=''">
<a href="../{/shop/path}{fullpath}">
<img src="{../small_image}" style="border: 1px solid #DADADA"/>
</a>
</xsl:if> <table width="100%" >
<tr>
<td><xsl:if test="$parent_group_id != 0">
<h1>
<xsl:value-of disable-output-escaping="yes" select=".//group[@id=$parent_group_id]/name"/>
</h1>
</xsl:if></td>
<td align="right"> <div style="float:right;"><a href="/price.xls"><img src="/images/exel.gif" style="margin-right:10px;" border="0" /></a> <img src="/images/print.gif" border="0" /></div></td>
</tr>
</table>
<!-- Обработка выбранных тэгов -->
<xsl:if test="count(selected_tags/tag) = 1">
<h2>Метка — <strong><xsl:value-of select="selected_tags/tag/tag_name"/></strong>.</h2>
</xsl:if>
<!-- Путь к группе -->
<xsl:variable name="count">1</xsl:variable>
<!-- Отображение подгрупп данной группы, только если подгруппы есть и не идет фильтра по меткам -->
<xsl:if test="count(selected_tags/tag) = 0 and count(//group[@parent=$parent_group_id]) > 0">
<table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td valign="top">
<xsl:apply-templates select=".//group[@parent=$parent_group_id]"/>
</td>
</tr>
</table>
</xsl:if>
<!-- дополнение пути для action, если выбрана метка -->
<xsl:variable name="form_tag_path"><xsl:if test="count(selected_tags/tag) = 1">tag/<xsl:value-of select="selected_tags/tag/tag_path_name"/>/</xsl:if></xsl:variable>
<xsl:if test="count(item) > 0 or apply_filter = 1">
<form method="get" action="{/shop/path}{//group[@id=$parent_group_id]/fullpath}{$form_tag_path}">
<xsl:if test="property_xml/node() and property_xml='&all_group=1'">
<input type="hidden" name="all_group" value="1"/>
</xsl:if>
<div style="float:right;margin-top:10px;">
<input type="text" name="property_id_137" id="property_id_137" value="{/shop/*[name()='property_id_137']}" style="background: #fff url(/images/bg-search.gif) no-repeat;padding-left:3px;padding-right:15px; width:340px; height:25px; border:0;margin-right:5px; "/>
<input type="image" src="/images/search-main.gif"/>
</div>
<div style="clear:both;"></div>
<div class="shop_block" style="margin-top:10px;">
<div class="producer" >
<!-- Если есть доступные производители -->
<xsl:if test="count(producerslist/producer) > 1">
<b><xsl:value-of disable-output-escaping="yes" select=".//group[@id=$parent_group_id]/name"/>:</b>
<xsl:apply-templates select="producerslist/producer"/>
<a href="javascript:document.forms[0].producer_id.value=0;document.forms[0].submit();">Все производители</a>
<input type="hidden" name="producer_id" value="0" /> </xsl:if>
</div>
<!-- Таблица с элементами для сравнения -->
<xsl:if test="count(/shop/compare_items/compare_item) > 0">
<table cellpadding="5px" cellspacing="0" border="0">
<tr>
<td>
<input type="checkbox" onclick="SelectAllItemsByPrefix(this.checked, 'del_compare_id_')" />
</td>
<td>
<b>Сравниваемые элементы</b>
</td>
</tr>
<xsl:apply-templates select="compare_items/compare_item"/>
</table>
<div class="nofloat" style="height: 47px; padding: 5px 0;">
<div class="gray_button left">
<div>
<input name="apply_compare" value="Сравнить" type="button" onclick="javascript:location='{/shop/path}compare_items/';"/>
</div>
</div>
<div class="gray_button right">
<div>
<input name="delete_compare" value="Удалить" type="submit"/>
</div>
</div>
</div>
<!-- <input name="delete_all_compare" value="Удалить все" type="submit"/> -->
</xsl:if>
<!-- Сортировка товаров -->
<!-- Определяем ссылку с параметрами фильтра -->
<xsl:variable name="filter">
<xsl:if test="/shop/apply_filter/node()">?action=apply_filter&producer_id=<xsl:value-of select="/shop/producer_id"/>&saller_id=<xsl:value-of select="/shop/saller_id"/>&price_from=<xsl:value-of select="/shop/price_from"/>&price_to=<xsl:value-of select="/shop/price_to"/>&on_page=<xsl:value-of select="/shop/on_page"/>
<xsl:if test="/shop/property_xml/node()">
<!-- GET для доп. свойств -->
<xsl:value-of select="/shop/property_xml"/>
</xsl:if>
</xsl:if>
</xsl:variable>
<!-- Определяем первый символ вопрос или амперсанд -->
<xsl:variable name="first_symbol">
<xsl:choose>
<xsl:when test="$filter != ''">&</xsl:when>
<xsl:otherwise>?</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<div class="clearing"></div>
<table width="100%" style="margin-bottom:6px;"><tr>
<tr><td></td><td>
<xsl:if test="count_items > 0 and items_on_page > 0 and count_items > items_on_page">
<xsl:variable name="count_pages" select="ceiling(count_items div items_on_page)"/>
<xsl:variable name="visible_pages" select="5"/>
<xsl:variable name="real_visible_pages"><xsl:choose>
<xsl:when test="$count_pages < $visible_pages"><xsl:value-of select="$count_pages"/></xsl:when>
<xsl:otherwise><xsl:value-of select="$visible_pages"/></xsl:otherwise>
</xsl:choose></xsl:variable>
<!-- Считаем количество выводимых ссылок перед текущим элементом -->
<xsl:variable name="pre_count_page"><xsl:choose>
<xsl:when test="current_page - (floor($real_visible_pages div 2)) < 0">
<xsl:value-of select="current_page"/>
</xsl:when>
<xsl:when test="($count_pages - current_page - 1) < floor($real_visible_pages div 2)">
<xsl:value-of select="$real_visible_pages - ($count_pages - current_page - 1) - 1"/>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="round($real_visible_pages div 2) = $real_visible_pages div 2">
<xsl:value-of select="floor($real_visible_pages div 2) - 1"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="floor($real_visible_pages div 2)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose></xsl:variable>
<!-- Считаем количество выводимых ссылок после текущего элемента -->
<xsl:variable name="post_count_page"><xsl:choose>
<xsl:when test="0 > current_page - (floor($real_visible_pages div 2) - 1)">
<xsl:value-of select="$real_visible_pages - current_page - 1"/>
</xsl:when>
<xsl:when test="($count_pages - current_page - 1) < floor($real_visible_pages div 2)">
<xsl:value-of select="$real_visible_pages - $pre_count_page - 1"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$real_visible_pages - $pre_count_page - 1"/>
</xsl:otherwise>
</xsl:choose></xsl:variable>
<xsl:variable name="i"><xsl:choose>
<xsl:when test="current_page + 1 = $count_pages"><xsl:value-of select="current_page - $real_visible_pages + 1"/></xsl:when>
<xsl:when test="current_page - $pre_count_page > 0"><xsl:value-of select="current_page - $pre_count_page"/></xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose></xsl:variable>
<div class="nav">
Стр: <xsl:call-template name="for">
<xsl:with-param name="items_on_page" select="items_on_page"/>
<xsl:with-param name="current_page" select="current_page"/>
<xsl:with-param name="count_items" select="count_items"/>
<xsl:with-param name="i" select="$i"/>
<xsl:with-param name="post_count_page" select="$post_count_page"/>
<xsl:with-param name="pre_count_page" select="$pre_count_page"/>
<xsl:with-param name="visible_pages" select="$real_visible_pages"/>
</xsl:call-template>
</div>
<div style="clear: both"></div>
</xsl:if>
</td>
</tr>
<td><div style="font:12px arial; color:#000;" valign="bottom"><input type="checkbox" name="property_id_136" id="property_id_136" style="margin-top:-2px; margin-right:3px;" onchange="document.forms['0'].submit();" />Есть на складе</div></td>
<td align="right">
Товаров на странице:
<select name="on_page" onchange="document.forms['0'].submit();">
<option value="0">…</option>
<xsl:call-template name="for_on_page">
<xsl:with-param name="i" select="10"/>
<xsl:with-param name="n" select="50"/>
</xsl:call-template>
</select></td>
</tr></table>
</div>
<!-- Определяем ссылку с параметрами фильтра -->
<xsl:variable name="filter">
<xsl:choose>
<xsl:when test="/shop/apply_filter/node()">?action=apply_filter&producer_id=<xsl:value-of select="/shop/producer_id"/>&saller_id=<xsl:value-of select="/shop/saller_id"/>&price_from=<xsl:value-of select="/shop/price_from"/>&price_to=<xsl:value-of select="/shop/price_to"/>&on_page=<xsl:value-of select="/shop/on_page"/>
<xsl:if test="/shop/property_xml/node()">
<!-- GET для доп. свойств -->
<xsl:value-of select="/shop/property_xml"/>
</xsl:if>
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Определяем первый символ вопрос или амперсанд -->
<xsl:variable name="first_symbol">
<xsl:choose>
<xsl:when test="$filter != ''">&</xsl:when>
<xsl:otherwise>?</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table-tovar">
<tr style="background:#e6e6e6; height:30px;">
<td class="td" style="width:4%;border-bottom:1px solid #a7a7a7;" align="center">№</td>
<td class="td" style="border-bottom:1px solid #a7a7a7;" align="center">Наименование товара</td>
<td class="td" style="border-bottom:1px solid #a7a7a7;" align="center">Ед. изм.</td>
<td class="td" style="border-bottom:1px solid #a7a7a7;" align="center">Розн. цена</td>
<td class="td" style="border-bottom:1px solid #a7a7a7;" align="center">Кол-во / Заказ</td>
<td style="border-bottom:1px solid #a7a7a7;" align="center" class="artikul">Артикул</td>
</tr>
<xsl:apply-templates select="item" />
</table>
<xsl:if test="count(/shop/group[@id = /shop/@current_group_id]/propertys/property) > 0">
<div style="margin: 10px 0px;">
<h2>Атрибуты группы товаров</h2>
<xsl:if test="count(property[@dir_id = 0])">
<table border="0">
<xsl:apply-templates select="property[@dir_id = 0]"/>
</table>
</xsl:if>
<xsl:apply-templates select="/shop/properties_groups_dir"/>
</div>
</xsl:if>
<xsl:if test="count_items > 0 and items_on_page > 0 and count_items > items_on_page">
<xsl:variable name="count_pages" select="ceiling(count_items div items_on_page)"/>
<xsl:variable name="visible_pages" select="5"/>
<xsl:variable name="real_visible_pages"><xsl:choose>
<xsl:when test="$count_pages < $visible_pages"><xsl:value-of select="$count_pages"/></xsl:when>
<xsl:otherwise><xsl:value-of select="$visible_pages"/></xsl:otherwise>
</xsl:choose></xsl:variable>
<!-- Считаем количество выводимых ссылок перед текущим элементом -->
<xsl:variable name="pre_count_page"><xsl:choose>
<xsl:when test="current_page - (floor($real_visible_pages div 2)) < 0">
<xsl:value-of select="current_page"/>
</xsl:when>
<xsl:when test="($count_pages - current_page - 1) < floor($real_visible_pages div 2)">
<xsl:value-of select="$real_visible_pages - ($count_pages - current_page - 1) - 1"/>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="round($real_visible_pages div 2) = $real_visible_pages div 2">
<xsl:value-of select="floor($real_visible_pages div 2) - 1"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="floor($real_visible_pages div 2)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose></xsl:variable>
<!-- Считаем количество выводимых ссылок после текущего элемента -->
<xsl:variable name="post_count_page"><xsl:choose>
<xsl:when test="0 > current_page - (floor($real_visible_pages div 2) - 1)">
<xsl:value-of select="$real_visible_pages - current_page - 1"/>
</xsl:when>
<xsl:when test="($count_pages - current_page - 1) < floor($real_visible_pages div 2)">
<xsl:value-of select="$real_visible_pages - $pre_count_page - 1"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$real_visible_pages - $pre_count_page - 1"/>
</xsl:otherwise>
</xsl:choose></xsl:variable>
<xsl:variable name="i"><xsl:choose>
<xsl:when test="current_page + 1 = $count_pages"><xsl:value-of select="current_page - $real_visible_pages + 1"/></xsl:when>
<xsl:when test="current_page - $pre_count_page > 0"><xsl:value-of select="current_page - $pre_count_page"/></xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose></xsl:variable>
<p class="nav-bot">
Стр: <xsl:call-template name="for">
<xsl:with-param name="items_on_page" select="items_on_page"/>
<xsl:with-param name="current_page" select="current_page"/>
<xsl:with-param name="count_items" select="count_items"/>
<xsl:with-param name="i" select="$i"/>
<xsl:with-param name="post_count_page" select="$post_count_page"/>
<xsl:with-param name="pre_count_page" select="$pre_count_page"/>
<xsl:with-param name="visible_pages" select="$real_visible_pages"/>
</xsl:call-template>
</p>
<div style="clear: both"></div>
</xsl:if>
</form>
</xsl:if>
</xsl:template>
<!-- Вывод раздела для свойств группы товаров -->
<xsl:template match="properties_groups_dir">
<p><b><xsl:value-of select="shop_properties_groups_dir_name"/></b></p>
<xsl:variable name="dir_id" select="@id"/>
<xsl:if test="count(/shop/group[@id = /shop/@current_group_id]/propertys/property)">
<table border="0">
<xsl:apply-templates select="/shop/group[@id = /shop/@current_group_id]/propertys/property[@parent_id = $dir_id]"/>
</table>
</xsl:if>
<xsl:if test="count(properties_groups_dir)">
<blockquote>
<xsl:apply-templates select="properties_groups_dir"/>
</blockquote>
</xsl:if>
</xsl:template>
<!-- Вывод строки со значением свойства -->
<xsl:template match="property">
<tr>
<td style="padding: 5px" bgcolor="#eeeeee">
<b><xsl:value-of select="name"/></b>
</td>
<td style="padding: 5px" bgcolor="#eeeeee">
<xsl:choose>
<xsl:when test="type = 1">
<a href="{file_path}">Скачать файл</a>
</xsl:when>
<xsl:when test="type = 7">
<xsl:choose>
<xsl:when test="value = 1">
<input type="checkbox" checked="" disabled="" />
</xsl:when>
<xsl:otherwise>
<input type="checkbox" disabled="" />
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of disable-output-escaping="yes" select="value"/>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:template>
<!-- Шаблон для списка товаров для сравнения -->
<xsl:template match="compare_items/compare_item">
<xsl:variable name="var_compare_id" select="."/>
<tr>
<td>
<input type="checkbox" name="del_compare_id_{compare_item_id}" id="id_del_compare_id_{compare_item_id}" />
</td>
<td>
<a href="{/shop/path}{compare_item_fullpath}{compare_item_path}/">
<xsl:value-of disable-output-escaping="yes" select="compare_item_name"/>
</a>
</td>
</tr>
</xsl:template>
<!-- Шаблон для фильтра производителей -->
<xsl:template match="producerslist/producer">
<xsl:param name="id_prod" select="@id"/>
<!--
<xsl:variable name="node_name" select="concat('производители', $id_prod)"/>
<xsl:if test="count(/shop/*[name() = $node_name])">
-->
<a href="javascript:document.forms[0].producer_id.value={@id};document.forms[0].submit();" style="margin-right:10px;" >
<xsl:value-of disable-output-escaping="yes" select="shop_producers_list_name"/>
</a>
<!--
</xsl:if>
-->
</xsl:template>
<!-- Шаблон для фильтра продавцов -->
<xsl:template match="sallers/saller">
<option value="{@id}">
<xsl:if test="@id = /shop/saller_id">
<xsl:attribute name="selected">
</xsl:attribute>
</xsl:if>
<xsl:value-of select="sallers_name"/>
</option>
</xsl:template>
<!-- Шаблон для фильтра по дополнительным свойствам -->
<xsl:template match="properties_for_group/property">
<xsl:variable name="nodename">property_id_<xsl:value-of select="@id"/></xsl:variable>
<xsl:variable name="nodename_from">property_id_<xsl:value-of select="@id"/>_from</xsl:variable>
<xsl:variable name="nodename_to">property_id_<xsl:value-of select="@id"/>_to</xsl:variable>
<td>
<xsl:value-of disable-output-escaping="yes" select="property_name"/> 
<xsl:if test="property_show_kind = 1">
<!-- Отображаем поле ввода -->
<br/>
<input type="text" name="property_id_{@id}">
<xsl:if test="/shop/*[name()=$nodename] != ''">
<xsl:attribute name="value">
<xsl:value-of select="/shop/*[name()=$nodename]"/>
</xsl:attribute>
</xsl:if>
</input>
</xsl:if>
<xsl:if test="property_show_kind = 2">
<!-- Отображаем список -->
<br/>
<select name="property_id_{@id}">
<option value="0">...</option>-->
<xsl:apply-templates select="list_items/list_item"/>
</select>
</xsl:if>
<xsl:if test="property_show_kind = 3">
<!-- Отображаем переключатели -->
<br/>
<input type="radio" name="property_id_{@id}" value="0" id="id_prop_radio_{@id}_0"></input>
<label for="id_prop_radio_{@id}_0">Любой вариант</label>
<xsl:apply-templates select="list_items/list_item"/>
</xsl:if>
<xsl:if test=" property_show_kind = 4">
<!-- Отображаем флажки -->
<xsl:apply-templates select="list_items/list_item"/>
</xsl:if>
<xsl:if test=" property_show_kind = 6">
<!-- Отображение полей "От.. До.." -->
<br/>
от: <input type="text" name="property_id_{@id}_from" size="5" value="{/shop/*[name()=$nodename_from]}"/> до: <input type="text" name="property_id_{@id}_to" size="5" value="{/shop/*[name()=$nodename_to]}"/>
</xsl:if>
<xsl:if test="property_show_kind = 7">
<!-- Отображаем список с множественным выбором-->
<br/>
<select name="property_id_{@id}[]" multiple="">
<xsl:apply-templates select="list_items/list_item"/>
</select>
</xsl:if>
</td>
<xsl:if test="position() mod 6 = 0 and position() != last()">
<xsl:text disable-output-escaping="yes">
</tr>
<tr valign="top">
</xsl:text>
</xsl:if>
</xsl:template>
<xsl:template match="list_items/list_item">
<xsl:if test="../../property_show_kind = 2">
<!-- Отображаем список -->
<xsl:variable name="nodename">property_id_<xsl:value-of select="../../@id"/></xsl:variable>
<option value="{@id}">
<xsl:if test="/shop/*[name()=$nodename] = @id">
<xsl:attribute name="selected">
</xsl:attribute>
</xsl:if>
<xsl:value-of disable-output-escaping="yes" select="list_item_value"/>
</option>
</xsl:if>
<xsl:if test="../../property_show_kind = 3">
<!-- Отображаем переключатели -->
<xsl:variable name="nodename">property_id_<xsl:value-of select="../../@id"/></xsl:variable>
<br/>
<input type="radio" name="property_id_{../../@id}" value="{@id}" id="id_property_id_{../../@id}_{@id}">
<xsl:if test="/shop/*[name()=$nodename] = @id">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
<label for="id_property_id_{../../@id}_{@id}">
<xsl:value-of disable-output-escaping="yes" select="list_item_value"/>
</label>
</input>
</xsl:if>
<xsl:if test="../../property_show_kind = 4">
<!-- Отображаем флажки -->
<xsl:variable name="nodename">property_id_<xsl:value-of select="../../@id"/>_item_id_<xsl:value-of select="@id"/></xsl:variable> <br/>
<input type="checkbox" name="property_id_{../../@id}_item_id_{@id}" id="id_property_id_{../../@id}_{@id}">
<xsl:if test="/shop/*[name()=$nodename] = @id">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
<label for="id_property_id_{../../@id}_{@id}">
<xsl:value-of disable-output-escaping="yes" select="list_item_value"/> </label>
</input>
</xsl:if> <xsl:if test="../../property_show_kind = 7">
<!-- Отображаем список -->
<xsl:variable name="nodename">property_id_<xsl:value-of select="../../@id"/></xsl:variable>
<option value="{@id}">
<xsl:if test="/shop/*[name()=$nodename] = @id">
<xsl:attribute name="selected">
</xsl:attribute>
</xsl:if>
<xsl:value-of disable-output-escaping="yes" select="list_item_value"/>
</option>
</xsl:if>
</xsl:template>
<!-- Цикл с шагом 10 для select'a количества элементов на страницу -->
<xsl:template name="for_on_page">
<xsl:param name="i" select="0"/>
<xsl:param name="n"/>
<option value="{$i}">
<xsl:if test="$i = /shop/on_page">
<xsl:attribute name="selected">
</xsl:attribute>
</xsl:if>
<xsl:value-of select="$i"/>
</option>
<xsl:if test="$n > $i">
<!-- Рекурсивный вызов шаблона -->
<xsl:call-template name="for_on_page">
<xsl:with-param name="i" select="$i + 10"/>
<xsl:with-param name="n" select="$n"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
<!-- Шаблон для групп товара -->
<xsl:template match="group">
<xsl:variable name="parent_id" select="@parent"/>
<div style="margin-bottom: 15px;">
<a href="{/shop/path}{fullpath}" style="font-weight: bold">
<xsl:value-of disable-output-escaping="yes" select="name"/>
</a> <span style="color: #aaaaaa">(<xsl:value-of select="count_all_items"/>)</span>
<br/>
<xsl:value-of disable-output-escaping="yes" select="description"/>
<xsl:if test="count(group) > 1">
<xsl:apply-templates select="group" mode="sub_group"/>
</xsl:if>
</div>
<xsl:if test="position()= round(count(//group[@parent = $parent_id]) div 2)">
<xsl:text disable-output-escaping="yes">
</td>
<td valign="top" width="50%">
</xsl:text>
</xsl:if>
</xsl:template>
<!-- Шаблон для подразделов -->
<xsl:template match="group" mode="sub_group">
<a href="{/shop/path}{fullpath}">
<xsl:value-of disable-output-escaping="yes" select="name"/>
</a>
<xsl:variable name="parent_id" select="@parent"/>
<!-- Ставим запятую после группы, за которой следуют еще группы из данной родителской группы -->
<xsl:if test="position() != last() and count(//group[@parent = $parent_id]) > 1">, </xsl:if>
</xsl:template>
<!-- Шаблон для товара -->
<xsl:template match="item">
<!-- Определяем цвет фона -->
<xsl:variable name="background_color">
<xsl:choose>
<xsl:when test="(position() + 1) mod 2 > 0">tr-2</xsl:when>
<xsl:otherwise>tr-1</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<tr style="height:50px;" class="{$background_color}" id="tr">
<td class="td" align="center" valign="top" style="padding-top:3px;">
<xsl:value-of disable-output-escaping="yes" select="(position() )"/>
</td>
<td class="td" align="center" valign="top" style="padding-top:3px;">
<!-- Название товара -->
<div class="tovar-a">
<a href="{/shop/path}{fullpath}{path}/" class="cat_title">
<xsl:value-of disable-output-escaping="yes" select="name"/>
</a>
</div>
</td>
<td class="td" valign="top" align="center" style="padding-top:3px;">
<!-- Изображение для товара, если есть -->
<xsl:value-of select="mesure"/>
</td> <td class="td" align="center" valign="top" style="padding-top:3px;">
<xsl:choose>
<xsl:when test="price_discount != 0">
<span style="font-size: 11pt">
<xsl:variable name="price" select="price_discount"/>
<xsl:value-of select="format-number($price, '### ##0,00', 'my')"/> 
<!-- Валюта товара -->
<xsl:value-of disable-output-escaping="yes" select="currency"/>
</span>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose> <!-- Описание товара -->
<xsl:value-of disable-output-escaping="yes" select="description"/>
<!-- Если электронный товар, выведим доступное количество -->
<xsl:if test="type = 1">
<p>
<strong>
<xsl:choose>
<xsl:when test="eitem_count = 0">
Электронный товар закончился.
</xsl:when>
<xsl:when test="eitem_count = -1">
Электронный товар доступен для заказа.
</xsl:when>
<xsl:otherwise>
На складе осталось: <xsl:value-of select="eitem_count" /><xsl:text> </xsl:text><xsl:value-of select="mesure" />
</xsl:otherwise>
</xsl:choose>
</strong>
</p>
</xsl:if>
<!-- Цена товара -->
</td>
<td width="15%" valign="top" class="td" align="center" style="padding-top:3px;">
<!-- Если цена со скидкой - выводим ее -->
<xsl:if test="price_tax != price_discount">
<span style="color: gray; text-decoration: line-through;">
<xsl:variable name="price_tax" select="price_tax"/>
<span style="font-size: 11pt">
<xsl:value-of select="format-number($price_tax, '### ##0,00', 'my')"/> <xsl:value-of disable-output-escaping="yes" select="currency"/></span>
</span>
<br/>
</xsl:if>
<!-- Ссылку на добавление в корзины выводим, если:
type != 1 - простой тип товара или делимый (0 - простой, 2 - делимый)
type = 1 - электронный товар, при этом остаток на складе больше 0 или -1,
что означает неограниченное количество -->
<xsl:if test="type != 1 or (type = 1 and (eitem_count > 0 or eitem_count = -1))">
<div style="display: inline; margin-left: 3px">
<input type="text" size="13" style="border:1px solid #818181;" border="0" value="1" id="count_{@id}" />
<a href="{/shop/path}cart/?action=add&item_id={@id}" onclick="return AddIntoCart('{/shop/path}', {@id}, document.getElementById('count_{@id}').value)">
<img alt="В корзину" title="В корзину" src="/hostcmsfiles/images/cart.gif" style="margin: 3px 0 0 0" />
</a>
</div>
</xsl:if>
</td>
<td width="8%" class="cat_price_label" valign="top" align="center" style="padding-top:3px;">
<xsl:value-of disable-output-escaping="yes" select="marking_of_goods"/>
</td>
</tr>
</xsl:template>
<!-- /// Метки для товаров /// -->
<xsl:template match="tags/tag">
<a href="{/shop/path}tag/{tag_path_name}/" class="tag">
<xsl:value-of select="tag_name"/>
</a>
<xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if>
</xsl:template>
<!-- Шаблон для модификаций -->
<xsl:template match="modifications/item">
<tr>
<td>
<a href="{/shop/path}{fullpath}{path}/">
<img src="{small_image}" class="image" />
</a>
</td>
<td>
<!-- Название модификации -->
<a href="{/shop/path}{fullpath}{path}/">
<xsl:value-of disable-output-escaping="yes" select="name"/>
</a>
</td>
<td>
<!-- Цена модификации -->
<xsl:choose>
<xsl:when test="price_discount != 0">
<xsl:value-of disable-output-escaping="yes" select="price_discount"/> 
<!-- Валюта товара -->
<xsl:value-of disable-output-escaping="yes" select="currency"/>
</xsl:when>
<xsl:otherwise>договорная</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:template>
<!-- Шаблон для скидки -->
<xsl:template match="discount">
<br/>
<xsl:value-of disable-output-escaping="yes" select="name"/> 
<xsl:value-of disable-output-escaping="yes" select="value"/>%</xsl:template>
<!-- Шаблон для спеццен -->
<xsl:template match="special_price">
<xsl:variable name="item_id" select="@item_id" />
<br/>
от <xsl:value-of select="shop_special_prices_from"/> до <xsl:value-of select="shop_special_prices_to"/> <xsl:value-of select="/shop/item[@id = $item_id]/mesure"/>
<xsl:text> </xsl:text>
—
<xsl:text> </xsl:text>
<xsl:value-of select="format-number(shop_special_prices_price,'### ##0,00', 'my')" /> <xsl:value-of select="/shop/item[@id = $item_id]/currency"/>
за 1 <xsl:value-of select="/shop/item[@id = $item_id]/mesure"/>
</xsl:template>
<!-- Цикл для вывода строк ссылок -->
<xsl:template name="for">
<xsl:param name="items_on_page"/>
<xsl:param name="current_page"/>
<xsl:param name="pre_count_page"/>
<xsl:param name="post_count_page"/>
<xsl:param name="i" select="0"/>
<xsl:param name="count_items"/>
<xsl:param name="visible_pages"/>
<xsl:variable name="n" select="ceiling($count_items div $items_on_page)"/>
<xsl:variable name="start_page"><xsl:choose>
<xsl:when test="$current_page + 1 = $n"><xsl:value-of select="$current_page - $visible_pages + 1"/></xsl:when>
<xsl:when test="$current_page - $pre_count_page > 0"><xsl:value-of select="$current_page - $pre_count_page"/></xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose></xsl:variable>
<xsl:if test="$i = $start_page and $current_page != 0">
<span class="ctrl">
</span>
</xsl:if>
<xsl:if test="$i = ($current_page + $post_count_page + 1) and $n != ($current_page+1)">
<span class="ctrl">
</span>
</xsl:if>
<xsl:if test="$count_items > $items_on_page and ($current_page + $post_count_page + 1) > $i">
<!-- Заносим в переменную $parent_group_id идентификатор текущей группы -->
<xsl:variable name="parent_group_id" select="/shop/@current_group_id"/>
<!-- Путь для тэга -->
<xsl:variable name="tag_path">
<xsl:if test="count(/shop/selected_tags/tag) = 1">tag/<xsl:value-of select="/shop/selected_tags/tag/tag_path_name"/>/</xsl:if>
</xsl:variable>
<!-- Определяем группу для формирования адреса ссылки -->
<xsl:variable name="group_link">
<xsl:choose>
<!-- Если группа не корневая (!=0) -->
<xsl:when test="$parent_group_id != 0">
<xsl:value-of select="/shop//group[@id=$parent_group_id]/fullpath"/>
</xsl:when>
<!-- Иначе если нулевой уровень - просто ссылка на страницу со списком элементов -->
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Определяем адрес ссылки -->
<xsl:variable name="number_link">
<xsl:choose>
<!-- Если не нулевой уровень -->
<xsl:when test="$i != 0">page-<xsl:value-of select="$i + 1"/>/</xsl:when>
<!-- Иначе если нулевой уровень - просто ссылка на страницу со списком элементов -->
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Передаем фильтр -->
<xsl:variable name="filter">
<xsl:choose>
<xsl:when test="/shop/apply_filter/node()">?action=apply_filter&producer_id=<xsl:value-of select="/shop/producer_id"/>&saller_id=<xsl:value-of select="/shop/saller_id"/>&price_from=<xsl:value-of select="/shop/price_from"/>&price_to=<xsl:value-of select="/shop/price_to"/>&on_page=<xsl:value-of select="/shop/on_page"/>
<xsl:if test="/shop/property_xml/node()">
<!-- GET для доп. свойств -->
<xsl:value-of select="/shop/property_xml"/>
</xsl:if>
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Определяем первый символ вопрос или амперсанд -->
<xsl:variable name="first_symbol">
<xsl:choose>
<xsl:when test="$filter != ''">&</xsl:when>
<xsl:otherwise>?</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Данные для стрелок сортировки -->
<xsl:variable name="arrows">
<xsl:choose>
<xsl:when test="(/shop/sort_by_field = 1) or (/shop/sort_by_field = 2)">
<xsl:choose>
<!-- Стрелка вверх -->
<xsl:when test="/shop/order_direction = 'ASC'">
<xsl:value-of select="$first_symbol"/>sort_by_field=<xsl:value-of select="/shop/sort_by_field"/>&order_direction=1</xsl:when>
<!-- Стрелка вниз -->
<xsl:otherwise>
<xsl:value-of select="$first_symbol"/>sort_by_field=<xsl:value-of select="/shop/sort_by_field"/>&order_direction=2</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Выводим ссылку на первую страницу -->
<xsl:if test="$current_page - $pre_count_page > 0 and $i = $start_page">
<a href="{/shop/path}{$group_link}{$tag_path}{$filter}{$arrows}" class="page_link" style="text-decoration: none;">←</a>
</xsl:if>
<!-- Ставим ссылку на страницу-->
<xsl:if test="$i != $current_page">
<xsl:if test="($current_page - $pre_count_page) <= $i and $i < $n">
<!-- Выводим ссылки на видимые страницы -->
<a href="{/shop/path}{$group_link}{$tag_path}{$number_link}{$filter}{$arrows}" class="page_link">
<xsl:value-of select="$i + 1"/>
</a>
</xsl:if>
<!-- Выводим ссылку на последнюю страницу -->
<xsl:if test="$i+1 >= ($current_page + $post_count_page + 1) and $n > ($current_page + 1 + $post_count_page)">
<!-- Выводим ссылку на последнюю страницу -->
<a href="{/shop/path}{$group_link}{$tag_path}page-{$n}/{$filter}{$arrows}" class="page_link" style="text-decoration: none;">→</a>
</xsl:if>
</xsl:if>
<!-- Ссылка на предыдущую страницу для Ctrl + влево -->
<xsl:if test="$current_page != 0 and $i = $current_page">
<xsl:variable name="prev_number_link">
<xsl:choose>
<!-- Если не нулевой уровень -->
<xsl:when test="($current_page - 1) != 0">page-<xsl:value-of select="$i"/>/</xsl:when>
<!-- Иначе если нулевой уровень - просто ссылка на страницу со списком элементов -->
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<a href="{/shop/path}{$group_link}{$tag_path}{$prev_number_link}{$filter}{$arrows}" id="id_prev"></a>
</xsl:if>
<!-- Ссылка на следующую страницу для Ctrl + вправо -->
<xsl:if test="($n - 1) > $current_page and $i = $current_page">
<a href="{/shop/path}{$group_link}{$tag_path}page-{$current_page+2}/{$filter}{$arrows}" id="id_next"></a>
</xsl:if>
<!-- Не ставим ссылку на страницу-->
<xsl:if test="$i = $current_page">
<span class="current" style="color:#ff0000;">
<xsl:value-of select="$i+1"/>
</span>
</xsl:if>
<!-- Рекурсивный вызов шаблона. НЕОБХОДИМО ПЕРЕДАВАТЬ ВСЕ НЕОБХОДИМЫЕ ПАРАМЕТРЫ! -->
<xsl:call-template name="for">
<xsl:with-param name="i" select="$i + 1"/>
<xsl:with-param name="items_on_page" select="$items_on_page"/>
<xsl:with-param name="current_page" select="$current_page"/>
<xsl:with-param name="count_items" select="$count_items"/>
<xsl:with-param name="pre_count_page" select="$pre_count_page"/>
<xsl:with-param name="post_count_page" select="$post_count_page"/>
<xsl:with-param name="visible_pages" select="$visible_pages"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
<!-- Шаблон выводит рекурсивно ссылки на группы инф. элемента -->
<xsl:template match="group" mode="goup_path">
<xsl:param name="parent_id" select="@parent"/>
<!-- Получаем ID родительской группы и записываем в переменную $parent_group_id -->
<xsl:param name="parent_group_id" select="/shop/@current_group_id"/>
<xsl:apply-templates select="//group[@id=$parent_id]" mode="goup_path"/>
<xsl:if test="@parent=0">
<a href="{/shop/path}">
<xsl:value-of select="/shop/name"/>
</a>
</xsl:if>
<span class="path_arrow">→</span>
<a href="{/shop/path}{fullpath}">
<xsl:value-of disable-output-escaping="yes" select="name"/>
</a>
</xsl:template>
</xsl:stylesheet>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output xmlns="http://www.w3.org/TR/xhtml1/strict" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" encoding="utf-8" indent="yes" method="html" omit-xml-declaration="no" version="1.0" media-type="text/xml"/>
<xsl:decimal-format name="my" decimal-separator="," grouping-separator=" "/>
<xsl:template match="/">
<xsl:apply-templates select="/shop"/>
</xsl:template>
<!-- Шаблон для магазина -->
<xsl:template match="/shop">
<!-- Получаем ID родительской группы и записываем в переменную $parent_group_id -->
<xsl:variable name="parent_group_id" select="@current_group_id"/>
<!-- Если в находимся корне - выводим название информационной системы -->
<xsl:if test="$parent_group_id = 0">
<h1>
<xsl:value-of disable-output-escaping="yes" select="name"/>
</h1>
</xsl:if>
<!-- Если в находимся в группе - выводим название группы -->
<xsl:if test="../small_image!=''">
<a href="../{/shop/path}{fullpath}">
<img src="{../small_image}" style="border: 1px solid #DADADA"/>
</a>
</xsl:if> <table width="100%" >
<tr>
<td><xsl:if test="$parent_group_id != 0">
<h1>
<xsl:value-of disable-output-escaping="yes" select=".//group[@id=$parent_group_id]/name"/>
</h1>
</xsl:if></td>
<td align="right"> <div style="float:right;"><a href="/price.xls"><img src="/images/exel.gif" style="margin-right:10px;" border="0" /></a> <img src="/images/print.gif" border="0" /></div></td>
</tr>
</table>
<!-- Обработка выбранных тэгов -->
<xsl:if test="count(selected_tags/tag) = 1">
<h2>Метка — <strong><xsl:value-of select="selected_tags/tag/tag_name"/></strong>.</h2>
</xsl:if>
<!-- Путь к группе -->
<xsl:variable name="count">1</xsl:variable>
<!-- Отображение подгрупп данной группы, только если подгруппы есть и не идет фильтра по меткам -->
<xsl:if test="count(selected_tags/tag) = 0 and count(//group[@parent=$parent_group_id]) > 0">
<table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td valign="top">
<xsl:apply-templates select=".//group[@parent=$parent_group_id]"/>
</td>
</tr>
</table>
</xsl:if>
<!-- дополнение пути для action, если выбрана метка -->
<xsl:variable name="form_tag_path"><xsl:if test="count(selected_tags/tag) = 1">tag/<xsl:value-of select="selected_tags/tag/tag_path_name"/>/</xsl:if></xsl:variable>
<xsl:if test="count(item) > 0 or apply_filter = 1">
<form method="get" action="{/shop/path}{//group[@id=$parent_group_id]/fullpath}{$form_tag_path}">
<xsl:if test="property_xml/node() and property_xml='&all_group=1'">
<input type="hidden" name="all_group" value="1"/>
</xsl:if>
<div style="float:right;margin-top:10px;">
<input type="text" name="property_id_137" id="property_id_137" value="{/shop/*[name()='property_id_137']}" style="background: #fff url(/images/bg-search.gif) no-repeat;padding-left:3px;padding-right:15px; width:340px; height:25px; border:0;margin-right:5px; "/>
<input type="image" src="/images/search-main.gif"/>
</div>
<div style="clear:both;"></div>
<div class="shop_block" style="margin-top:10px;">
<div class="producer" >
<!-- Если есть доступные производители -->
<xsl:if test="count(producerslist/producer) > 1">
<b><xsl:value-of disable-output-escaping="yes" select=".//group[@id=$parent_group_id]/name"/>:</b>
<xsl:apply-templates select="producerslist/producer"/>
<a href="javascript:document.forms[0].producer_id.value=0;document.forms[0].submit();">Все производители</a>
<input type="hidden" name="producer_id" value="0" /> </xsl:if>
</div>
<!-- Таблица с элементами для сравнения -->
<xsl:if test="count(/shop/compare_items/compare_item) > 0">
<table cellpadding="5px" cellspacing="0" border="0">
<tr>
<td>
<input type="checkbox" onclick="SelectAllItemsByPrefix(this.checked, 'del_compare_id_')" />
</td>
<td>
<b>Сравниваемые элементы</b>
</td>
</tr>
<xsl:apply-templates select="compare_items/compare_item"/>
</table>
<div class="nofloat" style="height: 47px; padding: 5px 0;">
<div class="gray_button left">
<div>
<input name="apply_compare" value="Сравнить" type="button" onclick="javascript:location='{/shop/path}compare_items/';"/>
</div>
</div>
<div class="gray_button right">
<div>
<input name="delete_compare" value="Удалить" type="submit"/>
</div>
</div>
</div>
<!-- <input name="delete_all_compare" value="Удалить все" type="submit"/> -->
</xsl:if>
<!-- Сортировка товаров -->
<!-- Определяем ссылку с параметрами фильтра -->
<xsl:variable name="filter">
<xsl:if test="/shop/apply_filter/node()">?action=apply_filter&producer_id=<xsl:value-of select="/shop/producer_id"/>&saller_id=<xsl:value-of select="/shop/saller_id"/>&price_from=<xsl:value-of select="/shop/price_from"/>&price_to=<xsl:value-of select="/shop/price_to"/>&on_page=<xsl:value-of select="/shop/on_page"/>
<xsl:if test="/shop/property_xml/node()">
<!-- GET для доп. свойств -->
<xsl:value-of select="/shop/property_xml"/>
</xsl:if>
</xsl:if>
</xsl:variable>
<!-- Определяем первый символ вопрос или амперсанд -->
<xsl:variable name="first_symbol">
<xsl:choose>
<xsl:when test="$filter != ''">&</xsl:when>
<xsl:otherwise>?</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<div class="clearing"></div>
<table width="100%" style="margin-bottom:6px;"><tr>
<tr><td></td><td>
<xsl:if test="count_items > 0 and items_on_page > 0 and count_items > items_on_page">
<xsl:variable name="count_pages" select="ceiling(count_items div items_on_page)"/>
<xsl:variable name="visible_pages" select="5"/>
<xsl:variable name="real_visible_pages"><xsl:choose>
<xsl:when test="$count_pages < $visible_pages"><xsl:value-of select="$count_pages"/></xsl:when>
<xsl:otherwise><xsl:value-of select="$visible_pages"/></xsl:otherwise>
</xsl:choose></xsl:variable>
<!-- Считаем количество выводимых ссылок перед текущим элементом -->
<xsl:variable name="pre_count_page"><xsl:choose>
<xsl:when test="current_page - (floor($real_visible_pages div 2)) < 0">
<xsl:value-of select="current_page"/>
</xsl:when>
<xsl:when test="($count_pages - current_page - 1) < floor($real_visible_pages div 2)">
<xsl:value-of select="$real_visible_pages - ($count_pages - current_page - 1) - 1"/>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="round($real_visible_pages div 2) = $real_visible_pages div 2">
<xsl:value-of select="floor($real_visible_pages div 2) - 1"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="floor($real_visible_pages div 2)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose></xsl:variable>
<!-- Считаем количество выводимых ссылок после текущего элемента -->
<xsl:variable name="post_count_page"><xsl:choose>
<xsl:when test="0 > current_page - (floor($real_visible_pages div 2) - 1)">
<xsl:value-of select="$real_visible_pages - current_page - 1"/>
</xsl:when>
<xsl:when test="($count_pages - current_page - 1) < floor($real_visible_pages div 2)">
<xsl:value-of select="$real_visible_pages - $pre_count_page - 1"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$real_visible_pages - $pre_count_page - 1"/>
</xsl:otherwise>
</xsl:choose></xsl:variable>
<xsl:variable name="i"><xsl:choose>
<xsl:when test="current_page + 1 = $count_pages"><xsl:value-of select="current_page - $real_visible_pages + 1"/></xsl:when>
<xsl:when test="current_page - $pre_count_page > 0"><xsl:value-of select="current_page - $pre_count_page"/></xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose></xsl:variable>
<div class="nav">
Стр: <xsl:call-template name="for">
<xsl:with-param name="items_on_page" select="items_on_page"/>
<xsl:with-param name="current_page" select="current_page"/>
<xsl:with-param name="count_items" select="count_items"/>
<xsl:with-param name="i" select="$i"/>
<xsl:with-param name="post_count_page" select="$post_count_page"/>
<xsl:with-param name="pre_count_page" select="$pre_count_page"/>
<xsl:with-param name="visible_pages" select="$real_visible_pages"/>
</xsl:call-template>
</div>
<div style="clear: both"></div>
</xsl:if>
</td>
</tr>
<td><div style="font:12px arial; color:#000;" valign="bottom"><input type="checkbox" name="property_id_136" id="property_id_136" style="margin-top:-2px; margin-right:3px;" onchange="document.forms['0'].submit();" />Есть на складе</div></td>
<td align="right">
Товаров на странице:
<select name="on_page" onchange="document.forms['0'].submit();">
<option value="0">…</option>
<xsl:call-template name="for_on_page">
<xsl:with-param name="i" select="10"/>
<xsl:with-param name="n" select="50"/>
</xsl:call-template>
</select></td>
</tr></table>
</div>
<!-- Определяем ссылку с параметрами фильтра -->
<xsl:variable name="filter">
<xsl:choose>
<xsl:when test="/shop/apply_filter/node()">?action=apply_filter&producer_id=<xsl:value-of select="/shop/producer_id"/>&saller_id=<xsl:value-of select="/shop/saller_id"/>&price_from=<xsl:value-of select="/shop/price_from"/>&price_to=<xsl:value-of select="/shop/price_to"/>&on_page=<xsl:value-of select="/shop/on_page"/>
<xsl:if test="/shop/property_xml/node()">
<!-- GET для доп. свойств -->
<xsl:value-of select="/shop/property_xml"/>
</xsl:if>
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Определяем первый символ вопрос или амперсанд -->
<xsl:variable name="first_symbol">
<xsl:choose>
<xsl:when test="$filter != ''">&</xsl:when>
<xsl:otherwise>?</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table-tovar">
<tr style="background:#e6e6e6; height:30px;">
<td class="td" style="width:4%;border-bottom:1px solid #a7a7a7;" align="center">№</td>
<td class="td" style="border-bottom:1px solid #a7a7a7;" align="center">Наименование товара</td>
<td class="td" style="border-bottom:1px solid #a7a7a7;" align="center">Ед. изм.</td>
<td class="td" style="border-bottom:1px solid #a7a7a7;" align="center">Розн. цена</td>
<td class="td" style="border-bottom:1px solid #a7a7a7;" align="center">Кол-во / Заказ</td>
<td style="border-bottom:1px solid #a7a7a7;" align="center" class="artikul">Артикул</td>
</tr>
<xsl:apply-templates select="item" />
</table>
<xsl:if test="count(/shop/group[@id = /shop/@current_group_id]/propertys/property) > 0">
<div style="margin: 10px 0px;">
<h2>Атрибуты группы товаров</h2>
<xsl:if test="count(property[@dir_id = 0])">
<table border="0">
<xsl:apply-templates select="property[@dir_id = 0]"/>
</table>
</xsl:if>
<xsl:apply-templates select="/shop/properties_groups_dir"/>
</div>
</xsl:if>
<xsl:if test="count_items > 0 and items_on_page > 0 and count_items > items_on_page">
<xsl:variable name="count_pages" select="ceiling(count_items div items_on_page)"/>
<xsl:variable name="visible_pages" select="5"/>
<xsl:variable name="real_visible_pages"><xsl:choose>
<xsl:when test="$count_pages < $visible_pages"><xsl:value-of select="$count_pages"/></xsl:when>
<xsl:otherwise><xsl:value-of select="$visible_pages"/></xsl:otherwise>
</xsl:choose></xsl:variable>
<!-- Считаем количество выводимых ссылок перед текущим элементом -->
<xsl:variable name="pre_count_page"><xsl:choose>
<xsl:when test="current_page - (floor($real_visible_pages div 2)) < 0">
<xsl:value-of select="current_page"/>
</xsl:when>
<xsl:when test="($count_pages - current_page - 1) < floor($real_visible_pages div 2)">
<xsl:value-of select="$real_visible_pages - ($count_pages - current_page - 1) - 1"/>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="round($real_visible_pages div 2) = $real_visible_pages div 2">
<xsl:value-of select="floor($real_visible_pages div 2) - 1"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="floor($real_visible_pages div 2)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose></xsl:variable>
<!-- Считаем количество выводимых ссылок после текущего элемента -->
<xsl:variable name="post_count_page"><xsl:choose>
<xsl:when test="0 > current_page - (floor($real_visible_pages div 2) - 1)">
<xsl:value-of select="$real_visible_pages - current_page - 1"/>
</xsl:when>
<xsl:when test="($count_pages - current_page - 1) < floor($real_visible_pages div 2)">
<xsl:value-of select="$real_visible_pages - $pre_count_page - 1"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$real_visible_pages - $pre_count_page - 1"/>
</xsl:otherwise>
</xsl:choose></xsl:variable>
<xsl:variable name="i"><xsl:choose>
<xsl:when test="current_page + 1 = $count_pages"><xsl:value-of select="current_page - $real_visible_pages + 1"/></xsl:when>
<xsl:when test="current_page - $pre_count_page > 0"><xsl:value-of select="current_page - $pre_count_page"/></xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose></xsl:variable>
<p class="nav-bot">
Стр: <xsl:call-template name="for">
<xsl:with-param name="items_on_page" select="items_on_page"/>
<xsl:with-param name="current_page" select="current_page"/>
<xsl:with-param name="count_items" select="count_items"/>
<xsl:with-param name="i" select="$i"/>
<xsl:with-param name="post_count_page" select="$post_count_page"/>
<xsl:with-param name="pre_count_page" select="$pre_count_page"/>
<xsl:with-param name="visible_pages" select="$real_visible_pages"/>
</xsl:call-template>
</p>
<div style="clear: both"></div>
</xsl:if>
</form>
</xsl:if>
</xsl:template>
<!-- Вывод раздела для свойств группы товаров -->
<xsl:template match="properties_groups_dir">
<p><b><xsl:value-of select="shop_properties_groups_dir_name"/></b></p>
<xsl:variable name="dir_id" select="@id"/>
<xsl:if test="count(/shop/group[@id = /shop/@current_group_id]/propertys/property)">
<table border="0">
<xsl:apply-templates select="/shop/group[@id = /shop/@current_group_id]/propertys/property[@parent_id = $dir_id]"/>
</table>
</xsl:if>
<xsl:if test="count(properties_groups_dir)">
<blockquote>
<xsl:apply-templates select="properties_groups_dir"/>
</blockquote>
</xsl:if>
</xsl:template>
<!-- Вывод строки со значением свойства -->
<xsl:template match="property">
<tr>
<td style="padding: 5px" bgcolor="#eeeeee">
<b><xsl:value-of select="name"/></b>
</td>
<td style="padding: 5px" bgcolor="#eeeeee">
<xsl:choose>
<xsl:when test="type = 1">
<a href="{file_path}">Скачать файл</a>
</xsl:when>
<xsl:when test="type = 7">
<xsl:choose>
<xsl:when test="value = 1">
<input type="checkbox" checked="" disabled="" />
</xsl:when>
<xsl:otherwise>
<input type="checkbox" disabled="" />
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of disable-output-escaping="yes" select="value"/>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:template>
<!-- Шаблон для списка товаров для сравнения -->
<xsl:template match="compare_items/compare_item">
<xsl:variable name="var_compare_id" select="."/>
<tr>
<td>
<input type="checkbox" name="del_compare_id_{compare_item_id}" id="id_del_compare_id_{compare_item_id}" />
</td>
<td>
<a href="{/shop/path}{compare_item_fullpath}{compare_item_path}/">
<xsl:value-of disable-output-escaping="yes" select="compare_item_name"/>
</a>
</td>
</tr>
</xsl:template>
<!-- Шаблон для фильтра производителей -->
<xsl:template match="producerslist/producer">
<xsl:param name="id_prod" select="@id"/>
<!--
<xsl:variable name="node_name" select="concat('производители', $id_prod)"/>
<xsl:if test="count(/shop/*[name() = $node_name])">
-->
<a href="javascript:document.forms[0].producer_id.value={@id};document.forms[0].submit();" style="margin-right:10px;" >
<xsl:value-of disable-output-escaping="yes" select="shop_producers_list_name"/>
</a>
<!--
</xsl:if>
-->
</xsl:template>
<!-- Шаблон для фильтра продавцов -->
<xsl:template match="sallers/saller">
<option value="{@id}">
<xsl:if test="@id = /shop/saller_id">
<xsl:attribute name="selected">
</xsl:attribute>
</xsl:if>
<xsl:value-of select="sallers_name"/>
</option>
</xsl:template>
<!-- Шаблон для фильтра по дополнительным свойствам -->
<xsl:template match="properties_for_group/property">
<xsl:variable name="nodename">property_id_<xsl:value-of select="@id"/></xsl:variable>
<xsl:variable name="nodename_from">property_id_<xsl:value-of select="@id"/>_from</xsl:variable>
<xsl:variable name="nodename_to">property_id_<xsl:value-of select="@id"/>_to</xsl:variable>
<td>
<xsl:value-of disable-output-escaping="yes" select="property_name"/> 
<xsl:if test="property_show_kind = 1">
<!-- Отображаем поле ввода -->
<br/>
<input type="text" name="property_id_{@id}">
<xsl:if test="/shop/*[name()=$nodename] != ''">
<xsl:attribute name="value">
<xsl:value-of select="/shop/*[name()=$nodename]"/>
</xsl:attribute>
</xsl:if>
</input>
</xsl:if>
<xsl:if test="property_show_kind = 2">
<!-- Отображаем список -->
<br/>
<select name="property_id_{@id}">
<option value="0">...</option>-->
<xsl:apply-templates select="list_items/list_item"/>
</select>
</xsl:if>
<xsl:if test="property_show_kind = 3">
<!-- Отображаем переключатели -->
<br/>
<input type="radio" name="property_id_{@id}" value="0" id="id_prop_radio_{@id}_0"></input>
<label for="id_prop_radio_{@id}_0">Любой вариант</label>
<xsl:apply-templates select="list_items/list_item"/>
</xsl:if>
<xsl:if test=" property_show_kind = 4">
<!-- Отображаем флажки -->
<xsl:apply-templates select="list_items/list_item"/>
</xsl:if>
<xsl:if test=" property_show_kind = 6">
<!-- Отображение полей "От.. До.." -->
<br/>
от: <input type="text" name="property_id_{@id}_from" size="5" value="{/shop/*[name()=$nodename_from]}"/> до: <input type="text" name="property_id_{@id}_to" size="5" value="{/shop/*[name()=$nodename_to]}"/>
</xsl:if>
<xsl:if test="property_show_kind = 7">
<!-- Отображаем список с множественным выбором-->
<br/>
<select name="property_id_{@id}[]" multiple="">
<xsl:apply-templates select="list_items/list_item"/>
</select>
</xsl:if>
</td>
<xsl:if test="position() mod 6 = 0 and position() != last()">
<xsl:text disable-output-escaping="yes">
</tr>
<tr valign="top">
</xsl:text>
</xsl:if>
</xsl:template>
<xsl:template match="list_items/list_item">
<xsl:if test="../../property_show_kind = 2">
<!-- Отображаем список -->
<xsl:variable name="nodename">property_id_<xsl:value-of select="../../@id"/></xsl:variable>
<option value="{@id}">
<xsl:if test="/shop/*[name()=$nodename] = @id">
<xsl:attribute name="selected">
</xsl:attribute>
</xsl:if>
<xsl:value-of disable-output-escaping="yes" select="list_item_value"/>
</option>
</xsl:if>
<xsl:if test="../../property_show_kind = 3">
<!-- Отображаем переключатели -->
<xsl:variable name="nodename">property_id_<xsl:value-of select="../../@id"/></xsl:variable>
<br/>
<input type="radio" name="property_id_{../../@id}" value="{@id}" id="id_property_id_{../../@id}_{@id}">
<xsl:if test="/shop/*[name()=$nodename] = @id">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
<label for="id_property_id_{../../@id}_{@id}">
<xsl:value-of disable-output-escaping="yes" select="list_item_value"/>
</label>
</input>
</xsl:if>
<xsl:if test="../../property_show_kind = 4">
<!-- Отображаем флажки -->
<xsl:variable name="nodename">property_id_<xsl:value-of select="../../@id"/>_item_id_<xsl:value-of select="@id"/></xsl:variable> <br/>
<input type="checkbox" name="property_id_{../../@id}_item_id_{@id}" id="id_property_id_{../../@id}_{@id}">
<xsl:if test="/shop/*[name()=$nodename] = @id">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
<label for="id_property_id_{../../@id}_{@id}">
<xsl:value-of disable-output-escaping="yes" select="list_item_value"/> </label>
</input>
</xsl:if> <xsl:if test="../../property_show_kind = 7">
<!-- Отображаем список -->
<xsl:variable name="nodename">property_id_<xsl:value-of select="../../@id"/></xsl:variable>
<option value="{@id}">
<xsl:if test="/shop/*[name()=$nodename] = @id">
<xsl:attribute name="selected">
</xsl:attribute>
</xsl:if>
<xsl:value-of disable-output-escaping="yes" select="list_item_value"/>
</option>
</xsl:if>
</xsl:template>
<!-- Цикл с шагом 10 для select'a количества элементов на страницу -->
<xsl:template name="for_on_page">
<xsl:param name="i" select="0"/>
<xsl:param name="n"/>
<option value="{$i}">
<xsl:if test="$i = /shop/on_page">
<xsl:attribute name="selected">
</xsl:attribute>
</xsl:if>
<xsl:value-of select="$i"/>
</option>
<xsl:if test="$n > $i">
<!-- Рекурсивный вызов шаблона -->
<xsl:call-template name="for_on_page">
<xsl:with-param name="i" select="$i + 10"/>
<xsl:with-param name="n" select="$n"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
<!-- Шаблон для групп товара -->
<xsl:template match="group">
<xsl:variable name="parent_id" select="@parent"/>
<div style="margin-bottom: 15px;">
<a href="{/shop/path}{fullpath}" style="font-weight: bold">
<xsl:value-of disable-output-escaping="yes" select="name"/>
</a> <span style="color: #aaaaaa">(<xsl:value-of select="count_all_items"/>)</span>
<br/>
<xsl:value-of disable-output-escaping="yes" select="description"/>
<xsl:if test="count(group) > 1">
<xsl:apply-templates select="group" mode="sub_group"/>
</xsl:if>
</div>
<xsl:if test="position()= round(count(//group[@parent = $parent_id]) div 2)">
<xsl:text disable-output-escaping="yes">
</td>
<td valign="top" width="50%">
</xsl:text>
</xsl:if>
</xsl:template>
<!-- Шаблон для подразделов -->
<xsl:template match="group" mode="sub_group">
<a href="{/shop/path}{fullpath}">
<xsl:value-of disable-output-escaping="yes" select="name"/>
</a>
<xsl:variable name="parent_id" select="@parent"/>
<!-- Ставим запятую после группы, за которой следуют еще группы из данной родителской группы -->
<xsl:if test="position() != last() and count(//group[@parent = $parent_id]) > 1">, </xsl:if>
</xsl:template>
<!-- Шаблон для товара -->
<xsl:template match="item">
<!-- Определяем цвет фона -->
<xsl:variable name="background_color">
<xsl:choose>
<xsl:when test="(position() + 1) mod 2 > 0">tr-2</xsl:when>
<xsl:otherwise>tr-1</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<tr style="height:50px;" class="{$background_color}" id="tr">
<td class="td" align="center" valign="top" style="padding-top:3px;">
<xsl:value-of disable-output-escaping="yes" select="(position() )"/>
</td>
<td class="td" align="center" valign="top" style="padding-top:3px;">
<!-- Название товара -->
<div class="tovar-a">
<a href="{/shop/path}{fullpath}{path}/" class="cat_title">
<xsl:value-of disable-output-escaping="yes" select="name"/>
</a>
</div>
</td>
<td class="td" valign="top" align="center" style="padding-top:3px;">
<!-- Изображение для товара, если есть -->
<xsl:value-of select="mesure"/>
</td> <td class="td" align="center" valign="top" style="padding-top:3px;">
<xsl:choose>
<xsl:when test="price_discount != 0">
<span style="font-size: 11pt">
<xsl:variable name="price" select="price_discount"/>
<xsl:value-of select="format-number($price, '### ##0,00', 'my')"/> 
<!-- Валюта товара -->
<xsl:value-of disable-output-escaping="yes" select="currency"/>
</span>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose> <!-- Описание товара -->
<xsl:value-of disable-output-escaping="yes" select="description"/>
<!-- Если электронный товар, выведим доступное количество -->
<xsl:if test="type = 1">
<p>
<strong>
<xsl:choose>
<xsl:when test="eitem_count = 0">
Электронный товар закончился.
</xsl:when>
<xsl:when test="eitem_count = -1">
Электронный товар доступен для заказа.
</xsl:when>
<xsl:otherwise>
На складе осталось: <xsl:value-of select="eitem_count" /><xsl:text> </xsl:text><xsl:value-of select="mesure" />
</xsl:otherwise>
</xsl:choose>
</strong>
</p>
</xsl:if>
<!-- Цена товара -->
</td>
<td width="15%" valign="top" class="td" align="center" style="padding-top:3px;">
<!-- Если цена со скидкой - выводим ее -->
<xsl:if test="price_tax != price_discount">
<span style="color: gray; text-decoration: line-through;">
<xsl:variable name="price_tax" select="price_tax"/>
<span style="font-size: 11pt">
<xsl:value-of select="format-number($price_tax, '### ##0,00', 'my')"/> <xsl:value-of disable-output-escaping="yes" select="currency"/></span>
</span>
<br/>
</xsl:if>
<!-- Ссылку на добавление в корзины выводим, если:
type != 1 - простой тип товара или делимый (0 - простой, 2 - делимый)
type = 1 - электронный товар, при этом остаток на складе больше 0 или -1,
что означает неограниченное количество -->
<xsl:if test="type != 1 or (type = 1 and (eitem_count > 0 or eitem_count = -1))">
<div style="display: inline; margin-left: 3px">
<input type="text" size="13" style="border:1px solid #818181;" border="0" value="1" id="count_{@id}" />
<a href="{/shop/path}cart/?action=add&item_id={@id}" onclick="return AddIntoCart('{/shop/path}', {@id}, document.getElementById('count_{@id}').value)">
<img alt="В корзину" title="В корзину" src="/hostcmsfiles/images/cart.gif" style="margin: 3px 0 0 0" />
</a>
</div>
</xsl:if>
</td>
<td width="8%" class="cat_price_label" valign="top" align="center" style="padding-top:3px;">
<xsl:value-of disable-output-escaping="yes" select="marking_of_goods"/>
</td>
</tr>
</xsl:template>
<!-- /// Метки для товаров /// -->
<xsl:template match="tags/tag">
<a href="{/shop/path}tag/{tag_path_name}/" class="tag">
<xsl:value-of select="tag_name"/>
</a>
<xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if>
</xsl:template>
<!-- Шаблон для модификаций -->
<xsl:template match="modifications/item">
<tr>
<td>
<a href="{/shop/path}{fullpath}{path}/">
<img src="{small_image}" class="image" />
</a>
</td>
<td>
<!-- Название модификации -->
<a href="{/shop/path}{fullpath}{path}/">
<xsl:value-of disable-output-escaping="yes" select="name"/>
</a>
</td>
<td>
<!-- Цена модификации -->
<xsl:choose>
<xsl:when test="price_discount != 0">
<xsl:value-of disable-output-escaping="yes" select="price_discount"/> 
<!-- Валюта товара -->
<xsl:value-of disable-output-escaping="yes" select="currency"/>
</xsl:when>
<xsl:otherwise>договорная</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:template>
<!-- Шаблон для скидки -->
<xsl:template match="discount">
<br/>
<xsl:value-of disable-output-escaping="yes" select="name"/> 
<xsl:value-of disable-output-escaping="yes" select="value"/>%</xsl:template>
<!-- Шаблон для спеццен -->
<xsl:template match="special_price">
<xsl:variable name="item_id" select="@item_id" />
<br/>
от <xsl:value-of select="shop_special_prices_from"/> до <xsl:value-of select="shop_special_prices_to"/> <xsl:value-of select="/shop/item[@id = $item_id]/mesure"/>
<xsl:text> </xsl:text>
—
<xsl:text> </xsl:text>
<xsl:value-of select="format-number(shop_special_prices_price,'### ##0,00', 'my')" /> <xsl:value-of select="/shop/item[@id = $item_id]/currency"/>
за 1 <xsl:value-of select="/shop/item[@id = $item_id]/mesure"/>
</xsl:template>
<!-- Цикл для вывода строк ссылок -->
<xsl:template name="for">
<xsl:param name="items_on_page"/>
<xsl:param name="current_page"/>
<xsl:param name="pre_count_page"/>
<xsl:param name="post_count_page"/>
<xsl:param name="i" select="0"/>
<xsl:param name="count_items"/>
<xsl:param name="visible_pages"/>
<xsl:variable name="n" select="ceiling($count_items div $items_on_page)"/>
<xsl:variable name="start_page"><xsl:choose>
<xsl:when test="$current_page + 1 = $n"><xsl:value-of select="$current_page - $visible_pages + 1"/></xsl:when>
<xsl:when test="$current_page - $pre_count_page > 0"><xsl:value-of select="$current_page - $pre_count_page"/></xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose></xsl:variable>
<xsl:if test="$i = $start_page and $current_page != 0">
<span class="ctrl">
</span>
</xsl:if>
<xsl:if test="$i = ($current_page + $post_count_page + 1) and $n != ($current_page+1)">
<span class="ctrl">
</span>
</xsl:if>
<xsl:if test="$count_items > $items_on_page and ($current_page + $post_count_page + 1) > $i">
<!-- Заносим в переменную $parent_group_id идентификатор текущей группы -->
<xsl:variable name="parent_group_id" select="/shop/@current_group_id"/>
<!-- Путь для тэга -->
<xsl:variable name="tag_path">
<xsl:if test="count(/shop/selected_tags/tag) = 1">tag/<xsl:value-of select="/shop/selected_tags/tag/tag_path_name"/>/</xsl:if>
</xsl:variable>
<!-- Определяем группу для формирования адреса ссылки -->
<xsl:variable name="group_link">
<xsl:choose>
<!-- Если группа не корневая (!=0) -->
<xsl:when test="$parent_group_id != 0">
<xsl:value-of select="/shop//group[@id=$parent_group_id]/fullpath"/>
</xsl:when>
<!-- Иначе если нулевой уровень - просто ссылка на страницу со списком элементов -->
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Определяем адрес ссылки -->
<xsl:variable name="number_link">
<xsl:choose>
<!-- Если не нулевой уровень -->
<xsl:when test="$i != 0">page-<xsl:value-of select="$i + 1"/>/</xsl:when>
<!-- Иначе если нулевой уровень - просто ссылка на страницу со списком элементов -->
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Передаем фильтр -->
<xsl:variable name="filter">
<xsl:choose>
<xsl:when test="/shop/apply_filter/node()">?action=apply_filter&producer_id=<xsl:value-of select="/shop/producer_id"/>&saller_id=<xsl:value-of select="/shop/saller_id"/>&price_from=<xsl:value-of select="/shop/price_from"/>&price_to=<xsl:value-of select="/shop/price_to"/>&on_page=<xsl:value-of select="/shop/on_page"/>
<xsl:if test="/shop/property_xml/node()">
<!-- GET для доп. свойств -->
<xsl:value-of select="/shop/property_xml"/>
</xsl:if>
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Определяем первый символ вопрос или амперсанд -->
<xsl:variable name="first_symbol">
<xsl:choose>
<xsl:when test="$filter != ''">&</xsl:when>
<xsl:otherwise>?</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Данные для стрелок сортировки -->
<xsl:variable name="arrows">
<xsl:choose>
<xsl:when test="(/shop/sort_by_field = 1) or (/shop/sort_by_field = 2)">
<xsl:choose>
<!-- Стрелка вверх -->
<xsl:when test="/shop/order_direction = 'ASC'">
<xsl:value-of select="$first_symbol"/>sort_by_field=<xsl:value-of select="/shop/sort_by_field"/>&order_direction=1</xsl:when>
<!-- Стрелка вниз -->
<xsl:otherwise>
<xsl:value-of select="$first_symbol"/>sort_by_field=<xsl:value-of select="/shop/sort_by_field"/>&order_direction=2</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<!-- Выводим ссылку на первую страницу -->
<xsl:if test="$current_page - $pre_count_page > 0 and $i = $start_page">
<a href="{/shop/path}{$group_link}{$tag_path}{$filter}{$arrows}" class="page_link" style="text-decoration: none;">←</a>
</xsl:if>
<!-- Ставим ссылку на страницу-->
<xsl:if test="$i != $current_page">
<xsl:if test="($current_page - $pre_count_page) <= $i and $i < $n">
<!-- Выводим ссылки на видимые страницы -->
<a href="{/shop/path}{$group_link}{$tag_path}{$number_link}{$filter}{$arrows}" class="page_link">
<xsl:value-of select="$i + 1"/>
</a>
</xsl:if>
<!-- Выводим ссылку на последнюю страницу -->
<xsl:if test="$i+1 >= ($current_page + $post_count_page + 1) and $n > ($current_page + 1 + $post_count_page)">
<!-- Выводим ссылку на последнюю страницу -->
<a href="{/shop/path}{$group_link}{$tag_path}page-{$n}/{$filter}{$arrows}" class="page_link" style="text-decoration: none;">→</a>
</xsl:if>
</xsl:if>
<!-- Ссылка на предыдущую страницу для Ctrl + влево -->
<xsl:if test="$current_page != 0 and $i = $current_page">
<xsl:variable name="prev_number_link">
<xsl:choose>
<!-- Если не нулевой уровень -->
<xsl:when test="($current_page - 1) != 0">page-<xsl:value-of select="$i"/>/</xsl:when>
<!-- Иначе если нулевой уровень - просто ссылка на страницу со списком элементов -->
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<a href="{/shop/path}{$group_link}{$tag_path}{$prev_number_link}{$filter}{$arrows}" id="id_prev"></a>
</xsl:if>
<!-- Ссылка на следующую страницу для Ctrl + вправо -->
<xsl:if test="($n - 1) > $current_page and $i = $current_page">
<a href="{/shop/path}{$group_link}{$tag_path}page-{$current_page+2}/{$filter}{$arrows}" id="id_next"></a>
</xsl:if>
<!-- Не ставим ссылку на страницу-->
<xsl:if test="$i = $current_page">
<span class="current" style="color:#ff0000;">
<xsl:value-of select="$i+1"/>
</span>
</xsl:if>
<!-- Рекурсивный вызов шаблона. НЕОБХОДИМО ПЕРЕДАВАТЬ ВСЕ НЕОБХОДИМЫЕ ПАРАМЕТРЫ! -->
<xsl:call-template name="for">
<xsl:with-param name="i" select="$i + 1"/>
<xsl:with-param name="items_on_page" select="$items_on_page"/>
<xsl:with-param name="current_page" select="$current_page"/>
<xsl:with-param name="count_items" select="$count_items"/>
<xsl:with-param name="pre_count_page" select="$pre_count_page"/>
<xsl:with-param name="post_count_page" select="$post_count_page"/>
<xsl:with-param name="visible_pages" select="$visible_pages"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
<!-- Шаблон выводит рекурсивно ссылки на группы инф. элемента -->
<xsl:template match="group" mode="goup_path">
<xsl:param name="parent_id" select="@parent"/>
<!-- Получаем ID родительской группы и записываем в переменную $parent_group_id -->
<xsl:param name="parent_group_id" select="/shop/@current_group_id"/>
<xsl:apply-templates select="//group[@id=$parent_id]" mode="goup_path"/>
<xsl:if test="@parent=0">
<a href="{/shop/path}">
<xsl:value-of select="/shop/name"/>
</a>
</xsl:if>
<span class="path_arrow">→</span>
<a href="{/shop/path}{fullpath}">
<xsl:value-of disable-output-escaping="yes" select="name"/>
</a>
</xsl:template>
</xsl:stylesheet>
это XSLT шаблгн, а я просил XML
разработка сайтов, фирменных стилей, интерфейсов
Извиняюсь перепутал)
<?xml version="1.0" encoding="UTF-8"?>
<shop id="1" current_group_id="610">
<user_id>0</user_id>
<name>Каталог</name>
<description></description>
<path>/catalog/</path>
<site_id>1</site_id>
<shop_image_small_max_width>250</shop_image_small_max_width>
<shop_image_big_max_width>800</shop_image_big_max_width>
<shop_image_small_max_height>0</shop_image_small_max_height>
<shop_image_big_max_height>800</shop_image_big_max_height>
<structure_id>42</structure_id>
<shop_country_id>175</shop_country_id>
<shop_currency id="1">
<shop_currency_name>руб.</shop_currency_name>
<shop_currency_international_name>RUB</shop_currency_international_name>
<shop_currency_value_in_basic_currency>1.000000</shop_currency_value_in_basic_currency>
<shop_currency_is_default>1</shop_currency_is_default>
</shop_currency>
<all_currency>
<shop_currency id="1">
<shop_currency_name>руб.</shop_currency_name>
<shop_currency_international_name>RUB</shop_currency_international_name>
<shop_currency_value_in_basic_currency>1.000000</shop_currency_value_in_basic_currency>
<shop_currency_is_default>1</shop_currency_is_default>
<shop_currency_coefficient>1</shop_currency_coefficient>
</shop_currency>
<shop_currency id="2">
<shop_currency_name>&euro;</shop_currency_name>
<shop_currency_international_name>EUR</shop_currency_international_name>
<shop_currency_value_in_basic_currency>36.889479</shop_currency_value_in_basic_currency>
<shop_currency_is_default>0</shop_currency_is_default>
<shop_currency_coefficient>0.027108000088589</shop_currency_coefficient>
</shop_currency>
<shop_currency id="3">
<shop_currency_name>$</shop_currency_name>
<shop_currency_international_name>USD</shop_currency_international_name>
<shop_currency_value_in_basic_currency>23.639664</shop_currency_value_in_basic_currency>
<shop_currency_is_default>0</shop_currency_is_default>
<shop_currency_coefficient>0.042301785676818</shop_currency_coefficient>
</shop_currency>
</all_currency>
<shop_order_status id="0">
</shop_order_status>
<shop_mesures id="29">
<shop_mesures_name>г</shop_mesures_name>
<shop_mesures_description>грамм</shop_mesures_description>
</shop_mesures>
<shop_shops_send_order_mail_admin>1</shop_shops_send_order_mail_admin>
<shop_shops_send_order_mail_user>1</shop_shops_send_order_mail_user>
<shop_shops_admin_mail>smolny@localhost.ru</shop_shops_admin_mail>
<shop_list_of_prices>
<shop_list_of_price id="1" name="Дилер (золотой)">
<percent>65</percent>
</shop_list_of_price>
<shop_list_of_price id="2" name="Дилер (серебряный)">
<percent>80</percent>
</shop_list_of_price>
<shop_list_of_price id="3" name="Дилер (яхонтовый)">
<percent>95</percent>
</shop_list_of_price>
</shop_list_of_prices>
<warehouses>
<warehouse id="1">
<shop_warehouse_name>Основной</shop_warehouse_name>
<shop_warehouse_activity>1</shop_warehouse_activity>
<shop_warehouse_address></shop_warehouse_address>
<shop_warehouse_order>0</shop_warehouse_order>
<shop_warehouse_default>1</shop_warehouse_default>
</warehouse>
</warehouses>
<group id="613" parent="0">
<name>ВЕНТИЛЯЦИЯ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_613</path>
<fullpath>group_613/</fullpath>
<count_items>0</count_items>
<count_groups>5</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>5</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="594" parent="0">
<name>ГЕРМЕТИКИ, КЛЕИ, ПЕНЫ</name>
<description></description>
<image width="120" height="120">/upload/shop_1/5/9/4/group_594/shop_group_image594.gif</image>
<small_image width="100" height="100">/upload/shop_1/5/9/4/group_594/small_shop_group_image594.gif</small_image>
<order>0</order>
<indexation>1</indexation>
<path>group_594</path>
<fullpath>group_594/</fullpath>
<count_items>0</count_items>
<count_groups>3</count_groups>
<count_all_items>32</count_all_items>
<count_all_groups>3</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
<group id="610" parent="594">
<name>Герметики</name>
<description></description>
<image width="120" height="120">/upload/shop_1/6/1/0/group_610/shop_group_image610.gif</image>
<small_image width="100" height="100">/upload/shop_1/6/1/0/group_610/small_shop_group_image610.gif</small_image>
<order>0</order>
<indexation>1</indexation>
<path>group_610</path>
<fullpath>group_594/group_610/</fullpath>
<count_items>11</count_items>
<count_groups>0</count_groups>
<count_all_items>11</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="611" parent="594">
<name>Клеи</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_611</path>
<fullpath>group_594/group_611/</fullpath>
<count_items>11</count_items>
<count_groups>0</count_groups>
<count_all_items>11</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="612" parent="594">
<name>Пены</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_612</path>
<fullpath>group_594/group_612/</fullpath>
<count_items>10</count_items>
<count_groups>0</count_groups>
<count_all_items>10</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
</group>
<group id="595" parent="0">
<name>ДВЕРИ, ФУРНИТУРА</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_595</path>
<fullpath>group_595/</fullpath>
<count_items>0</count_items>
<count_groups>9</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>9</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="596" parent="0">
<name>ДРЕВЕСНО-ПЛИТНЫЕ МАТЕРИАЛЫ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_596</path>
<fullpath>group_596/</fullpath>
<count_items>0</count_items>
<count_groups>4</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>4</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="597" parent="0">
<name>ИНСТРУМЕНТЫ, ОБОРУДОВАНИЕ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_597</path>
<fullpath>group_597/</fullpath>
<count_items>0</count_items>
<count_groups>11</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>11</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="598" parent="0">
<name>КРЕПЕЖ, МЕТИЗЫ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_598</path>
<fullpath>group_598/</fullpath>
<count_items>0</count_items>
<count_groups>4</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>4</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="599" parent="0">
<name>ЛАКОКРАСОЧНЫЕ МАТЕРИАЛЫ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_599</path>
<fullpath>group_599/</fullpath>
<count_items>0</count_items>
<count_groups>10</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>10</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="600" parent="0">
<name>ОБЩЕСТРОИТЕЛЬНЫЕ МАТЕРИАЛЫ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_600</path>
<fullpath>group_600/</fullpath>
<count_items>0</count_items>
<count_groups>5</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>5</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="601" parent="0">
<name>ОТДЕЛОЧНЫЕ МАТЕРИАЛЫ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_601</path>
<fullpath>group_601/</fullpath>
<count_items>0</count_items>
<count_groups>11</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>11</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="602" parent="0">
<name>ПИЛОМАТЕРИАЛЫ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_602</path>
<fullpath>group_602/</fullpath>
<count_items>0</count_items>
<count_groups>0</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="603" parent="0">
<name>САНТЕХНИКА</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_603</path>
<fullpath>group_603/</fullpath>
<count_items>0</count_items>
<count_groups>6</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>6</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="604" parent="0">
<name>СМЕСИ СУХИЕ ВЯЖУЩИЕ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_604</path>
<fullpath>group_604/</fullpath>
<count_items>0</count_items>
<count_groups>6</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>6</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="605" parent="0">
<name>СУХОЕ СТРОИТЕЛЬСТВО</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_605</path>
<fullpath>group_605/</fullpath>
<count_items>0</count_items>
<count_groups>2</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>2</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="606" parent="0">
<name>СЫПУЧИЕ МАТЕРИАЛЫ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_606</path>
<fullpath>group_606/</fullpath>
<count_items>0</count_items>
<count_groups>0</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="607" parent="0">
<name>ТЕПЛОЗВУКОИЗОЛЯЦИЯ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_607</path>
<fullpath>group_607/</fullpath>
<count_items>0</count_items>
<count_groups>0</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="608" parent="0">
<name>ХОЗТОВАРЫ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_608</path>
<fullpath>group_608/</fullpath>
<count_items>0</count_items>
<count_groups>7</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>7</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="609" parent="0">
<name>ЭЛЕКТРОТОВАРЫ, ОСВЕЩЕНИЕ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_609</path>
<fullpath>group_609/</fullpath>
<count_items>0</count_items>
<count_groups>16</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>16</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<sallers>
</sallers>
<producerslist>
<count_items>2</count_items>
<current_page></current_page>
<items_on_page>0</items_on_page>
<producer id="42">
<path>Producer_42</path>
<shop_producers_list_name>ГАРАНТ (мастика клеящая)</shop_producers_list_name>
<shop_producers_list_description></shop_producers_list_description>
<shop_producers_list_image></shop_producers_list_image>
<shop_producers_list_path>Producer_42</shop_producers_list_path>
<shop_producers_list_address></shop_producers_list_address>
<shop_producers_list_phone></shop_producers_list_phone>
<shop_producers_list_fax></shop_producers_list_fax>
<shop_producers_list_site></shop_producers_list_site>
<shop_producers_list_email></shop_producers_list_email>
<shop_producers_list_inn></shop_producers_list_inn>
<shop_producers_list_kpp></shop_producers_list_kpp>
<shop_producers_list_ogrn></shop_producers_list_ogrn>
<shop_producers_list_okpo></shop_producers_list_okpo>
<shop_producers_list_okved></shop_producers_list_okved>
<shop_producers_list_bik></shop_producers_list_bik>
<shop_producers_list_account></shop_producers_list_account>
<shop_producers_list_corr_account></shop_producers_list_corr_account>
<shop_producers_list_bank_name></shop_producers_list_bank_name>
<shop_producers_list_bank_address></shop_producers_list_bank_address>
<shop_producers_list_seo_title></shop_producers_list_seo_title>
<shop_producers_list_seo_description></shop_producers_list_seo_description>
<shop_producers_list_seo_keywords></shop_producers_list_seo_keywords>
</producer>
<producer id="43">
<path>Producer_43</path>
<shop_producers_list_name>ПУФАС (клеи Россия)</shop_producers_list_name>
<shop_producers_list_description></shop_producers_list_description>
<shop_producers_list_image></shop_producers_list_image>
<shop_producers_list_path>Producer_43</shop_producers_list_path>
<shop_producers_list_address></shop_producers_list_address>
<shop_producers_list_phone></shop_producers_list_phone>
<shop_producers_list_fax></shop_producers_list_fax>
<shop_producers_list_site></shop_producers_list_site>
<shop_producers_list_email></shop_producers_list_email>
<shop_producers_list_inn></shop_producers_list_inn>
<shop_producers_list_kpp></shop_producers_list_kpp>
<shop_producers_list_ogrn></shop_producers_list_ogrn>
<shop_producers_list_okpo></shop_producers_list_okpo>
<shop_producers_list_okved></shop_producers_list_okved>
<shop_producers_list_bik></shop_producers_list_bik>
<shop_producers_list_account></shop_producers_list_account>
<shop_producers_list_corr_account></shop_producers_list_corr_account>
<shop_producers_list_bank_name></shop_producers_list_bank_name>
<shop_producers_list_bank_address></shop_producers_list_bank_address>
<shop_producers_list_seo_title></shop_producers_list_seo_title>
<shop_producers_list_seo_description></shop_producers_list_seo_description>
<shop_producers_list_seo_keywords></shop_producers_list_seo_keywords>
</producer>
</producerslist>
<taxes>
<tax id="2">
<tax_name>НДС 18 (входит в цену)</tax_name>
<tax_rate>18</tax_rate>
<tax_is_in_price>1</tax_is_in_price>
</tax>
<tax id="5">
<tax_name>НДС 18 (не входит в цену)</tax_name>
<tax_rate>18</tax_rate>
<tax_is_in_price>0</tax_is_in_price>
</tax>
<tax id="19">
<tax_name>НДС 10 (входит в цену)</tax_name>
<tax_rate>10</tax_rate>
<tax_is_in_price>1</tax_is_in_price>
</tax>
<tax id="20">
<tax_name>НДС 10 (не входит в цену)</tax_name>
<tax_rate>10</tax_rate>
<tax_is_in_price>0</tax_is_in_price>
</tax>
<tax id="21">
<tax_name>НДС (без налога)</tax_name>
<tax_rate>0</tax_rate>
<tax_is_in_price>1</tax_is_in_price>
</tax>
</taxes>
<properties_for_group>
<property id="136" parent_id="0" xml_name="est-sklad">
<name>Есть на складе</name>
<property_name>Есть на складе</property_name>
<shop_list_of_properties_type>7</shop_list_of_properties_type>
<shop_list_of_properties_prefics></shop_list_of_properties_prefics>
<shop_list_of_properties_description></shop_list_of_properties_description>
<property_show_kind>5</property_show_kind>
</property>
<property id="137" parent_id="0" xml_name="search-name">
<name>Наименование товара</name>
<property_name>Наименование товара</property_name>
<shop_list_of_properties_type>0</shop_list_of_properties_type>
<shop_list_of_properties_prefics></shop_list_of_properties_prefics>
<shop_list_of_properties_description></shop_list_of_properties_description>
<property_show_kind>1</property_show_kind>
</property>
</properties_for_group>
<count_items>11</count_items>
<current_page>0</current_page>
<items_on_page>4</items_on_page>
<item id="167" group="610">
<captcha_key>31930</captcha_key>
<name>Герметик (600 мл) DYMONIC NT</name>
<show_count>112</show_count>
<saller>0</saller>
<marking_of_goods>12345</marking_of_goods>
<description></description>
<date>26.06.2012</date>
<datetime>26.06.2012 20:29:35</datetime>
<time>20:29:35</time>
<putoff_date>26.06.2012 20:29:35</putoff_date>
<putend_date>00.00.0000 00:00:00</putend_date>
<producer id="42">
<path>Producer_42</path>
<shop_producers_list_name>ГАРАНТ (мастика клеящая)</shop_producers_list_name>
<shop_producers_list_description></shop_producers_list_description>
<shop_producers_list_image></shop_producers_list_image>
<shop_producers_list_path>Producer_42</shop_producers_list_path>
<shop_producers_list_address></shop_producers_list_address>
<shop_producers_list_phone></shop_producers_list_phone>
<shop_producers_list_fax></shop_producers_list_fax>
<shop_producers_list_site></shop_producers_list_site>
<shop_producers_list_email></shop_producers_list_email>
<shop_producers_list_inn></shop_producers_list_inn>
<shop_producers_list_kpp></shop_producers_list_kpp>
<shop_producers_list_ogrn></shop_producers_list_ogrn>
<shop_producers_list_okpo></shop_producers_list_okpo>
<shop_producers_list_okved></shop_producers_list_okved>
<shop_producers_list_bik></shop_producers_list_bik>
<shop_producers_list_account></shop_producers_list_account>
<shop_producers_list_corr_account></shop_producers_list_corr_account>
<shop_producers_list_bank_name></shop_producers_list_bank_name>
<shop_producers_list_bank_address></shop_producers_list_bank_address>
<shop_producers_list_seo_title></shop_producers_list_seo_title>
<shop_producers_list_seo_description></shop_producers_list_seo_description>
<shop_producers_list_seo_keywords></shop_producers_list_seo_keywords>
</producer>
<image width="250" height="326">/upload/shop_1/1/6/7/item_167/shop_items_catalog_image167.jpg</image>
<small_image width="250" height="326">/upload/shop_1/1/6/7/item_167/small_shop_items_catalog_image167.jpg</small_image>
<type>0</type>
<weight>0</weight>
<weight_mesure>г</weight_mesure>
<rest>1.00</rest>
<mesure>шт</mesure>
<shop_tax_id>0</shop_tax_id>
<price>100.00</price>
<price_tax>100.00</price_tax>
<price_discount>100.00</price_discount>
<item_currency>руб.</item_currency>
<currency>руб.</currency>
<is_active>1</is_active>
<order>0</order>
<path>item_167</path>
<fullpath>group_594/group_610/</fullpath>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<indexation>1</indexation>
<vendorCode></vendorCode>
<shop_items_cml_id>1DCA4C47-1427-E259-ABDF-99AE4AD37652</shop_items_cml_id>
<user_id>0</user_id>
<site_users_id>0</site_users_id>
<property id="136" dir_id="0" xml_name="est-sklad">
<name>Есть на складе</name>
<xml_name>est-sklad</xml_name>
<type>7</type>
<order>0</order>
<prefics></prefics>
<value>1</value>
</property>
<property id="137" dir_id="0" xml_name="search-name">
<name>Наименование товара</name>
<xml_name>search-name</xml_name>
<type>0</type>
<order>0</order>
<prefics></prefics>
<value>Герметик (600 мл) DYMONIC NT</value>
</property>
<shop_special_prices>
</shop_special_prices>
<warehouses>
<warehouse id="1">1.00</warehouse>
</warehouses>
</item>
<item id="168" group="610">
<captcha_key>18896</captcha_key>
<name>Герметик акриловый (280 мл) ZOLDER</name>
<show_count>7</show_count>
<saller>0</saller>
<marking_of_goods></marking_of_goods>
<description></description>
<date>26.06.2012</date>
<datetime>26.06.2012 20:30:08</datetime>
<time>20:30:08</time>
<putoff_date>26.06.2012 20:30:08</putoff_date>
<putend_date>00.00.0000 00:00:00</putend_date>
<producer id="43">
<path>Producer_43</path>
<shop_producers_list_name>ПУФАС (клеи Россия)</shop_producers_list_name>
<shop_producers_list_description></shop_producers_list_description>
<shop_producers_list_image></shop_producers_list_image>
<shop_producers_list_path>Producer_43</shop_producers_list_path>
<shop_producers_list_address></shop_producers_list_address>
<shop_producers_list_phone></shop_producers_list_phone>
<shop_producers_list_fax></shop_producers_list_fax>
<shop_producers_list_site></shop_producers_list_site>
<shop_producers_list_email></shop_producers_list_email>
<shop_producers_list_inn></shop_producers_list_inn>
<shop_producers_list_kpp></shop_producers_list_kpp>
<shop_producers_list_ogrn></shop_producers_list_ogrn>
<shop_producers_list_okpo></shop_producers_list_okpo>
<shop_producers_list_okved></shop_producers_list_okved>
<shop_producers_list_bik></shop_producers_list_bik>
<shop_producers_list_account></shop_producers_list_account>
<shop_producers_list_corr_account></shop_producers_list_corr_account>
<shop_producers_list_bank_name></shop_producers_list_bank_name>
<shop_producers_list_bank_address></shop_producers_list_bank_address>
<shop_producers_list_seo_title></shop_producers_list_seo_title>
<shop_producers_list_seo_description></shop_producers_list_seo_description>
<shop_producers_list_seo_keywords></shop_producers_list_seo_keywords>
</producer>
<type>0</type>
<weight>0</weight>
<weight_mesure>г</weight_mesure>
<rest>0.00</rest>
<mesure>шт</mesure>
<shop_tax_id>0</shop_tax_id>
<price>0.00</price>
<price_tax>0.00</price_tax>
<price_discount>0.00</price_discount>
<item_currency>руб.</item_currency>
<currency>руб.</currency>
<is_active>1</is_active>
<order>0</order>
<path>item_168</path>
<fullpath>group_594/group_610/</fullpath>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<indexation>1</indexation>
<vendorCode></vendorCode>
<shop_items_cml_id>F3C0C9FB-9BB0-8EEE-D4F3-F0FEE438A0A1</shop_items_cml_id>
<user_id>0</user_id>
<site_users_id>0</site_users_id>
<property id="137" dir_id="0" xml_name="search-name">
<name>Наименование товара</name>
<xml_name>search-name</xml_name>
<type>0</type>
<order>0</order>
<prefics></prefics>
<value>Герметик акриловый (280 мл) ZOLDER</value>
</property>
<shop_special_prices>
</shop_special_prices>
<warehouses>
<warehouse id="1">0.00</warehouse>
</warehouses>
</item>
<item id="169" group="610">
<captcha_key>9772</captcha_key>
<name>Герметик акриловый (420 гр) ЭКОН</name>
<show_count>3</show_count>
<saller>0</saller>
<marking_of_goods></marking_of_goods>
<description></description>
<date>26.06.2012</date>
<datetime>26.06.2012 20:30:31</datetime>
<time>20:30:31</time>
<putoff_date>26.06.2012 20:30:31</putoff_date>
<putend_date>00.00.0000 00:00:00</putend_date>
<type>0</type>
<weight>0</weight>
<weight_mesure>г</weight_mesure>
<rest>0.00</rest>
<mesure>шт</mesure>
<shop_tax_id>0</shop_tax_id>
<price>0.00</price>
<price_tax>0.00</price_tax>
<price_discount>0.00</price_discount>
<item_currency>руб.</item_currency>
<currency>руб.</currency>
<is_active>1</is_active>
<order>0</order>
<path>item_169</path>
<fullpath>group_594/group_610/</fullpath>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<indexation>1</indexation>
<vendorCode></vendorCode>
<shop_items_cml_id>6C74BE4D-F05D-1867-5004-65494E9A5BCB</shop_items_cml_id>
<user_id>0</user_id>
<site_users_id>0</site_users_id>
<property id="137" dir_id="0" xml_name="search-name">
<name>Наименование товара</name>
<xml_name>search-name</xml_name>
<type>0</type>
<order>0</order>
<prefics></prefics>
<value>Герметик акриловый (420 гр) ЭКОН</value>
</property>
<shop_special_prices>
</shop_special_prices>
<warehouses>
<warehouse id="1">0.00</warehouse>
</warehouses>
</item>
<item id="170" group="610">
<captcha_key>35242</captcha_key>
<name>Герметик силиконовый белый (260 мл) EUROGERMENT</name>
<show_count>4</show_count>
<saller>0</saller>
<marking_of_goods></marking_of_goods>
<description></description>
<date>26.06.2012</date>
<datetime>26.06.2012 20:30:52</datetime>
<time>20:30:52</time>
<putoff_date>26.06.2012 20:30:52</putoff_date>
<putend_date>00.00.0000 00:00:00</putend_date>
<type>0</type>
<weight>0</weight>
<weight_mesure>г</weight_mesure>
<rest>0.00</rest>
<mesure>шт</mesure>
<shop_tax_id>0</shop_tax_id>
<price>0.00</price>
<price_tax>0.00</price_tax>
<price_discount>0.00</price_discount>
<item_currency>руб.</item_currency>
<currency>руб.</currency>
<is_active>1</is_active>
<order>0</order>
<path>item_170</path>
<fullpath>group_594/group_610/</fullpath>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<indexation>1</indexation>
<vendorCode></vendorCode>
<shop_items_cml_id>00A92BAA-EC33-57D8-2AE1-E2D61F4D538A</shop_items_cml_id>
<user_id>0</user_id>
<site_users_id>0</site_users_id>
<property id="137" dir_id="0" xml_name="search-name">
<name>Наименование товара</name>
<xml_name>search-name</xml_name>
<type>0</type>
<order>0</order>
<prefics></prefics>
<value>Герметик силиконовый белый (260 мл) EUROGERMENT</value>
</property>
<shop_special_prices>
</shop_special_prices>
<warehouses>
<warehouse id="1">0.00</warehouse>
</warehouses>
</item>
</shop>
<shop id="1" current_group_id="610">
<user_id>0</user_id>
<name>Каталог</name>
<description></description>
<path>/catalog/</path>
<site_id>1</site_id>
<shop_image_small_max_width>250</shop_image_small_max_width>
<shop_image_big_max_width>800</shop_image_big_max_width>
<shop_image_small_max_height>0</shop_image_small_max_height>
<shop_image_big_max_height>800</shop_image_big_max_height>
<structure_id>42</structure_id>
<shop_country_id>175</shop_country_id>
<shop_currency id="1">
<shop_currency_name>руб.</shop_currency_name>
<shop_currency_international_name>RUB</shop_currency_international_name>
<shop_currency_value_in_basic_currency>1.000000</shop_currency_value_in_basic_currency>
<shop_currency_is_default>1</shop_currency_is_default>
</shop_currency>
<all_currency>
<shop_currency id="1">
<shop_currency_name>руб.</shop_currency_name>
<shop_currency_international_name>RUB</shop_currency_international_name>
<shop_currency_value_in_basic_currency>1.000000</shop_currency_value_in_basic_currency>
<shop_currency_is_default>1</shop_currency_is_default>
<shop_currency_coefficient>1</shop_currency_coefficient>
</shop_currency>
<shop_currency id="2">
<shop_currency_name>&euro;</shop_currency_name>
<shop_currency_international_name>EUR</shop_currency_international_name>
<shop_currency_value_in_basic_currency>36.889479</shop_currency_value_in_basic_currency>
<shop_currency_is_default>0</shop_currency_is_default>
<shop_currency_coefficient>0.027108000088589</shop_currency_coefficient>
</shop_currency>
<shop_currency id="3">
<shop_currency_name>$</shop_currency_name>
<shop_currency_international_name>USD</shop_currency_international_name>
<shop_currency_value_in_basic_currency>23.639664</shop_currency_value_in_basic_currency>
<shop_currency_is_default>0</shop_currency_is_default>
<shop_currency_coefficient>0.042301785676818</shop_currency_coefficient>
</shop_currency>
</all_currency>
<shop_order_status id="0">
</shop_order_status>
<shop_mesures id="29">
<shop_mesures_name>г</shop_mesures_name>
<shop_mesures_description>грамм</shop_mesures_description>
</shop_mesures>
<shop_shops_send_order_mail_admin>1</shop_shops_send_order_mail_admin>
<shop_shops_send_order_mail_user>1</shop_shops_send_order_mail_user>
<shop_shops_admin_mail>smolny@localhost.ru</shop_shops_admin_mail>
<shop_list_of_prices>
<shop_list_of_price id="1" name="Дилер (золотой)">
<percent>65</percent>
</shop_list_of_price>
<shop_list_of_price id="2" name="Дилер (серебряный)">
<percent>80</percent>
</shop_list_of_price>
<shop_list_of_price id="3" name="Дилер (яхонтовый)">
<percent>95</percent>
</shop_list_of_price>
</shop_list_of_prices>
<warehouses>
<warehouse id="1">
<shop_warehouse_name>Основной</shop_warehouse_name>
<shop_warehouse_activity>1</shop_warehouse_activity>
<shop_warehouse_address></shop_warehouse_address>
<shop_warehouse_order>0</shop_warehouse_order>
<shop_warehouse_default>1</shop_warehouse_default>
</warehouse>
</warehouses>
<group id="613" parent="0">
<name>ВЕНТИЛЯЦИЯ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_613</path>
<fullpath>group_613/</fullpath>
<count_items>0</count_items>
<count_groups>5</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>5</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="594" parent="0">
<name>ГЕРМЕТИКИ, КЛЕИ, ПЕНЫ</name>
<description></description>
<image width="120" height="120">/upload/shop_1/5/9/4/group_594/shop_group_image594.gif</image>
<small_image width="100" height="100">/upload/shop_1/5/9/4/group_594/small_shop_group_image594.gif</small_image>
<order>0</order>
<indexation>1</indexation>
<path>group_594</path>
<fullpath>group_594/</fullpath>
<count_items>0</count_items>
<count_groups>3</count_groups>
<count_all_items>32</count_all_items>
<count_all_groups>3</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
<group id="610" parent="594">
<name>Герметики</name>
<description></description>
<image width="120" height="120">/upload/shop_1/6/1/0/group_610/shop_group_image610.gif</image>
<small_image width="100" height="100">/upload/shop_1/6/1/0/group_610/small_shop_group_image610.gif</small_image>
<order>0</order>
<indexation>1</indexation>
<path>group_610</path>
<fullpath>group_594/group_610/</fullpath>
<count_items>11</count_items>
<count_groups>0</count_groups>
<count_all_items>11</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="611" parent="594">
<name>Клеи</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_611</path>
<fullpath>group_594/group_611/</fullpath>
<count_items>11</count_items>
<count_groups>0</count_groups>
<count_all_items>11</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="612" parent="594">
<name>Пены</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_612</path>
<fullpath>group_594/group_612/</fullpath>
<count_items>10</count_items>
<count_groups>0</count_groups>
<count_all_items>10</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
</group>
<group id="595" parent="0">
<name>ДВЕРИ, ФУРНИТУРА</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_595</path>
<fullpath>group_595/</fullpath>
<count_items>0</count_items>
<count_groups>9</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>9</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="596" parent="0">
<name>ДРЕВЕСНО-ПЛИТНЫЕ МАТЕРИАЛЫ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_596</path>
<fullpath>group_596/</fullpath>
<count_items>0</count_items>
<count_groups>4</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>4</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="597" parent="0">
<name>ИНСТРУМЕНТЫ, ОБОРУДОВАНИЕ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_597</path>
<fullpath>group_597/</fullpath>
<count_items>0</count_items>
<count_groups>11</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>11</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="598" parent="0">
<name>КРЕПЕЖ, МЕТИЗЫ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_598</path>
<fullpath>group_598/</fullpath>
<count_items>0</count_items>
<count_groups>4</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>4</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="599" parent="0">
<name>ЛАКОКРАСОЧНЫЕ МАТЕРИАЛЫ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_599</path>
<fullpath>group_599/</fullpath>
<count_items>0</count_items>
<count_groups>10</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>10</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="600" parent="0">
<name>ОБЩЕСТРОИТЕЛЬНЫЕ МАТЕРИАЛЫ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_600</path>
<fullpath>group_600/</fullpath>
<count_items>0</count_items>
<count_groups>5</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>5</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="601" parent="0">
<name>ОТДЕЛОЧНЫЕ МАТЕРИАЛЫ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_601</path>
<fullpath>group_601/</fullpath>
<count_items>0</count_items>
<count_groups>11</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>11</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="602" parent="0">
<name>ПИЛОМАТЕРИАЛЫ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_602</path>
<fullpath>group_602/</fullpath>
<count_items>0</count_items>
<count_groups>0</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="603" parent="0">
<name>САНТЕХНИКА</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_603</path>
<fullpath>group_603/</fullpath>
<count_items>0</count_items>
<count_groups>6</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>6</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="604" parent="0">
<name>СМЕСИ СУХИЕ ВЯЖУЩИЕ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_604</path>
<fullpath>group_604/</fullpath>
<count_items>0</count_items>
<count_groups>6</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>6</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="605" parent="0">
<name>СУХОЕ СТРОИТЕЛЬСТВО</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_605</path>
<fullpath>group_605/</fullpath>
<count_items>0</count_items>
<count_groups>2</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>2</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="606" parent="0">
<name>СЫПУЧИЕ МАТЕРИАЛЫ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_606</path>
<fullpath>group_606/</fullpath>
<count_items>0</count_items>
<count_groups>0</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="607" parent="0">
<name>ТЕПЛОЗВУКОИЗОЛЯЦИЯ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_607</path>
<fullpath>group_607/</fullpath>
<count_items>0</count_items>
<count_groups>0</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>0</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="608" parent="0">
<name>ХОЗТОВАРЫ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_608</path>
<fullpath>group_608/</fullpath>
<count_items>0</count_items>
<count_groups>7</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>7</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<group id="609" parent="0">
<name>ЭЛЕКТРОТОВАРЫ, ОСВЕЩЕНИЕ</name>
<description></description>
<order>0</order>
<indexation>1</indexation>
<path>group_609</path>
<fullpath>group_609/</fullpath>
<count_items>0</count_items>
<count_groups>16</count_groups>
<count_all_items>0</count_all_items>
<count_all_groups>16</count_all_groups>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<propertys>
</propertys>
</group>
<sallers>
</sallers>
<producerslist>
<count_items>2</count_items>
<current_page></current_page>
<items_on_page>0</items_on_page>
<producer id="42">
<path>Producer_42</path>
<shop_producers_list_name>ГАРАНТ (мастика клеящая)</shop_producers_list_name>
<shop_producers_list_description></shop_producers_list_description>
<shop_producers_list_image></shop_producers_list_image>
<shop_producers_list_path>Producer_42</shop_producers_list_path>
<shop_producers_list_address></shop_producers_list_address>
<shop_producers_list_phone></shop_producers_list_phone>
<shop_producers_list_fax></shop_producers_list_fax>
<shop_producers_list_site></shop_producers_list_site>
<shop_producers_list_email></shop_producers_list_email>
<shop_producers_list_inn></shop_producers_list_inn>
<shop_producers_list_kpp></shop_producers_list_kpp>
<shop_producers_list_ogrn></shop_producers_list_ogrn>
<shop_producers_list_okpo></shop_producers_list_okpo>
<shop_producers_list_okved></shop_producers_list_okved>
<shop_producers_list_bik></shop_producers_list_bik>
<shop_producers_list_account></shop_producers_list_account>
<shop_producers_list_corr_account></shop_producers_list_corr_account>
<shop_producers_list_bank_name></shop_producers_list_bank_name>
<shop_producers_list_bank_address></shop_producers_list_bank_address>
<shop_producers_list_seo_title></shop_producers_list_seo_title>
<shop_producers_list_seo_description></shop_producers_list_seo_description>
<shop_producers_list_seo_keywords></shop_producers_list_seo_keywords>
</producer>
<producer id="43">
<path>Producer_43</path>
<shop_producers_list_name>ПУФАС (клеи Россия)</shop_producers_list_name>
<shop_producers_list_description></shop_producers_list_description>
<shop_producers_list_image></shop_producers_list_image>
<shop_producers_list_path>Producer_43</shop_producers_list_path>
<shop_producers_list_address></shop_producers_list_address>
<shop_producers_list_phone></shop_producers_list_phone>
<shop_producers_list_fax></shop_producers_list_fax>
<shop_producers_list_site></shop_producers_list_site>
<shop_producers_list_email></shop_producers_list_email>
<shop_producers_list_inn></shop_producers_list_inn>
<shop_producers_list_kpp></shop_producers_list_kpp>
<shop_producers_list_ogrn></shop_producers_list_ogrn>
<shop_producers_list_okpo></shop_producers_list_okpo>
<shop_producers_list_okved></shop_producers_list_okved>
<shop_producers_list_bik></shop_producers_list_bik>
<shop_producers_list_account></shop_producers_list_account>
<shop_producers_list_corr_account></shop_producers_list_corr_account>
<shop_producers_list_bank_name></shop_producers_list_bank_name>
<shop_producers_list_bank_address></shop_producers_list_bank_address>
<shop_producers_list_seo_title></shop_producers_list_seo_title>
<shop_producers_list_seo_description></shop_producers_list_seo_description>
<shop_producers_list_seo_keywords></shop_producers_list_seo_keywords>
</producer>
</producerslist>
<taxes>
<tax id="2">
<tax_name>НДС 18 (входит в цену)</tax_name>
<tax_rate>18</tax_rate>
<tax_is_in_price>1</tax_is_in_price>
</tax>
<tax id="5">
<tax_name>НДС 18 (не входит в цену)</tax_name>
<tax_rate>18</tax_rate>
<tax_is_in_price>0</tax_is_in_price>
</tax>
<tax id="19">
<tax_name>НДС 10 (входит в цену)</tax_name>
<tax_rate>10</tax_rate>
<tax_is_in_price>1</tax_is_in_price>
</tax>
<tax id="20">
<tax_name>НДС 10 (не входит в цену)</tax_name>
<tax_rate>10</tax_rate>
<tax_is_in_price>0</tax_is_in_price>
</tax>
<tax id="21">
<tax_name>НДС (без налога)</tax_name>
<tax_rate>0</tax_rate>
<tax_is_in_price>1</tax_is_in_price>
</tax>
</taxes>
<properties_for_group>
<property id="136" parent_id="0" xml_name="est-sklad">
<name>Есть на складе</name>
<property_name>Есть на складе</property_name>
<shop_list_of_properties_type>7</shop_list_of_properties_type>
<shop_list_of_properties_prefics></shop_list_of_properties_prefics>
<shop_list_of_properties_description></shop_list_of_properties_description>
<property_show_kind>5</property_show_kind>
</property>
<property id="137" parent_id="0" xml_name="search-name">
<name>Наименование товара</name>
<property_name>Наименование товара</property_name>
<shop_list_of_properties_type>0</shop_list_of_properties_type>
<shop_list_of_properties_prefics></shop_list_of_properties_prefics>
<shop_list_of_properties_description></shop_list_of_properties_description>
<property_show_kind>1</property_show_kind>
</property>
</properties_for_group>
<count_items>11</count_items>
<current_page>0</current_page>
<items_on_page>4</items_on_page>
<item id="167" group="610">
<captcha_key>31930</captcha_key>
<name>Герметик (600 мл) DYMONIC NT</name>
<show_count>112</show_count>
<saller>0</saller>
<marking_of_goods>12345</marking_of_goods>
<description></description>
<date>26.06.2012</date>
<datetime>26.06.2012 20:29:35</datetime>
<time>20:29:35</time>
<putoff_date>26.06.2012 20:29:35</putoff_date>
<putend_date>00.00.0000 00:00:00</putend_date>
<producer id="42">
<path>Producer_42</path>
<shop_producers_list_name>ГАРАНТ (мастика клеящая)</shop_producers_list_name>
<shop_producers_list_description></shop_producers_list_description>
<shop_producers_list_image></shop_producers_list_image>
<shop_producers_list_path>Producer_42</shop_producers_list_path>
<shop_producers_list_address></shop_producers_list_address>
<shop_producers_list_phone></shop_producers_list_phone>
<shop_producers_list_fax></shop_producers_list_fax>
<shop_producers_list_site></shop_producers_list_site>
<shop_producers_list_email></shop_producers_list_email>
<shop_producers_list_inn></shop_producers_list_inn>
<shop_producers_list_kpp></shop_producers_list_kpp>
<shop_producers_list_ogrn></shop_producers_list_ogrn>
<shop_producers_list_okpo></shop_producers_list_okpo>
<shop_producers_list_okved></shop_producers_list_okved>
<shop_producers_list_bik></shop_producers_list_bik>
<shop_producers_list_account></shop_producers_list_account>
<shop_producers_list_corr_account></shop_producers_list_corr_account>
<shop_producers_list_bank_name></shop_producers_list_bank_name>
<shop_producers_list_bank_address></shop_producers_list_bank_address>
<shop_producers_list_seo_title></shop_producers_list_seo_title>
<shop_producers_list_seo_description></shop_producers_list_seo_description>
<shop_producers_list_seo_keywords></shop_producers_list_seo_keywords>
</producer>
<image width="250" height="326">/upload/shop_1/1/6/7/item_167/shop_items_catalog_image167.jpg</image>
<small_image width="250" height="326">/upload/shop_1/1/6/7/item_167/small_shop_items_catalog_image167.jpg</small_image>
<type>0</type>
<weight>0</weight>
<weight_mesure>г</weight_mesure>
<rest>1.00</rest>
<mesure>шт</mesure>
<shop_tax_id>0</shop_tax_id>
<price>100.00</price>
<price_tax>100.00</price_tax>
<price_discount>100.00</price_discount>
<item_currency>руб.</item_currency>
<currency>руб.</currency>
<is_active>1</is_active>
<order>0</order>
<path>item_167</path>
<fullpath>group_594/group_610/</fullpath>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<indexation>1</indexation>
<vendorCode></vendorCode>
<shop_items_cml_id>1DCA4C47-1427-E259-ABDF-99AE4AD37652</shop_items_cml_id>
<user_id>0</user_id>
<site_users_id>0</site_users_id>
<property id="136" dir_id="0" xml_name="est-sklad">
<name>Есть на складе</name>
<xml_name>est-sklad</xml_name>
<type>7</type>
<order>0</order>
<prefics></prefics>
<value>1</value>
</property>
<property id="137" dir_id="0" xml_name="search-name">
<name>Наименование товара</name>
<xml_name>search-name</xml_name>
<type>0</type>
<order>0</order>
<prefics></prefics>
<value>Герметик (600 мл) DYMONIC NT</value>
</property>
<shop_special_prices>
</shop_special_prices>
<warehouses>
<warehouse id="1">1.00</warehouse>
</warehouses>
</item>
<item id="168" group="610">
<captcha_key>18896</captcha_key>
<name>Герметик акриловый (280 мл) ZOLDER</name>
<show_count>7</show_count>
<saller>0</saller>
<marking_of_goods></marking_of_goods>
<description></description>
<date>26.06.2012</date>
<datetime>26.06.2012 20:30:08</datetime>
<time>20:30:08</time>
<putoff_date>26.06.2012 20:30:08</putoff_date>
<putend_date>00.00.0000 00:00:00</putend_date>
<producer id="43">
<path>Producer_43</path>
<shop_producers_list_name>ПУФАС (клеи Россия)</shop_producers_list_name>
<shop_producers_list_description></shop_producers_list_description>
<shop_producers_list_image></shop_producers_list_image>
<shop_producers_list_path>Producer_43</shop_producers_list_path>
<shop_producers_list_address></shop_producers_list_address>
<shop_producers_list_phone></shop_producers_list_phone>
<shop_producers_list_fax></shop_producers_list_fax>
<shop_producers_list_site></shop_producers_list_site>
<shop_producers_list_email></shop_producers_list_email>
<shop_producers_list_inn></shop_producers_list_inn>
<shop_producers_list_kpp></shop_producers_list_kpp>
<shop_producers_list_ogrn></shop_producers_list_ogrn>
<shop_producers_list_okpo></shop_producers_list_okpo>
<shop_producers_list_okved></shop_producers_list_okved>
<shop_producers_list_bik></shop_producers_list_bik>
<shop_producers_list_account></shop_producers_list_account>
<shop_producers_list_corr_account></shop_producers_list_corr_account>
<shop_producers_list_bank_name></shop_producers_list_bank_name>
<shop_producers_list_bank_address></shop_producers_list_bank_address>
<shop_producers_list_seo_title></shop_producers_list_seo_title>
<shop_producers_list_seo_description></shop_producers_list_seo_description>
<shop_producers_list_seo_keywords></shop_producers_list_seo_keywords>
</producer>
<type>0</type>
<weight>0</weight>
<weight_mesure>г</weight_mesure>
<rest>0.00</rest>
<mesure>шт</mesure>
<shop_tax_id>0</shop_tax_id>
<price>0.00</price>
<price_tax>0.00</price_tax>
<price_discount>0.00</price_discount>
<item_currency>руб.</item_currency>
<currency>руб.</currency>
<is_active>1</is_active>
<order>0</order>
<path>item_168</path>
<fullpath>group_594/group_610/</fullpath>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<indexation>1</indexation>
<vendorCode></vendorCode>
<shop_items_cml_id>F3C0C9FB-9BB0-8EEE-D4F3-F0FEE438A0A1</shop_items_cml_id>
<user_id>0</user_id>
<site_users_id>0</site_users_id>
<property id="137" dir_id="0" xml_name="search-name">
<name>Наименование товара</name>
<xml_name>search-name</xml_name>
<type>0</type>
<order>0</order>
<prefics></prefics>
<value>Герметик акриловый (280 мл) ZOLDER</value>
</property>
<shop_special_prices>
</shop_special_prices>
<warehouses>
<warehouse id="1">0.00</warehouse>
</warehouses>
</item>
<item id="169" group="610">
<captcha_key>9772</captcha_key>
<name>Герметик акриловый (420 гр) ЭКОН</name>
<show_count>3</show_count>
<saller>0</saller>
<marking_of_goods></marking_of_goods>
<description></description>
<date>26.06.2012</date>
<datetime>26.06.2012 20:30:31</datetime>
<time>20:30:31</time>
<putoff_date>26.06.2012 20:30:31</putoff_date>
<putend_date>00.00.0000 00:00:00</putend_date>
<type>0</type>
<weight>0</weight>
<weight_mesure>г</weight_mesure>
<rest>0.00</rest>
<mesure>шт</mesure>
<shop_tax_id>0</shop_tax_id>
<price>0.00</price>
<price_tax>0.00</price_tax>
<price_discount>0.00</price_discount>
<item_currency>руб.</item_currency>
<currency>руб.</currency>
<is_active>1</is_active>
<order>0</order>
<path>item_169</path>
<fullpath>group_594/group_610/</fullpath>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<indexation>1</indexation>
<vendorCode></vendorCode>
<shop_items_cml_id>6C74BE4D-F05D-1867-5004-65494E9A5BCB</shop_items_cml_id>
<user_id>0</user_id>
<site_users_id>0</site_users_id>
<property id="137" dir_id="0" xml_name="search-name">
<name>Наименование товара</name>
<xml_name>search-name</xml_name>
<type>0</type>
<order>0</order>
<prefics></prefics>
<value>Герметик акриловый (420 гр) ЭКОН</value>
</property>
<shop_special_prices>
</shop_special_prices>
<warehouses>
<warehouse id="1">0.00</warehouse>
</warehouses>
</item>
<item id="170" group="610">
<captcha_key>35242</captcha_key>
<name>Герметик силиконовый белый (260 мл) EUROGERMENT</name>
<show_count>4</show_count>
<saller>0</saller>
<marking_of_goods></marking_of_goods>
<description></description>
<date>26.06.2012</date>
<datetime>26.06.2012 20:30:52</datetime>
<time>20:30:52</time>
<putoff_date>26.06.2012 20:30:52</putoff_date>
<putend_date>00.00.0000 00:00:00</putend_date>
<type>0</type>
<weight>0</weight>
<weight_mesure>г</weight_mesure>
<rest>0.00</rest>
<mesure>шт</mesure>
<shop_tax_id>0</shop_tax_id>
<price>0.00</price>
<price_tax>0.00</price_tax>
<price_discount>0.00</price_discount>
<item_currency>руб.</item_currency>
<currency>руб.</currency>
<is_active>1</is_active>
<order>0</order>
<path>item_170</path>
<fullpath>group_594/group_610/</fullpath>
<seo_title></seo_title>
<seo_description></seo_description>
<seo_keywords></seo_keywords>
<indexation>1</indexation>
<vendorCode></vendorCode>
<shop_items_cml_id>00A92BAA-EC33-57D8-2AE1-E2D61F4D538A</shop_items_cml_id>
<user_id>0</user_id>
<site_users_id>0</site_users_id>
<property id="137" dir_id="0" xml_name="search-name">
<name>Наименование товара</name>
<xml_name>search-name</xml_name>
<type>0</type>
<order>0</order>
<prefics></prefics>
<value>Герметик силиконовый белый (260 мл) EUROGERMENT</value>
</property>
<shop_special_prices>
</shop_special_prices>
<warehouses>
<warehouse id="1">0.00</warehouse>
</warehouses>
</item>
</shop>
1. вы находитесь в оси /shop и там не нужно выводить картинку, убираете код
2. Вместо этого в условии, когда показывается не корневая группа
<xsl:if test="../small_image!=''">
<a href="../{/shop/path}{fullpath}">
<img src="{../small_image}" style="border: 1px solid #DADADA"/>
</a>
</xsl:if>
<a href="../{/shop/path}{fullpath}">
<img src="{../small_image}" style="border: 1px solid #DADADA"/>
</a>
</xsl:if>
2. Вместо этого в условии, когда показывается не корневая группа
<table width="100%" >
<tr>
<td>
<xsl:if test="$parent_group_id != 0">
<a href="{/shop/path}{.//group[@id=$parent_group_id]/fullpath}">
<img src="{.//group[@id=$parent_group_id]/small_image}" style="border: 1px solid #DADADA"/>
</a>
<h1>
<xsl:value-of disable-output-escaping="yes" select=".//group[@id=$parent_group_id]/name"/>
</h1>
</xsl:if>
</td>
<td align="right"> <div style="float:right;"><a href="/price.xls"><img src="/images/exel.gif" style="margin-right:10px;" border="0" /></a> <img src="/images/print.gif" border="0" /></div></td>
</tr>
</table>
<tr>
<td>
<xsl:if test="$parent_group_id != 0">
<a href="{/shop/path}{.//group[@id=$parent_group_id]/fullpath}">
<img src="{.//group[@id=$parent_group_id]/small_image}" style="border: 1px solid #DADADA"/>
</a>
<h1>
<xsl:value-of disable-output-escaping="yes" select=".//group[@id=$parent_group_id]/name"/>
</h1>
</xsl:if>
</td>
<td align="right"> <div style="float:right;"><a href="/price.xls"><img src="/images/exel.gif" style="margin-right:10px;" border="0" /></a> <img src="/images/print.gif" border="0" /></div></td>
</tr>
</table>
разработка сайтов, фирменных стилей, интерфейсов
А если сделать так чтобы выводилось в подгруппе подгруппы?
Т.е. Есть главная группа Герметики, клеи, пены.
подгруппы
Герметики
Клеи
Пены
И чтобы заходя в какую-нить группы из эти 3-х в них была картинка основной группы Герметики, клеи, пены ?
Т.е. Есть главная группа Герметики, клеи, пены.
подгруппы
Герметики
Клеи
Пены
И чтобы заходя в какую-нить группы из эти 3-х в них была картинка основной группы Герметики, клеи, пены ?
<xsl:variable name="current_parent_group_id" select=".//group[@id=$parent_group_id]/@parent_id"/>
<a href="{/shop/path}{.//group[@id=$current_parent_group_id]/fullpath}">
<img src="{.//group[@id=$parent_group_id]/small_image}" style="border: 1px solid #DADADA"/>
</a>
<a href="{/shop/path}{.//group[@id=$current_parent_group_id]/fullpath}">
<img src="{.//group[@id=$parent_group_id]/small_image}" style="border: 1px solid #DADADA"/>
</a>
разработка сайтов, фирменных стилей, интерфейсов
пардон
<xsl:variable name="current_parent_group_id" select=".//group[@id=$parent_group_id]/@parent_id"/>
<a href="{/shop/path}{.//group[@id=$current_parent_group_id]/fullpath}">
<img src="{.//group[@id=$current_parent_group_id]/small_image}" style="border: 1px solid #DADADA"/>
</a>
<a href="{/shop/path}{.//group[@id=$current_parent_group_id]/fullpath}">
<img src="{.//group[@id=$current_parent_group_id]/small_image}" style="border: 1px solid #DADADA"/>
</a>
разработка сайтов, фирменных стилей, интерфейсов
по месту нужно смотреть, удаленно плохо выходит )
разработка сайтов, фирменных стилей, интерфейсов
Авторизация