Вывод в галерее доп. свойств типа файл?

#
Вывод в галерее доп. свойств типа файл?
Доброго времени суток,
в галерее есть группа, в каждой группе определенная картинки, каждая картинка - это фотография конкретного обьекта, при нажатии открывается страница со свойствами и комментариями. Как туда поместить еще ряд фотографий этого же объекта, чтобы все выглядело как в объявлениях - при нажатии на миниатюру подгружается большая. Пробовал скопировать код из шаблона с объявлениями - ничего не выводится. Можно конечно сделать все это дело и на базе ИС с объявлениями, но хочется именно с галереей разобраться, поскольку на нее есть планы.
#
Re: Вывод в галерее доп. свойств типа файл?
А про дополнительные свойства читали?
Добавте дополнительные свойства и все.
#
Re: Вывод в галерее доп. свойств типа файл?
Да все добавлено, загружено но не отображается!!! уже все варианты перепробовал, ни в какую не хочет.
Модератор
#
Re: Вывод в галерее доп. свойств типа файл?
Qualis писал(а):
Можно конечно сделать все это дело и на базе ИС с объявлениями, но хочется именно с галереей разобраться, поскольку на нее есть планы.

А в чем разница ИС с объявлениями и фотогалереи? И то и другое информационная система.

Qualis,
Покажите как Вы выводите дополнительные св-ва. Проверьте, правильно ли Вы выводите доп. св-ва (см. руководство по интеграции).
#
Re: Вывод в галерее доп. свойств типа файл?
            
<!-- Выводим список дополнительных свойств типа "Файл" -->
<xsl:if test="count(//property[type=1]) &gt; 0">
<xsl:apply-templates select="//property[type=1]" mode="foto"/>
</xsl:if>


<!-- Шаблон вывода дополнительных свойств являющихся файлами -->
<xsl:template match="property" mode="foto">
<td valign="top">
<img src="{small_image/file_path}" alt="{name}" title="{name}" style="cursor: pointer; border: 1px solid #000000; margin: 0px 5px 5px 0px" onclick="ShowImgDiv('{file_path}')"/>
</td>
<xsl:if test="position() mod 3 =0">
<xsl:text disable-output-escaping="yes">
   lt;/tr&gt;
   &lt;tr&gt;
</xsl:text>
</xsl:if>
</xsl:template>


