Каталог
Радиационный контроль
Обработка снимков и изображений
Материалы и приспособления для рентгенографии
Ультразвуковой контроль
Дозиметрия
Визуальный и измерительный контроль
Контроль физических свойств
Ультразвуковые толщиномеры
Магнитопорошковый и вихретоковый контроль
Цветная дефектоскопия
Электрохимзащита
Геодезическое оборудование
Контроль общестроительных работ
Контроль параметров окружающей среды
Разное
Прайс-лист
Эридан-сервис
Услуги
Контакты
Главная
>
Архив новостей
> Актуальные цены
Актуальные цены
9 Августа 2021
XML
XSLT
<?xml version="1.0" encoding="UTF-8"?> <data controller="news" action="new" title="public.controller.news.new.title"> <ancestors> <item link="/news/" title="Архив новостей" pos="1"/> <item link="/" title="Главная" pos="0"/> </ancestors> <content> <title>Актуальные цены</title> <metatitle/> <metakeywords/> <metadescription/> <date year="2021" month="8" month_nom="Август" month_dec="Августа" day="9"/> <html><![CDATA[]]></html> </content> <catalog_sections> <item url="/catalog/1/" title="Радиационный контроль"/> <item url="/catalog/2/" title="Обработка снимков и изображений"/> <item url="/catalog/3/" title="Материалы и приспособления для рентгенографии"/> <item url="/catalog/4/" title=" Ультразвуковой контроль"/> <item url="/catalog/5/" title="Дозиметрия"/> <item url="/catalog/6/" title="Визуальный и измерительный контроль"/> <item url="/catalog/7/" title="Контроль физических свойств"/> <item url="/catalog/8/" title="Ультразвуковые толщиномеры"/> <item url="/catalog/9/" title="Магнитопорошковый и вихретоковый контроль"/> <item url="/catalog/10/" title="Цветная дефектоскопия"/> <item url="/catalog/11/" title="Электрохимзащита"/> <item url="/catalog/12/" title="Геодезическое оборудование"/> <item url="/catalog/13/" title="Контроль общестроительных работ"/> <item url="/catalog/14/" title="Контроль параметров окружающей среды"/> <item url="/catalog/15/" title="Разное"/> </catalog_sections> <addresses> <item title="ООО "Благовест" e-mail: blagvest-nk@yandex.ru, info@blagovestnk.ru" address="450022, г. Уфа, ул. Бакалинская, 90"> <phone type="city" code="347" number="2912945"/> <phone type="city" code="347" number="2912946"/> <phone type="mobile" prefix="8" op="917" number="3458041"/> <phone type="mobile" prefix="8" op="917" number="3458042"/> </item> <item title="ООО "Эридан-сервис" e-mail: blagvest-nk@yandex.ru, info@blagovestnk.ru" address="450022, г. Уфа, ул. Бакалинская, 90"> <phone type="city" code="347" number="2912945"/> <phone type="city" code="347" number="2912946"/> <phone type="mobile" prefix="8" op="917" number="3458041"/> <phone type="mobile" prefix="8" op="917" number="3458042"/> </item> </addresses> <mail>blagvest-nk@yandex.ru</mail> <debug/> </data>
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" exclude-result-prefixes="xsl"> <xsl:output method="xml" omit-xml-declaration="yes" indent="no" encoding="UTF-8" undeclare-namespaces="yes"/> <xsl:include href="misc.xsl"/> <xsl:template match="/"> <xsl:text disable-output-escaping='yes'><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"></xsl:text> <html> <head> <xsl:call-template name="head"/> </head> <body> <div id="container"> <div id="all"> <div class="top_line round2b"><xsl:comment/></div> <div class="head"><a href="/eridan-servis/" class="logo_right" title="Эридан-сервис"><xsl:comment/></a><a href="/" class="logo_left" title="Главная страница"><xsl:comment/></a></div> <div class="hr_top"><xsl:comment/></div> <div id="l"> <ul class="menu"> <li><a href="/catalog/" class="round2l icon1"><span><xsl:comment/></span>Каталог</a> <ul> <xsl:apply-templates select="data/catalog_sections/item"/> </ul> </li> <li><a href="/price/" class="round2 icon6"><span><xsl:comment/></span>Прайс-лист</a></li> <li><a href="/eridan-servis/" class="round2 icon2"><span><xsl:comment/></span>Эридан-сервис</a></li> <li><a href="/uslugi/" class="round2 icon3"><span><xsl:comment/></span>Услуги</a></li> <li><a href="/contacts/" class="round2 icon4"><span><xsl:comment/></span>Контакты</a></li> </ul> <form action="" id="subscribe" class="round2"> <table> <tr> <td><input class="query round2" name="mail" value="" id="subscribe_mail" placeholder="Ваш E-mail" type="text" /><xsl:comment/></td> <td class="submit"><input class="submit round2" id="subscribe_button" value="Подписаться" type="button" /><xsl:comment/></td> </tr> </table> </form> <xsl:if test="data/content/@url!='contacts'"> <div id="contacts"> <div class="header">Контакты</div> <hr class="header" /> <xsl:apply-templates select="data/addresses/item"/> <span class="call round2">Заказать звонок</span> <a href="mailto:{data/mail}" class="mail"><xsl:value-of select="data/mail"/></a> </div> </xsl:if> </div> <xsl:choose> <xsl:when test="data/content/@url='contacts'"> <div id="cont"> <form action="/search/" id="search_panel" class="round2r" method="post"> <table> <tr> <td class="span"><span><xsl:comment/></span></td> <td><input class="query round2" name="query" value="{data/content/search_results/@query}" type="text" /></td> <td class="submit"><input class="submit round2" value="Найти" type="submit" /></td> </tr> </table> </form> <xsl:call-template name="select_page_type"/> </div> </xsl:when> <xsl:otherwise> <div id="c"> <form action="/search/" id="search_panel" class="round2r" method="post"> <table> <tr> <td class="span"><span><xsl:comment/></span></td> <td><input class="query round2" name="query" value="{data/content/search_results/@query}" type="text" /></td> <td class="submit"><input class="submit round2" value="Найти" type="submit" /></td> </tr> </table> </form> <xsl:call-template name="select_page_type"/> </div> </xsl:otherwise> </xsl:choose> <div id="footer"> <div> <div class="hr"><xsl:comment/></div> <div class="copy"> © 2008-2012 ООО «Благовест» — Уфа. <br /> Все права защищены <br /> </div> <div class="links"> <a id="ivix" href="http://ivix.ru"><xsl:comment/></a> <a href="/">Главная</a> <a href="/catalog/">Каталог</a> <a href="/price/">Прайс-лист</a> <a href="/eridan-servis/">Эридан-сервис</a> <a href="/uslugi/">Услуги</a> </div> </div> <!-- Yandex.Metrika counter --> <script type="text/javascript" > (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); ym(57518089, "init", { clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true }); </script> <noscript><div><img src="https://mc.yandex.ru/watch/57518089" style="position:absolute; left:-9999px;" alt="" /></div></noscript> <!-- /Yandex.Metrika counter --> <!-- Global site tag (gtag.js) - Google Analytics --> <script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-158531515-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-158531515-1'); </script> </div> </div> <xsl:call-template name="debug_panel" /> </div> <div id="user-register-ok" title="Регистрация завершена"></div> <div id="feedback-dialog" title="Заказать звонок"><p class="validateTips">Все поля обязательны для заполнения.</p> <form action="/feedback/" method="post"> <table cellpadding="7" border="0"> <tr><td><label for="f_user_name">Имя</label></td><td><input type="text" name="name" id="f_user_name" class="text ui-widget-content ui-corner-all" /></td></tr> <tr><td><label for="f_user_phone">Телефон</label></td><td><input type="text" name="mail" id="f_user_phone" class="text ui-widget-content ui-corner-all" /></td></tr> </table> </form> </div> </body> </html> </xsl:template> <!-- ================================ Шаблоны ==================================== --> <!-- Разделы каталога --> <xsl:template match="catalog_sections/item"> <li><a href="{@url}"><span><xsl:comment/></span><xsl:value-of select="@title"/></a></li> </xsl:template> <!-- Новости на главной --> <xsl:template match="last_news/item"> <div> <div class="header"><a href="{@url}"><xsl:value-of select="@title"/><xsl:comment/></a></div> <div class="date"><xsl:value-of select="date/@day"/> <xsl:value-of select="date/@month_dec"/> <xsl:value-of select="date/@year"/></div> <hr /> <xsl:value-of select="abstract" disable-output-escaping="yes"/> </div> </xsl:template> <!-- Новинки на главной --> <xsl:template match="last_goods/item"> <div> <div class="header"><a href="{@url}"><xsl:value-of select="@title"/><xsl:comment/></a></div> <p> <xsl:if test="@thumb!=''"> <img src="{@thumb}" alt="@title" /> </xsl:if> <xsl:value-of select="abstract" disable-output-escaping="yes"/> </p> </div> </xsl:template> <!-- Крошки --> <xsl:template match="data/ancestors/item" mode="bread_crumbs"> <a href="{@link}"><xsl:value-of select="@title"/></a><xsl:text> > </xsl:text> </xsl:template> <!-- Результаты поиска --> <xsl:template match="search_results/item"> <div class="module"> <div class="header"><a href="{@link}"><xsl:value-of select="@title"/></a></div> <p><xsl:value-of select="."/></p> <div class="hr"><xsl:comment/></div> </div> </xsl:template> <!-- Новости в архиве --> <xsl:template match="news/item"> <div class="module"> <div class="header"><a href="{@url}"><xsl:value-of select="@title"/></a></div> <div class="date"><xsl:value-of select="date/@day"/> <xsl:value-of select="date/@month_dec"/> <xsl:value-of select="date/@year"/></div> <xsl:value-of select="abstract" disable-output-escaping="yes"/> <div class="hr"><xsl:comment/></div> </div> </xsl:template> <!-- Каталог --> <xsl:template match="catalog/section"> <h2><a href="{@url}"><xsl:value-of select="@title"/></a></h2> <ul> <xsl:apply-templates select="object"/> </ul> <xsl:if test="position()!=last()"> <div class="hr"><xsl:comment/></div> </xsl:if> </xsl:template> <xsl:template match="catalog/section/object"> <li> <a href="{@url}"><xsl:value-of select="@title"/></a> </li> </xsl:template> <!-- Раздел каталога --> <xsl:template match="objects/object"> <div class="module"> <div class="header"><a href="{@url}"><xsl:value-of select="@title"/></a></div> <xsl:if test="@thumb!=''"> <div class="img"><a rel='flat_gallery' href="{@image}"><img src="{@thumb}" alt="{@title}" /></a></div> </xsl:if> <xsl:value-of select="abstract" disable-output-escaping="yes"/> <xsl:if test="relations/object"> <div class="associated"> <p>Сопутствующие товары:</p> <ul> <xsl:apply-templates select="relations/object"/> </ul> </div> </xsl:if> <div class="hr"><xsl:comment/></div> </div> </xsl:template> <!-- Сопутствующие --> <xsl:template match="relations/object"> <li><a href="{@url}"><xsl:value-of select="@title"/></a></li> </xsl:template> <!-- Выбор типа страницы --> <xsl:template name="select_page_type"> <xsl:choose> <!-- Результаты поиска --> <xsl:when test="data/@controller='search'"> <div class="bread_crumbs"> <xsl:apply-templates select="data/ancestors/item" mode="bread_crumbs"> <xsl:sort select="@pos"/> </xsl:apply-templates> <xsl:value-of select="data/@title"/> </div> <xsl:choose> <xsl:when test="not(data/content/search_results/item)"> <h1>К сожалению, по вашему запросу ничего не найдено</h1> </xsl:when> <xsl:otherwise><h1><xsl:value-of select="data/@title"/></h1></xsl:otherwise> </xsl:choose> <xsl:apply-templates select="data/content/search_results/item"/> </xsl:when> <!-- Страница новости --> <xsl:when test="data/@controller='news' and data/@action='new'"> <div class="bread_crumbs"> <xsl:apply-templates select="data/ancestors/item" mode="bread_crumbs"> <xsl:sort select="@pos"/> </xsl:apply-templates> <xsl:value-of select="data/content/title"/> </div> <h1><xsl:value-of select="data/content/title"/></h1> <div class="date"><xsl:value-of select="data/content/date/@day"/> <xsl:value-of select="data/content/date/@month_dec"/> <xsl:value-of select="data/content/date/@year"/></div> <hr /> <xsl:value-of select="data/content/html" disable-output-escaping="yes"/> </xsl:when> <!-- Архив новостей --> <xsl:when test="data/@controller='news' and data/@action='index'"> <div class="bread_crumbs"> <xsl:apply-templates select="data/ancestors/item" mode="bread_crumbs"> <xsl:sort select="@pos"/> </xsl:apply-templates> <xsl:value-of select="data/@title"/> </div> <h1><xsl:value-of select="data/@title"/></h1> <xsl:apply-templates select="data/content/news/item"/> </xsl:when> <!-- Общий список каталога --> <xsl:when test="data/@controller='catalog' and data/@action='index'"> <div class="bread_crumbs"> <xsl:apply-templates select="data/ancestors/item" mode="bread_crumbs"> <xsl:sort select="@pos"/> </xsl:apply-templates> <xsl:value-of select="data/@title"/> </div> <h1><xsl:value-of select="data/@title"/></h1> <xsl:apply-templates select="data/content/catalog/section"/> </xsl:when> <!-- Раздел каталога --> <xsl:when test="data/@controller='catalog' and data/@action='section'"> <div class="bread_crumbs"> <xsl:apply-templates select="data/ancestors/item" mode="bread_crumbs"> <xsl:sort select="@pos"/> </xsl:apply-templates> <xsl:value-of select="data/content/title"/> </div> <h1><xsl:value-of select="data/content/title"/></h1> <xsl:apply-templates select="data/content/objects/object"/> </xsl:when> <!-- Объект каталога --> <xsl:when test="data/@controller='catalog' and data/@action='object'"> <div class="bread_crumbs"> <xsl:apply-templates select="data/ancestors/item" mode="bread_crumbs"> <xsl:sort select="@pos"/> </xsl:apply-templates> <xsl:value-of select="data/content/title"/> </div> <h1><xsl:value-of select="data/content/title"/></h1> <div class="item"> <xsl:if test="data/content/thumb!=''"> <div class="img"><a rel='flat_gallery' href="{data/content/image}"><img src="{data/content/thumb}" alt="{data/content/title}" /></a></div> </xsl:if> <div> <div class="price"><span><xsl:value-of select="data/content/price"/></span> <xsl:if test="translate(data/content/price, translate(data/content/price,'0123456789', ''), '') != ''"> руб. </xsl:if> </div> <xsl:if test="data/content/relations/object"> <div class="associated"> <p>Сопутствующие товары:</p> <ul> <xsl:apply-templates select="data/content/relations/object"/> </ul> </div> </xsl:if> </div> </div> <xsl:value-of select="data/content/html" disable-output-escaping="yes"/> </xsl:when> <!-- Страница контактов --> <xsl:when test="data/content/@url='contacts'"> <div class="bread_crumbs"> <xsl:apply-templates select="data/ancestors/item" mode="bread_crumbs"> <xsl:sort select="@pos"/> </xsl:apply-templates> <xsl:value-of select="data/content/title"/> </div> <h1><xsl:value-of select="data/content/title"/></h1> <xsl:apply-templates select="data/addresses/item" mode="contacts"/> </xsl:when> <!-- Любая текстовая страница --> <xsl:otherwise> <xsl:if test="data/content/@url!='' and data/content/@type='page'"> <div class="bread_crumbs"><a href="/">Главная</a> > <xsl:value-of select="data/content/title"/></div> </xsl:if> <xsl:if test="data/content/@url='' and data/content/@type='page' and data/last_news"> <h1>Новости <a href="/news/">архив новостей</a></h1> <div class="col2"> <xsl:apply-templates select="data/last_news/item"/> </div> <div class="hr"><xsl:comment/></div> </xsl:if> <h1><xsl:value-of select="data/content/title"/></h1> <xsl:value-of select="data/content/html" disable-output-escaping="yes"/> <xsl:if test="data/content/@url='' and data/content/@type='page' and data/last_goods"> <div class="hr"><xsl:comment/></div> <h1>Новинки <a href="/catalog/">все товары</a></h1> <div class="col2"> <xsl:apply-templates select="data/last_goods/item"/> </div> </xsl:if> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- Контакты слева --> <xsl:template match="data/addresses/item"> <xsl:value-of select="@address"/> <ul class="tel"> <xsl:apply-templates select="phone"/> </ul> <xsl:if test="position()!=last()"> <hr /> </xsl:if> </xsl:template> <xsl:template match="data/addresses/item/phone"> <xsl:element name="li"> <xsl:if test="(position() mod 2) = 0"> <xsl:attribute name="class">right</xsl:attribute> </xsl:if> <xsl:choose> <xsl:when test="@type='mobile'"> <xsl:value-of select="concat('+7', ' ', @op, ' ', '<span>', substring(@number, 1, 2), ' ', substring(@number, 3, 2), ' ', substring(@number, 5, 3))" disable-output-escaping="yes"/> <xsl:choose> <xsl:when test="position()!=last()"> <xsl:value-of select="concat(',', '</span>')" disable-output-escaping="yes"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat(' ', '</span>')" disable-output-escaping="yes"/> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat('(', @code, ')', ' ', '<span>', substring(@number, 1, 3), ' ', substring(@number, 4, 2), ' ', substring(@number, 6, 2))" disable-output-escaping="yes"/> <xsl:choose> <xsl:when test="position()!=last()"> <xsl:value-of select="concat(',', '</span>')" disable-output-escaping="yes"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="concat(' ', '</span>')" disable-output-escaping="yes"/> </xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> <xsl:text> </xsl:text> </xsl:element> </xsl:template> <!-- Контакты на странице --> <xsl:template match="data/addresses/item" mode="contacts"> <h2><xsl:value-of select="@title"/></h2> <hr /> <div class="contacts"> <p><xsl:value-of select="@address"/></p> <span class="call round2">Заказать звонок</span> <ul class="tel"> <xsl:apply-templates select="phone"/> </ul> </div> <div id="{concat('YMapsID', position())}" class="map"><xsl:value-of select="@address"/></div> </xsl:template> </xsl:stylesheet>
Все поля обязательны для заполнения.
Имя
Телефон