ребят может я чего не так делаю, уже голова совсем не работает, все руководство пересмотрел вдоль и поперек но ничего нужного для меня найти не могу. (((
Модератор
#
Re: Вывод в галерее доп. свойств типа файл?
Qualis,
Покажите целиком XML и XSL
#
Re: Вывод в галерее доп. свойств типа файл?
Ну точняк неверно.

Значение поля:
<xsl:value-of select="property[@name = 'FIELD_NAME']/value"/>

Для большой картинки:
<xsl:value-of select="property[@name = 'FIELD_NAME']/property_file_path"/>

Для малой картинки:
<xsl:value-of select="property[@name = 'FIELD_NAME']/small_image/property_file_path"/>

Вместо FIELD_NAME необходимо указать имя поля.
#
Re: Вывод в галерее доп. свойств типа файл?

<?xml version="1.0" encoding="windows-1251"?>
<!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="Windows-1251" indent="yes" method="html" omit-xml-declaration="no" version="1.0" media-type="text/xml"/>
   
   <xsl:template match="/">
      <xsl:apply-templates select="/document/item"/>
   </xsl:template>
   
   <xsl:template match="/document/item">
      
      <SCRIPT>
         <xsl:comment>
            <xsl:text disable-output-escaping="yes">
               <![CDATA[
               function ShowImgWindow(title, src, width, height)
               {
               obj = window.open("", "", "scrollbars=0,dialog=0,minimizable=1,modal=1,width="+width+",height="+height+",resizable=0");
               obj.document.write("<html>");
                  obj.document.write("<head>");
                     
                  obj.document.write("<title>"+title+"</title>");
                     
                  obj.document.write("</head>");
                  
                  obj.document.write("<body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>");
                     
                     obj.document.write("<img src=\""+src+"\" />");
                     
                  obj.document.write("</body>");
               obj.document.write("</html>");
               }
               ]]>
            </xsl:text>
         </xsl:comment>
      </SCRIPT>
      
      <!-- Получаем ID родительской группы и записываем в переменную $parent_group_id -->
      <xsl:variable name="parent_group_id" select="/document/information_system/parent_group_id"/>
      
      <!-- Путь к гурппе -->
      <xsl:apply-templates select="//group[@id=$parent_group_id]" mode="goup_path"/>
      
      <h1>
         <xsl:value-of disable-output-escaping="yes" select="item_name"/>&#xa0;
         <!-- <b>Расширенное название</b> -->
         <xsl:value-of disable-output-escaping="yes"
      select="item_propertys/item_property[@xml_name='ext']/value"/>
      </h1>
      
      <table width="100%" border="1">
         <tr>
            <td valign="top">

      <!-- Проверяем задан ли путь к файлу большого изображения -->
      <xsl:if test="item_image!=''">
         <p>
            <img src="{item_image}" style="margin-right: 10px; margin-bottom: 10px; border: 1px solid #c6bea7; padding: 1px;"/>
         </p>
      </xsl:if>



            </td>
            <td>

      <!-- ДОПОЛНИТЕЛЬНЫЕ СВОЙСТВА -->

      <b>Происхождение:</b>&#xa0;
      <xsl:value-of disable-output-escaping="yes"
      select="item_propertys/item_property[@xml_name='origin']/value"/>
      <br />

      <b>Сорт:</b>&#xa0;
      <xsl:value-of disable-output-escaping="yes"
      select="item_propertys/item_property[@xml_name='sort']/value"/>
      <br />

      <b>Цвет:</b>&#xa0;
      <xsl:value-of disable-output-escaping="yes"
      select="item_propertys/item_property[@xml_name='color']/value"/>
      <br />

      <b>Цветок:</b>&#xa0;
      <xsl:value-of disable-output-escaping="yes"
      select="item_propertys/item_property[@xml_name='flower']/value"/>
      <br />

      <b>Цветение:</b>&#xa0;
      <xsl:value-of disable-output-escaping="yes"
      select="item_propertys/item_property[@xml_name='flowering']/value"/>
      <br />

      <b>Запах:</b>&#xa0;
      <xsl:value-of disable-output-escaping="yes"
      select="item_propertys/item_property[@xml_name='smell']/value"/>
      <br />

      <b>Куст:</b>&#xa0;
      <xsl:value-of disable-output-escaping="yes"
      select="item_propertys/item_property[@xml_name='bush']/value"/>
      <br />

      <b>Листва:</b>&#xa0;
      <xsl:value-of disable-output-escaping="yes"
      select="item_propertys/item_property[@xml_name='foliage']/value"/>
      <br />

      <b>Устойчивость:</b>&#xa0;
      <xsl:value-of disable-output-escaping="yes"
      select="item_propertys/item_property[@xml_name='stability']/value"/>
      <br />

      <b>Черная пятнистость:</b>&#xa0;
      <xsl:value-of disable-output-escaping="yes"
      select="item_propertys/item_property[@xml_name='stainless']/value"/>
      <br />

      <b>Мучнистая роса:</b>&#xa0;
      <xsl:value-of disable-output-escaping="yes"
      select="item_propertys/item_property[@xml_name='dew']/value"/>

      <!-- / ДОПОЛНИТЕЛЬНЫЕ СВОЙСТВА -->


            </td>
         </tr>
         <tr>
            <td colspan="2">

            <b><!-- мой тест -->



<a href="{item_propertys/item_property[@xml_name='foto1']/property_file_path}" target="_blank">
<BR />
<img src="{item_propertys/item_property[@xml_name = 'foto1']/small_image/property_file_path}" alt="" style="border: 1px solid #DADADA; margin: 0px 5px 5px 0px" />
</a>
            <!-- мой тест --> </b>

            <xsl:if test="small_image != '' ">
               <!-- <td valign="top"> -->
                  <img src="{small_image}" alt="Основное" title="Основное" style="cursor: pointer; border: 1px solid #000000; margin: 0px 5px 5px 0px" onclick="ShowImgDiv('{image}')"/>
               <!-- </td> -->
            </xsl:if>
            <!-- Выводим список дополнительных свойств типа "Файл" -->
            <xsl:if test="count(//property[type=1]) &gt; 0">
               <xsl:apply-templates select="//property[type=1]" mode="foto"/>
            </xsl:if>
            </td>
         </tr>
      </table>

      <!-- Текст информационного элемента -->
      <p>
         <xsl:value-of disable-output-escaping="yes" select="item_text"/>
      </p>
      
      <!-- Средняя оценка элемента -->
      <xsl:if test="item_comments/average_grade/node() and item_comments/average_grade != 0">
         <div style="float: left; margin: 0px 0px 0px 0px">
            Оценка:
            <!-- Вызываем шаблон оценки -->
            <xsl:call-template name="show_average_grade">
               <xsl:with-param name="grade" select="item_comments/average_grade"/>
               <xsl:with-param name="const_grade" select="5"/>
            </xsl:call-template>
         </div>
         <div style="clear: both"></div>
      </xsl:if>
      
      <!-- Тэги для информационного элемента -->
      <xsl:if test="count(tags/tag) &gt; 0">
         <p>
            <img src="/hostcmsfiles/images/tags.gif" align="left" style="margin: 0px 5px -2px 0px"/>
            <xsl:apply-templates select="tags/tag"/>
         </p>
      </xsl:if>
      
      <!-- Дата информационного элемента -->
      <p class="date"><!-- <xsl:value-of select="item_date"/>,  --><xsl:value-of select="item_show_count"/>&#160;<xsl:call-template name="declension">
            <xsl:with-param name="number" select="item_show_count"/>
      </xsl:call-template>.</p>

      <!-- Ссылка 1-2-3 на части документа -->
      <xsl:if test="part/@count &gt; 1">
         <div class="read_more">Читать дальше:</div>
         
         <xsl:call-template name="for">
            <xsl:with-param name="items_on_page">1</xsl:with-param>
            <xsl:with-param name="current_page" select="part"/>
            <xsl:with-param name="link" select="/document/item/item_path"/>
            <xsl:with-param name="count_items" select="part/@count"/>
            <xsl:with-param name="visible_pages">6</xsl:with-param>
            <xsl:with-param name="prefix">part</xsl:with-param>
         </xsl:call-template>
         
         <div style="clear: both"></div>
      </xsl:if>
      
      <!-- Если указано отображать комментарии -->
      <xsl:if test="/document/show_comments/node() and /document/show_comments = 0">
         
         <!-- Отображение комментариев  -->
         <xsl:if test="count(item_comments/comment) &gt; 0">
            <p class="title">
            <a name="comments"></a>Комментарии</p>
            <xsl:apply-templates select="item_comments/comment"/>
         </xsl:if>
      </xsl:if>
      
      <!-- Если разрешено отображать формы добавления комментария
      1 - Только авторизированным
      2 - Всем -->
      <xsl:if test="/document/show_add_comments/node()  and ((/document/show_add_comments = 1 and /document/site_user_id &gt; 0)  or /document/show_add_comments = 2)">
         
         <div id="ShowAddComment">
            <a href="javascript:void(0)" onclick="javascript:cr('AddComment')">Добавить комментарий</a>
         </div>
         
         <div id="AddComment" style="display: none">
            <xsl:call-template name="AddCommentForm"></xsl:call-template>
         </div>
      </xsl:if>
   </xsl:template>

   <!-- Шаблон вывода дополнительных свойств являющихся файлами -->
   <xsl:template match="property" mode="foto">
      <td valign="top">
         <img src="{small_image/file_path}" alt="{name}" title="{name}" style="cursor: pointer; border: 1px solid #000000; margin: 0px 5px 5px 0px" onclick="ShowImgDiv('{file_path}')"/>
      </td>
      <xsl:if test="position() mod 3 =0">
         <xsl:text disable-output-escaping="yes">
         &lt;/tr&gt;
         &lt;tr&gt;
      </xsl:text>
      </xsl:if>
   </xsl:template>

   <!-- /// Метки для информационного элемента /// -->
   <xsl:template match="tags/tag">
      <a href="{/document/information_system/url}tag/{tag_path_name}/" class="tag">
         <xsl:value-of select="tag_name"/>
      </a>
      <xsl:if test="position() != last()">,</xsl:if>&#xA0;
   </xsl:template>
   
   <!-- Шаблон для вывода звездочек (оценки) -->
   <xsl:template name="for_star">
      <xsl:param name="i" select="0"/>
      <xsl:param name="n"/>
      
      <input type="radio" name="comment_grade" value="{$i}" id="id_comment_grade_{$i}"/>&#xA0;
      <label for="id_icomment_grade_{$i}">
         <xsl:call-template name="show_average_grade">
            <xsl:with-param name="grade" select="$i"/>
            <xsl:with-param name="const_grade" select="5"/>
         </xsl:call-template>
      </label>
      
      <br/>
      
      <xsl:if test="$n &gt; $i and $n &gt; 1">
         <xsl:call-template name="for_star">
            <xsl:with-param name="i" select="$i + 1"/>
            <xsl:with-param name="n" select="$n"/>
         </xsl:call-template>
      </xsl:if>
   </xsl:template>
   
   
   <!-- Вывод рейтинга -->
   <xsl:template name="show_average_grade">
      <xsl:param name="grade" select="0"/>
      <xsl:param name="const_grade" select="0"/>
      
      <!-- Чтобы избежать зацикливания -->
      <xsl:variable name="current_grade" select="$grade * 1"/>
      
      <xsl:choose>
         <!-- Если число целое -->
         <xsl:when test="floor($current_grade) = $current_grade and not($const_grade &gt; ceiling($current_grade))">
            
            <xsl:if test="$current_grade - 1 &gt; 0">
               <xsl:call-template name="show_average_grade">
                  <xsl:with-param name="grade" select="$current_grade - 1"/>
                  <xsl:with-param name="const_grade" select="$const_grade - 1"/>
               </xsl:call-template>
            </xsl:if>
            
            <xsl:if test="$current_grade != 0">
               <img src="/hostcmsfiles/images/stars_single.gif"/>
            </xsl:if>
         </xsl:when>
         <xsl:when test="$current_grade != 0 and not($const_grade &gt; ceiling($current_grade))">
            
            <xsl:if test="$current_grade - 0.5 &gt; 0">
               <xsl:call-template name="show_average_grade">
                  <xsl:with-param name="grade" select="$current_grade - 0.5"/>
                  <xsl:with-param name="const_grade" select="$const_grade - 1"/>
               </xsl:call-template>
            </xsl:if>
            
            <img src="/hostcmsfiles/images/stars_half.gif"/>
         </xsl:when>
         
         <!-- Выводим серые звездочки, пока текущая позиция не дойдет то значения, увеличенного до целого -->
         <xsl:otherwise>
            <xsl:call-template name="show_average_grade">
               <xsl:with-param name="grade" select="$current_grade"/>
               <xsl:with-param name="const_grade" select="$const_grade - 1"/>
            </xsl:call-template>
            <img src="/hostcmsfiles/images/stars_gray.gif"/>
         </xsl:otherwise>
      </xsl:choose>
   </xsl:template>
   
   <xsl:template match="group" mode="goup_path">
      <xsl:variable name="parent_id" select="@parent_id"/>
      
      <!-- Выбираем рекурсивно вышестоящую группу -->
      <xsl:apply-templates select="//group[@id=$parent_id]" mode="goup_path"/>
      
      <xsl:if test="@parent_id=0">
         <a href="{/document/information_system/url}">
            <xsl:value-of disable-output-escaping="yes" select="/document/information_system/name"/>
         </a>
      </xsl:if>
      
      <span class="path_arrow">&#x2192;</span>
      
      <a href="{/document/information_system/url}{fullpath}">
         <xsl:value-of select="name"/>
      </a>
   </xsl:template>
   
   <!-- Отображение комментариев -->
   <xsl:template match="comment">
      
      <!-- Отображаем комментарий, если задан текст или тема комментария -->
      <xsl:if test="comment_text != '' or comment_subject != ''">
         <a name="comment{comment_id}"></a>
         <div class="comment" id="comment{comment_id}">
            <div class="tl"></div>
            <div class="tr"></div>
            <div class="bl"></div>
            <div class="br"></div>
            
            <xsl:if test="comment_subject != ''">
               <div>
                  <strong>
                     <xsl:value-of select="comment_subject"/>
                  </strong>
               </div>
            </xsl:if>
            
            <xsl:value-of select="comment_text" disable-output-escaping="yes"/>
            
            <!-- Оценка комментария -->
            <xsl:if test="comment_grade != 0">
               <div>Оценка:
                  <xsl:call-template name="show_average_grade">
                     <xsl:with-param name="grade" select="comment_grade"/>
                     <xsl:with-param name="const_grade" select="5"/>
                  </xsl:call-template>
               </div>
            </xsl:if>
         </div>
         
         <div class="comment_desc">
            <xsl:choose>
               <!-- Комментарий добавил авторизированный пользователь -->
               <xsl:when test="site_user_login/node()">
                  <a href="/users/info/{site_user_login}/" class="c_u_l">
                     <xsl:value-of select="site_user_login"/>
                  </a>&#xA0;·&#xA0;<xsl:value-of select="comment_datetime"/>
               </xsl:when>
               <!-- Комментарй добавил неавторизированный пользователь -->
               <xsl:otherwise>
                  <xsl:value-of select="comment_fio"/>&#xA0;·&#xA0;<xsl:value-of select="comment_date"/></xsl:otherwise>
            </xsl:choose>&#xA0;·&#xA0;<xsl:if
               test="/document/show_add_comments/node()
               and ((/document/show_add_comments = 1 and /document/site_user_id > 0)
      or /document/show_add_comments = 2)"><a href="javascript:cr('cr_{comment_id}');">ответить</a>&#xA0;·&#xA0;</xsl:if><a href="{/document/item/item_path}#comment{comment_id}" title="ссылка">#</a>
            
         </div>
         
         <!-- Отображаем только авторизированным пользователям -->
         <xsl:if test="/document/show_add_comments/node() and ((/document/show_add_comments = 1 and /document/site_user_id > 0) or /document/show_add_comments = 2)">
            <div class="cr" id="cr_{comment_id}">
               
               <xsl:call-template name="AddCommentForm">
                  <xsl:with-param name="comment_id" select="comment_id"/>
               </xsl:call-template>
            </div>
         </xsl:if>
         
         <!-- Выбираем дочерние комментарии -->
         <xsl:if test="count(comment) > 0">
            <div class="csd">
               <xsl:apply-templates select="comment"/>
            </div>
         </xsl:if>
      </xsl:if>
   </xsl:template>
   
   <!-- Шаблон вывода добавления комментария -->
   <xsl:template name="AddCommentForm">
      <xsl:param name="comment_id" select="0"/>
      
      <!--Отображение формы добавления комментария-->
      <form action="{/document/url}" method="post">
         <!-- Авторизированным не показываем -->
         <xsl:if test="/document/site_user_id = 0">
            
            <p>
               Имя
               <br/>
               <input type="text" size="70" name="comment_autor" value=""/>
            </p>
            
            <p>
               E-mail
               <br/>
               <input type="text" size="70" name="comment_email" value=""/>
            </p>
            
            <p>
               Тема
               <br/>
               <input type="text" size="70" name="comment_subject" value=""/>
            </p>
         </xsl:if>
         
         <p>
            Комментарий
            <br/>
            <textarea name="comment_text" cols="68" rows="5" class="mceEditor"></textarea>
         </p>
         
         <p>
            <!-- Оценка материала
            <br/>
            <xsl:call-template name="for_star">
               <xsl:with-param name="n" select="5"/>
            </xsl:call-template> -->
         </p>
         
         <!-- Обработка CAPTCHA -->
         <xsl:if test="//captcha_key != 0 and /document/site_user_id = 0">
            <p>
               Код подтверждения
               <br/>
               <div style="float: left">
                  <img style="border: 1px solid #777777" src="/captcha.php?get_captcha={//captcha_key}&amp;height=28" title="Код подтверждения"/>
               </div>
               
               <div style="float: left; margin-left: 10px; margin-top: 5px">
                  <input type="hidden" name="captcha_key" value="{//captcha_key}"/>
                  <input type="text" name="captcha_keystring" size="15"/>
               </div>
               
               <div style="clear: both"></div>
            </p>
         </xsl:if>
         
         <xsl:if test="$comment_id != 0">
            <input type="hidden" name="comment_parent_id" value="{comment_id}"/>
         </xsl:if>
         
         <p>
            <input type="submit" name="add_comment" value="Опубликовать"/>
         </p>
      </form>
   </xsl:template>
   
   <!-- Цикл для вывода строк ссылок -->
   <xsl:template name="for">
      <xsl:param name="i" select="0"/>
      <xsl:param name="prefix">page</xsl:param>
      <xsl:param name="link"/>
      <xsl:param name="items_on_page"/>
      <xsl:param name="current_page"/>
      <xsl:param name="count_items"/>
      <xsl:param name="visible_pages"/>
      
      <xsl:variable name="n" select="$count_items div $items_on_page"/>
      
      <!-- Заносим в переменную $parent_group_id идентификатор текущей группы -->
      <xsl:variable name="parent_group_id" select="/document/blocks/parent_group_id"/>
      
      
      <!-- Считаем количество выводимых ссылок перед текущим элементом -->
      <xsl:variable name="pre_count_page">
         <xsl:choose>
            <xsl:when test="$current_page &gt; ($n - (round($visible_pages div 2) - 1))">
               <xsl:value-of select="$visible_pages - ($n - $current_page)"/>
            </xsl:when>
            <xsl:otherwise>
               <xsl:value-of select="round($visible_pages div 2) - 1"/>
            </xsl:otherwise>
         </xsl:choose>
      </xsl:variable>
      
      <!-- Считаем количество выводимых ссылок после текущего элемента -->
      <xsl:variable name="post_count_page">
         <xsl:choose>
            <xsl:when test="0 &gt; $current_page - (round($visible_pages div 2) - 1)">
               <xsl:value-of select="$visible_pages - $current_page - 1"/>
            </xsl:when>
            <xsl:otherwise>
               <xsl:choose>
                  <xsl:when test="round($visible_pages div 2) = ($visible_pages div 2)">
                     <xsl:value-of select="$visible_pages div 2"/>
                  </xsl:when>
                  <xsl:otherwise>
                     <xsl:value-of select="round($visible_pages div 2) - 1"/>
                  </xsl:otherwise>
               </xsl:choose>
            </xsl:otherwise>
         </xsl:choose>
      </xsl:variable>
      
      <xsl:if test="$count_items &gt; $items_on_page and $n &gt; $i">
         <!-- Ставим ссылку на страницу-->
         <xsl:if test="$i != $current_page">
            <!-- Определяем адрес тэга -->
            <xsl:variable name="tag_link">
               <xsl:choose>
                  <!-- Если не нулевой уровень -->
                  <xsl:when test="count(/document/blocks/selected_tags/tag) != 0">tag/<xsl:value-of select="/document/blocks/selected_tags/tag/tag_path_name"/>/</xsl:when>
                  <!-- Иначе если нулевой уровень - просто ссылка на страницу со списком элементов -->
                  <xsl:otherwise></xsl:otherwise>
               </xsl:choose>
            </xsl:variable>
            
            <!-- Определяем адрес ссылки -->
            <xsl:variable name="number_link">
               <xsl:choose>
                  <!-- Если не нулевой уровень -->
                  <xsl:when test="$i != 0">
                     <xsl:value-of select="$prefix"/>-<xsl:value-of select="$i + 1"/>/</xsl:when>
                  <!-- Иначе если нулевой уровень - просто ссылка на страницу со списком элементов -->
                  <xsl:otherwise></xsl:otherwise>
               </xsl:choose>
            </xsl:variable>
            
            <!-- Выводим ссылку на первую страницу -->
            <xsl:if test="$current_page - $pre_count_page &gt; 0 and $i = 0">
               <a href="{$link}" class="page_link" style="text-decoration: none;">&#x2190;</a>
            </xsl:if>
            
            <xsl:choose>
               <xsl:when test="$i &gt;= ($current_page - $pre_count_page) and ($current_page + $post_count_page) &gt;= $i">
                  
                  <!-- Выводим ссылки на видимые страницы -->
                  <a href="{$link}{$tag_link}{$number_link}" class="page_link">
                     <xsl:value-of select="$i + 1"/>
                  </a>
               </xsl:when>
               <xsl:otherwise></xsl:otherwise>
            </xsl:choose>
            
            <!-- Выводим ссылку на последнюю страницу -->
            <xsl:if test="$i+1 &gt;= $n and $n &gt; ($current_page + 1 + $post_count_page)">
               <xsl:choose>
                  <xsl:when test="$n &gt; round($n)">
                     <!-- Выводим ссылку на последнюю страницу -->
                     <a href="{$link}{$prefix}-{round($n+1)}/" class="page_link" style="text-decoration: none;">&#x2192;</a>
                  </xsl:when>
                  <xsl:otherwise>
                     <a href="{$link}{$prefix}-{round($n)}/" class="page_link" style="text-decoration: none;">&#x2192;</a>
                  </xsl:otherwise>
               </xsl:choose>
            </xsl:if>
         </xsl:if>
         
         <!-- Не ставим ссылку на страницу-->
         <xsl:if test="$i = $current_page">
            <span class="current">
               <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="prefix" select="$prefix"/>
            <xsl:with-param name="link" select="$link"/>
            <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="visible_pages" select="$visible_pages"/>
         </xsl:call-template>
      </xsl:if>
   </xsl:template>
   
   <!-- Склонение после числительных -->
   <xsl:template name="declension">
      
      <xsl:param name="number" select="number"/>
      
      <!-- Именительный падеж -->
      <xsl:variable name="nominative">
         <xsl:text>просмотр</xsl:text>
      </xsl:variable>
      
      <!-- Родительный падеж, единственное число -->
      <xsl:variable name="genitive_singular">
         <xsl:text>просмотра</xsl:text>
      </xsl:variable>
      
      
      <xsl:variable name="genitive_plural">
         <xsl:text>просмотров</xsl:text>
      </xsl:variable>
      
      <xsl:variable name="last_digit">
         <xsl:value-of select="$number mod 10"/>
      </xsl:variable>
      
      <xsl:variable name="last_two_digits">
         <xsl:value-of select="$number mod 100"/>
      </xsl:variable>
      
      <xsl:choose>
         <xsl:when test="$last_digit = 1 and $last_two_digits != 11">
            <xsl:value-of select="$nominative"/>
         </xsl:when>
         <xsl:when test="$last_digit = 2 and $last_two_digits != 12
            or $last_digit = 3 and $last_two_digits != 13
            or $last_digit = 4 and $last_two_digits != 14">
            <xsl:value-of select="$genitive_singular"/>
         </xsl:when>
         <xsl:otherwise>
            <xsl:value-of select="$genitive_plural"/>
         </xsl:otherwise>
      </xsl:choose>
   </xsl:template>
</xsl:stylesheet>

<?xml version="1.0" encoding="windows-1251"?>
<document>
<site_user_id>0</site_user_id>
<ОтображатьСсылкуНаАрхив>0</ОтображатьСсылкуНаАрхив>
<ОтображатьСсылкиНаСледующиеСтраницы>1</ОтображатьСсылкиНаСледующиеСтраницы>
<show_comments>0</show_comments>
<show_add_comments>2</show_add_comments>
<information_system id="15">
<name>Фотогалерея Розоводика</name>
<url>/</url>
<description></description>
<captcha_used>1</captcha_used>
<captcha_key>33651</captcha_key>
<parent_group_id>15</parent_group_id>
</information_system>
<group id="9" parent_id="0">
<site_user>0</site_user>
<name>Розы</name>
<description>&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;Розы&amp;nbsp;&amp;mdash; моя&amp;nbsp;самая большая любовь&amp;hellip;&amp;nbsp;&lt;br /&gt;Вырастить розу не&amp;nbsp;так&amp;nbsp;трудно. Трудно остановиться, когда понимаешь, что&amp;nbsp;десятью-двадцатью кустами не&amp;nbsp;обойдется&amp;hellip;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Первая из&amp;nbsp;фотографий каждого сорта открывается с&amp;nbsp;описанием,&amp;nbsp;либо взятым с&amp;nbsp;сайтов крупнейших производителей,&amp;nbsp;либо собранным&lt;span style=&quot;margin-right: 0.3em&quot;&gt; &lt;/span&gt; &lt;span style=&quot;margin-left: -0.3em&quot;&gt;&amp;laquo;с&lt;/span&gt; миру по&amp;nbsp;нитке&amp;raquo;, но&amp;nbsp;&amp;mdash; из&amp;nbsp;заслуживающих уважения &lt;a href=&quot;/istochniki/&quot;&gt;источников&lt;/a&gt;. Вторая&amp;nbsp;&amp;mdash; с&amp;nbsp;моими наблюдениями. Но, многие из&amp;nbsp;этих роз&amp;nbsp;посажены не&amp;nbsp;так&amp;nbsp;давно, поэтому свое мнение высказывать еще&amp;nbsp;рано. Поэтому, расскажу только о&amp;nbsp;тех&amp;nbsp;розах, которые растут у&amp;nbsp;меня более двух лет.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Намеренно не&amp;nbsp;упоминаю о&amp;nbsp;зимостойкости. Почти всем моим розам не&amp;nbsp;пришлось пережить суровой бесснежной зимы. Я&amp;nbsp;смогу сообщить об&amp;nbsp;этом их&amp;nbsp;свойстве лет&amp;nbsp;через несколько. А, может, и&amp;nbsp;вообще не&amp;nbsp;буду над&amp;nbsp;этим задумываться. Похоже, климат, действительно, теплеет.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Дополнительную информацию о&amp;nbsp;сортах на&amp;nbsp;русском языке можно найти по&amp;nbsp;ссылке на&lt;span style=&quot;margin-right: 0.3em&quot;&gt; &lt;/span&gt; &lt;span style=&quot;margin-left: -0.3em&quot;&gt;&amp;laquo;rosebook&lt;/span&gt;&amp;raquo; внизу страницы.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</description>
<order>0</order>
<path>roses_a</path>
<fullpath>roses_a/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>0</count_items>
<count_all_items>1</count_all_items>
<count_groups>22</count_groups>
<count_all_groups>22</count_all_groups>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
<group id="15" parent_id="9">
<site_user>0</site_user>
<name>A</name>
<description></description>
<order>0</order>
<path>a</path>
<fullpath>roses_a/a/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>1</count_items>
<count_all_items>1</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<big_image  width="400" height="400">/upload/information_groups_1229869130.jpg</big_image>
<small_image width="150" height="150">/upload/small_information_groups_1229869130.jpg</small_image>
<allow_indexation>1</allow_indexation>
<propertys>
<property type="WYSIWYG" xml_name="links" id="7" parent_id="0" value_id="34">
<name>Ссылки</name>
<value></value>
<default_value></default_value>
<order>0</order>
</property>
<property type="File" xml_name="groupphoto" id="8" parent_id="0" value_id="35" >
<name>Дополнительное фото группы</name>
<value>nostalgie3.jpg</value>
<default_value></default_value>
<order>0</order>
<value>nostalgie3.jpg</value>
<property_file_path width="400"  height="400" size="42240">/upload/private/information_groups_property_35.jpg</property_file_path>
<small_image>
<value>nostalgie3.jpg</value>
<property_file_path width="150"  height="150" size="4282">/upload/private/small_information_groups_property_35.jpg</property_file_path>
</small_image>
</property>
</propertys>
</group>
<group id="16" parent_id="9">
<site_user>0</site_user>
<name>B</name>
<description></description>
<order>0</order>
<path>b</path>
<fullpath>roses_a/b/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>0</count_items>
<count_all_items>0</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<big_image  width="400" height="400">/upload/information_groups_1229869300.jpg</big_image>
<small_image width="150" height="150">/upload/small_information_groups_1229869336.jpg</small_image>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
<group id="17" parent_id="9">
<site_user>0</site_user>
<name>C</name>
<description></description>
<order>0</order>
<path>c</path>
<fullpath>roses_a/c/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>0</count_items>
<count_all_items>0</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<big_image  width="400" height="400">/upload/information_groups_1229869361.jpg</big_image>
<small_image width="150" height="150">/upload/small_information_groups_1229869361.jpg</small_image>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
<group id="18" parent_id="9">
<site_user>0</site_user>
<name>D</name>
<description></description>
<order>0</order>
<path>d</path>
<fullpath>roses_a/d/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>0</count_items>
<count_all_items>0</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<big_image  width="400" height="400">/upload/information_groups_1229869412.jpg</big_image>
<small_image width="150" height="150">/upload/small_information_groups_1229869412.jpg</small_image>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
<group id="19" parent_id="9">
<site_user>0</site_user>
<name>E</name>
<description></description>
<order>0</order>
<path>e</path>
<fullpath>roses_a/e/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>0</count_items>
<count_all_items>0</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<big_image  width="400" height="400">/upload/information_groups_1229869424.jpg</big_image>
<small_image width="150" height="150">/upload/small_information_groups_1229869424.jpg</small_image>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
<group id="20" parent_id="9">
<site_user>0</site_user>
<name>F</name>
<description></description>
<order>0</order>
<path>f</path>
<fullpath>roses_a/f/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>0</count_items>
<count_all_items>0</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<big_image  width="400" height="400">/upload/information_groups_1229869438.jpg</big_image>
<small_image width="150" height="150">/upload/small_information_groups_1229869438.jpg</small_image>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
<group id="21" parent_id="9">
<site_user>0</site_user>
<name>G</name>
<description></description>
<order>0</order>
<path>g</path>
<fullpath>roses_a/g/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>0</count_items>
<count_all_items>0</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<big_image  width="400" height="400">/upload/information_groups_1229870102.jpg</big_image>
<small_image width="150" height="150">/upload/small_information_groups_1229870102.jpg</small_image>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
<group id="22" parent_id="9">
<site_user>0</site_user>
<name>H</name>
<description></description>
<order>0</order>
<path>h</path>
<fullpath>roses_a/h/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>0</count_items>
<count_all_items>0</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<big_image  width="400" height="400">/upload/information_groups_1229870113.jpg</big_image>
<small_image width="150" height="150">/upload/small_information_groups_1229870113.jpg</small_image>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
<group id="23" parent_id="9">
<site_user>0</site_user>
<name>I</name>
<description></description>
<order>0</order>
<path>i</path>
<fullpath>roses_a/i/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>0</count_items>
<count_all_items>0</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<big_image  width="400" height="400">/upload/information_groups_1229870131.jpg</big_image>
<small_image width="150" height="150">/upload/small_information_groups_1229870131.jpg</small_image>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
<group id="24" parent_id="9">
<site_user>0</site_user>
<name>J</name>
<description></description>
<order>0</order>
<path>j</path>
<fullpath>roses_a/j/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>0</count_items>
<count_all_items>0</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<big_image  width="400" height="400">/upload/information_groups_1229870140.jpg</big_image>
<small_image width="150" height="150">/upload/small_information_groups_1229870140.jpg</small_image>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
<group id="25" parent_id="9">
<site_user>0</site_user>
<name>K</name>
<description></description>
<order>0</order>
<path>k</path>
<fullpath>roses_a/k/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>0</count_items>
<count_all_items>0</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<big_image  width="400" height="400">/upload/information_groups_1229870149.jpg</big_image>
<small_image width="150" height="150">/upload/small_information_groups_1229870149.jpg</small_image>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
<group id="26" parent_id="9">
<site_user>0</site_user>
<name>L</name>
<description></description>
<order>0</order>
<path>l</path>
<fullpath>roses_a/l/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>0</count_items>
<count_all_items>0</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<big_image  width="400" height="400">/upload/information_groups_1229870159.jpg</big_image>
<small_image width="150" height="150">/upload/small_information_groups_1229870159.jpg</small_image>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
<group id="27" parent_id="9">
<site_user>0</site_user>
<name>M</name>
<description></description>
<order>0</order>
<path>m</path>
<fullpath>roses_a/m/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>0</count_items>
<count_all_items>0</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<big_image  width="400" height="400">/upload/information_groups_1229870167.jpg</big_image>
<small_image width="150" height="150">/upload/small_information_groups_1229870167.jpg</small_image>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
<group id="28" parent_id="9">
<site_user>0</site_user>
<name>N</name>
<description></description>
<order>0</order>
<path>n</path>
<fullpath>roses_a/n/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>0</count_items>
<count_all_items>0</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<big_image  width="400" height="400">/upload/information_groups_1229870176.jpg</big_image>
<small_image width="150" height="150">/upload/small_information_groups_1229870176.jpg</small_image>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
<group id="29" parent_id="9">
<site_user>0</site_user>
<name>P</name>
<description></description>
<order>0</order>
<path>p</path>
<fullpath>roses_a/p/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>0</count_items>
<count_all_items>0</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<big_image  width="400" height="400">/upload/information_groups_1229870186.jpg</big_image>
<small_image width="150" height="150">/upload/small_information_groups_1229870186.jpg</small_image>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
<group id="30" parent_id="9">
<site_user>0</site_user>
<name>Q</name>
<description></description>
<order>0</order>
<path>q</path>
<fullpath>roses_a/q/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>0</count_items>
<count_all_items>0</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<big_image  width="90" height="90">/upload/information_groups_1229870196.jpg</big_image>
<small_image width="150" height="150">/upload/small_information_groups_1229870464.jpg</small_image>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
<group id="31" parent_id="9">
<site_user>0</site_user>
<name>R</name>
<description></description>
<order>0</order>
<path>r</path>
<fullpath>roses_a/r/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>0</count_items>
<count_all_items>0</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<big_image  width="400" height="400">/upload/information_groups_1229870204.jpg</big_image>
<small_image width="150" height="150">/upload/small_information_groups_1229870204.jpg</small_image>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
<group id="32" parent_id="9">
<site_user>0</site_user>
<name>S</name>
<description></description>
<order>0</order>
<path>s</path>
<fullpath>roses_a/s/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>0</count_items>
<count_all_items>0</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<big_image  width="400" height="400">/upload/information_groups_1229870212.jpg</big_image>
<small_image width="150" height="150">/upload/small_information_groups_1229870212.jpg</small_image>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
<group id="33" parent_id="9">
<site_user>0</site_user>
<name>T</name>
<description></description>
<order>0</order>
<path>t</path>
<fullpath>roses_a/t/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>0</count_items>
<count_all_items>0</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<big_image  width="400" height="399">/upload/information_groups_1229870219.jpg</big_image>
<small_image width="150" height="149">/upload/small_information_groups_1229870219.jpg</small_image>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
<group id="34" parent_id="9">
<site_user>0</site_user>
<name>U</name>
<description></description>
<order>0</order>
<path>u</path>
<fullpath>roses_a/u/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>0</count_items>
<count_all_items>0</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<big_image  width="398" height="400">/upload/information_groups_1229870226.jpg</big_image>
<small_image width="149" height="150">/upload/small_information_groups_1229870226.jpg</small_image>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
<group id="35" parent_id="9">
<site_user>0</site_user>
<name>V</name>
<description></description>
<order>0</order>
<path>v</path>
<fullpath>roses_a/v/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>0</count_items>
<count_all_items>0</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<big_image  width="400" height="400">/upload/information_groups_1229870237.jpg</big_image>
<small_image width="150" height="150">/upload/small_information_groups_1229870237.jpg</small_image>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
<group id="36" parent_id="9">
<site_user>0</site_user>
<name>W</name>
<description></description>
<order>0</order>
<path>w</path>
<fullpath>roses_a/w/</fullpath>
<access>-1</access>
<activity>1</activity>
<count_items>0</count_items>
<count_all_items>0</count_all_items>
<count_groups>0</count_groups>
<count_all_groups>0</count_all_groups>
<big_image  width="90" height="90">/upload/information_groups_1229870244.jpg</big_image>
<small_image width="150" height="150">/upload/small_information_groups_1229870483.jpg</small_image>
<allow_indexation>1</allow_indexation>
<propertys>
</propertys>
</group>
</group>
<item id="64" group_id="15">
<item_date>21.12.2008</item_date>
<item_datetime>21.12.2008 13:16:29</item_datetime>
<item_time>13:16:29</item_time>
<item_putoff_date>21.12.2008 13:16:29</item_putoff_date>
<item_putend_date>00.00.0000 00:00:00</item_putend_date>
<item_name>Aachener Dom</item_name>
<item_description></item_description>
<part count="1">0</part>
<item_text></item_text>
<item_image width="400" height="400">/upload/information_items_1229854684.jpg</item_image>
<item_small_image width="90" height="90">/upload/small_information_items_1229854684.jpg</item_small_image>
<item_status>1</item_status>
<item_seo_title></item_seo_title>
<item_seo_description></item_seo_description>
<item_seo_keywords></item_seo_keywords>
<item_access>-1</item_access>
<item_path>/roses_a/a/1/</item_path>
<item_path_field>1</item_path_field>
<item_show_count>108</item_show_count>
<item_blog_accessibility>0</item_blog_accessibility>
<item_blog_show_comments_mode>0</item_blog_show_comments_mode>
<item_blog_add_comments_mode>0</item_blog_add_comments_mode>
<item_propertys>
<item_property type="File" xml_name="foto2" parent_id="0" id="30">
<property_id>126</property_id>
<property_xml_name>foto2</property_xml_name>
<property_name>Дополнительное фото2</property_name>
<foto2>uncle_walter1.jpg</foto2>
<property_order>0</property_order>
<value>uncle_walter1.jpg</value>
<property_file_path width="398"  height="400" size="44356">/upload/private/information_items_property_126.jpg</property_file_path>
<small_image>
<value>uncle_walter1.jpg</value>
<property_file_path width="149"  height="150" size="5756">/upload/private/small_information_items_property_126.jpg</property_file_path>
</small_image>
</item_property>
<item_property type="File" xml_name="foto1" parent_id="0" id="29">
<property_id>125</property_id>
<property_xml_name>foto1</property_xml_name>
<property_name>Дополнительное фото</property_name>
<foto1>aachener_dom2.jpg</foto1>
<property_order>0</property_order>
<value>aachener_dom2.jpg</value>
<property_file_path width="400"  height="400" size="55222">/upload/private/information_items_property_125.jpg</property_file_path>
<small_image>
<value>aachener_dom2.jpg</value>
<property_file_path width="150"  height="150" size="4521">/upload/private/small_information_items_property_125.jpg</property_file_path>
</small_image>
</item_property>
<item_property type="String" xml_name="ext" parent_id="0" id="28">
<property_id>102</property_id>
<property_xml_name>ext</property_xml_name>
<property_name>Доп. название (если есть)</property_name>
<property_order>1</property_order>
<ext>(Pink Panther, Panthere Rose)</ext>
<value>(Pink Panther, Panthere Rose)</value>
</item_property>
<item_property type="String" xml_name="origin" parent_id="0" id="17">
<property_id>101</property_id>
<property_xml_name>origin</property_xml_name>
<property_name>Происхождение</property_name>
<property_order>2</property_order>
<origin>Meilland, France, 1982</origin>
<value>Meilland, France, 1982</value>
</item_property>
<item_property type="String" xml_name="sort" parent_id="0" id="18">
<property_id>103</property_id>
<property_xml_name>sort</property_xml_name>
<property_name>Сорт</property_name>
<property_order>3</property_order>
<sort>Чайно-гибридная</sort>
<value>Чайно-гибридная</value>
</item_property>
<item_property type="String" xml_name="color" parent_id="0" id="19">
<property_id>104</property_id>
<property_xml_name>color</property_xml_name>
<property_name>Цвет</property_name>
<property_order>4</property_order>
<color>розовый, мерцающий</color>
<value>розовый, мерцающий</value>
</item_property>
<item_property type="String" xml_name="flower" parent_id="0" id="20">
<property_id>105</property_id>
<property_xml_name>flower</property_xml_name>
<property_name>Цветок</property_name>
<property_order>5</property_order>
<flower>махровый, крупный, 10-12 см</flower>
<value>махровый, крупный, 10-12 см</value>
</item_property>
<item_property type="String" xml_name="flowering" parent_id="0" id="21">
<property_id>106</property_id>
<property_xml_name>flowering</property_xml_name>
<property_name>Цветение</property_name>
<property_order>6</property_order>
<flowering>повторное</flowering>
<value>повторное</value>
</item_property>
<item_property type="String" xml_name="smell" parent_id="0" id="22">
<property_id>107</property_id>
<property_xml_name>smell</property_xml_name>
<property_name>Запах</property_name>
<property_order>7</property_order>
<smell>почти нет</smell>
<value>почти нет</value>
</item_property>
<item_property type="String" xml_name="bush" parent_id="0" id="23">
<property_id>108</property_id>
<property_xml_name>bush</property_xml_name>
<property_name>Куст</property_name>
<property_order>8</property_order>
<bush>80 см, побеги прямые, хорошо подходит для срезки</bush>
<value>80 см, побеги прямые, хорошо подходит для срезки</value>
</item_property>
<item_property type="String" xml_name="foliage" parent_id="0" id="24">
<property_id>109</property_id>
<property_xml_name>foliage</property_xml_name>
<property_name>Листва</property_name>
<property_order>9</property_order>
<foliage>темно-зеленая</foliage>
<value>темно-зеленая</value>
</item_property>
<item_property type="String" xml_name="stability" parent_id="0" id="25">
<property_id>110</property_id>
<property_xml_name>stability</property_xml_name>
<property_name>Устойчивость</property_name>
<property_order>10</property_order>
<stability></stability>
<value></value>
</item_property>
<item_property type="String" xml_name="stainless" parent_id="0" id="26">
<property_id>111</property_id>
<property_xml_name>stainless</property_xml_name>
<property_name>Черная пятнистость</property_name>
<property_order>11</property_order>
<stainless>х х</stainless>
<value>х х</value>
</item_property>
<item_property type="String" xml_name="dew" parent_id="0" id="27">
<property_id>112</property_id>
<property_xml_name>dew</property_xml_name>
<property_name>Мучнистая роса</property_name>
<property_order>12</property_order>
<dew>х х</dew>
<value>х х</value>
</item_property>
</item_propertys>
<item_comments>
<count_comments>0</count_comments>
<grade_sum>0</grade_sum>
<grade_count>0</grade_count>
<average_grade>0</average_grade>
</item_comments>
</item>
</document>


где жирным - это я вывел доп свойство при нажатии отурывается в новом окне, а мне надо сделать чтоб большая фото подменялась так, как это в объявлениях реализовано.
#
Re: Вывод в галерее доп. свойств типа файл?
жирным не выделилось, то чего я смог добиться заключено в <!-- мой тест --> ... <!-- мой тест -->
#
Re: Вывод в галерее доп. свойств типа файл?
т.е. именно вот это только смог сделать
<a href="{item_propertys/item_property[@xml_name='foto1']/property_file_path}" target="_blank">
<BR />
<img src="{item_propertys/item_property[@xml_name = 'foto1']/small_image/property_file_path}" alt="" style="border: 1px solid #DADADA; margin: 0px 5px 5px 0px" />
</a>
Авторизация