Авторизация
Логин:
Пароль:
Забыли свой пароль?
Войти как пользователь:
Войти как пользователь
Вы можете войти на сайт, если вы зарегистрированы на одном из этих сервисов:
Подписка на рассылку
Реклама
11 лет сервису WMe.in.ua - WebMoney Exchange in Ukraine
Расскажи о нас


Пользовательские движки шаблонизации

02.10.2009

Пример подключения движка XML/XSLT:

Сначала регистрируем движок:

global $arCustomTemplateEngines;
$arCustomTemplateEngines = array(
   "xslt" => array(
      "templateExt" => array("xsl"),
      "function" => "XSLTEngine"
   ),
);

Функция инициализации параметров движка:

function CreateXMLFromArray($xDoc, $xNode, $ar)
{
   foreach($ar as $key=>$val)
   {
      if(!is_string($key) || strlen($key)<=0)
         $key = "value";

      $xElement = $xDoc->createElement($key);
      if(is_array($val))
      {
         CreateXMLFromArray($xDoc, $xElement, $val);
      }
      else
      {
         $xElement->appendChild($xDoc->createTextNode(iconv( SITE_CHARSET, "utf-8", $val)));
      }
      $xNode->appendChild($xElement);
   }
   return $xNode;
}

Функция подключения движка:

function XSLTEngine($templateFile, $arResult, $arParams, $arLangMessages, $templateFolder, $parentTemplateFolder, $template)
{
   $arResult["PARAMS"] = array(
      "templateFolder" => $templateFolder,
      "parentTemplateFolder" => $parentTemplateFolder,
      "arParams" => $arParams,
      "arLangMessages" => $arLangMessages
   );

   $xDoc = new DOMDocument("1.0", SITE_CHARSET);
   $xRoot = $xDoc->createElement('result');
   CreateXMLFromArray($xDoc, $xRoot, $arResult);
   $xDoc->appendChild($xRoot);

   $xXsl = new DOMDocument();
   $xXsl->load( $_SERVER["DOCUMENT_ROOT"].$templateFile );

   $xProc = new XSLTProcessor;
   $xProc->importStyleSheet($xXsl);

   echo $xProc->transformToXML($xDoc);
}


Страница 3 - 3 из 3
Начало | Пред. | 1 2 3 | След. | Конец

Количество показов: 76736121
Рейтинг:  3.3

Возврат к списку

(Голосов: 1, Рейтинг: 3.3)

Материалы по теме:


Страницы: Пред. 1 ... 2132 2133 2134 2135 2136 ... 2627 След.
0  
Donaldevivy
analizador de vibraciones
Equipos de ajuste: esencial para el operacin estable y productivo de las dispositivos.

En el campo de la ciencia avanzada, donde la rendimiento y la fiabilidad del equipo son de mxima trascendencia, los sistemas de balanceo juegan un papel esencial. Estos dispositivos especficos estn diseados para balancear y asegurar componentes giratorias, ya sea en dispositivos industrial, vehculos de traslado o incluso en dispositivos caseros.

Para los tcnicos en mantenimiento de equipos y los profesionales, manejar con equipos de equilibrado es crucial para proteger el funcionamiento suave y estable de cualquier aparato giratorio. Gracias a estas soluciones avanzadas innovadoras, es posible reducir sustancialmente las sacudidas, el sonido y la tensin sobre los sujeciones, aumentando la longevidad de partes importantes.

Asimismo trascendental es el papel que juegan los sistemas de equilibrado en la atencin al consumidor. El apoyo experto y el soporte regular empleando estos aparatos habilitan ofrecer prestaciones de ptima calidad, incrementando la contento de los consumidores.

Para los responsables de proyectos, la financiamiento en estaciones de balanceo y dispositivos puede ser fundamental para incrementar la efectividad y eficiencia de sus dispositivos. Esto es especialmente trascendental para los emprendedores que administran reducidas y modestas empresas, donde cada punto vale.

Asimismo, los dispositivos de equilibrado tienen una amplia utilizacin en el campo de la proteccin y el monitoreo de estndar. Permiten detectar eventuales defectos, previniendo intervenciones costosas y averas a los aparatos. Ms an, los informacin obtenidos de estos dispositivos pueden aplicarse para perfeccionar mtodos y potenciar la reconocimiento en plataformas de investigacin.

Las sectores de uso de los dispositivos de ajuste abarcan diversas sectores, desde la fabricacin de ciclos hasta el monitoreo ecolgico. No influye si se considera de grandes elaboraciones industriales o limitados espacios caseros, los sistemas de calibracin son necesarios para promover un rendimiento efectivo y sin interrupciones.
Имя Цитировать 0  
0  
Joshuachurb
medication from mexico pharmacy https://certpharm.com/# Cert Pharm
Имя Цитировать 0  
0  
KxyuTyday
dark market 2025  darknet market list
Имя Цитировать 0  
0  
TerencePap
Casino top Бесплатные спины за регистрацию без депозита с выводом
Имя Цитировать 0  
0  
RabyHaigo
tor drug market  darknet market
Имя Цитировать 0  
0  
RabyHaigo
darknet drug store  dark market onion
Имя Цитировать 0  
0  
Stayvkamyday
Оптимальное решение для постоянного доступа – 1xbet рабочее зеркало. Специально разработанный инструмент поможет обойти любые ограничения быстро и безопасно. Ваш комфорт – наша главная задача.
Имя Цитировать 0  
0  
StayvkaJeast
Проверил новый метод обхода блокировки – 1xbet зеркало рабочее. Все функции доступны, интерфейс такой же удобный. Сделал несколько успешных ставок, вывод прошел моментально.
Имя Цитировать 0  
0  
KxyuTyday
dark web marketplaces  darknet markets url
Имя Цитировать 0  
0  
DavidDep
Playgama offers a bizarre tenets for gaming enthusiasts, featuring the latest and best manumitted online games. Individual of the standout benefits of Playgama is its commitment to providing an uninterrupted gaming experience. Players can plunge into their favorite games without the hassle of lengthy downloads, meddling ads, or annoying pop-ups that frequently plague other gaming sites.

With Playgama, you can unpretentiously http://hongtran.net/tam-dao-se-con-den-nua/?unapproved=247113&moderation-hash=d6cd242f9810777a1ba14659acdceb30#comment-247113 worry up your chosen game speedily in your web browser, allowing for the sake seamless access and knee-jerk enjoyment. This convenience means that you can post-haste exchange between games, exploring supplementary titles or revisiting ex- favorites without any barriers. Whether you are into manners, over, or design games, Playgama has something for everyone https://alphanetworktv.com/alpha-fruits-for-divine-yoga-healing/?unapproved=229050&moderation-hash=ad64c2e0da5cb8d9b35c210d84b8d04c#comment-229050

To boot, the option https://www.beginnderweisheit.de/hallo-welt/?unapproved=828360&moderation-hash=0d7fbc68992fa3d446d4ed06aab2e169#comment-828360 is regularly updated, ensuring that you every receive access to the latest titles in the gaming world. The platform prioritizes user practice, making it easy to navigate and upon games that jacket your interests.

In conclusion, Playgama is the cultivate stopping-place http://bigpapa.sakura.ne.jp/joyful3x/joyful.cgi in behalf of anyone looking to have fun and appreciate gaming without interruptions. With a ample array of free online games to hand at your fingertips, you can immerse yourself in hours of sport—all from the luxury of your web browser. So, why wait? Afflict Playgama today and start your gaming undertaking!
Имя Цитировать 0  
0  
online casino lsmuri
Regards, Plenty of tips.  
real online casino ohio https://ratingcasino.info/fast-payout-casinos/ online casinos mit trustly
Имя Цитировать 0  
0  
Pingunisp
darknet links  darknet markets
Имя Цитировать 0  
0  
Pingunisp
darkmarket link  dark web market urls
Имя Цитировать 0  
0  
RabyVag
dark web markets  dark web link
Имя Цитировать 0  
0  
Volodyasit
Имя Цитировать 0  
0  
Volodyasit
Имя Цитировать 0  
0  
DonaldRah
onion dark website  dark market onion
Имя Цитировать 0  
0  
DonDonPally
darknet marketplace  darkmarket list
Имя Цитировать 0  
0  
Tolikovemo
darknet markets links  darkmarkets
Имя Цитировать 0  
0  
DonaldRah
darkmarkets  dark web marketplaces
Имя Цитировать 0  
0  
Pingrar
darknet websites  darknet market lists
Имя Цитировать 0  
0  
online casino lsmuri
Thank you. A good amount of stuff.  
free fun online casino games https://shadowcasino.info/tennessee-online-casino/ best online casino names
Имя Цитировать 0  
0  
WilliamIRunisp
dark market 2025  darknet links
Имя Цитировать 0  
0  
WilliamIRunisp
dark market list  darkmarket list
Имя Цитировать 0  
0  
Social Link - flego
Why Online Casinos Are a Worldwide Trend

Virtual gambling platforms have revolutionized the betting scene, offering a unique kind of accessibility and diversity that traditional casinos don’t provide. In recent years, a large audience across the globe have turned to the fun of virtual gambling due to its ease of access, engaging traits, and continuously increasing catalogs of games.

If you’re exploring for the first time with the world of online gaming or are looking to explore reputable operators, why not become part of our lively gaming forum? It’s a space where gaming aficionados share stories, guiding you to maximize your virtual play. Join the discussions and see it here now: aviator predictor

One of the most compelling reasons of digital gambling sites is the incredible array of games on offer. Whether you enjoy playing on traditional slot machines, playing through engaging video-based games, or mastering skills in traditional table offerings like Roulette, casino websites feature numerous choices. Plenty of operators moreover include live gaming streams, letting you to interact with live hosts and fellow gamblers, all while taking in the engaging atmosphere of a land-based casino in your own space.

Social URL: https://t.me/aviator_compk

In addition to diversity, digital casino services excel accessibility.
Имя Цитировать 0  
Страницы: Пред. 1 ... 2132 2133 2134 2135 2136 ... 2627 След.
Текст сообщения*
Загрузить файл или картинкуПеретащить с помощью Drag'n'drop
Перетащите файлы
Ничего не найдено
Отправить Отменить
Защита от автоматических сообщений
 
Публикация статей
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />

liqpay webmoney privat24 visa mastercard
2002-2017 © InKey
All rights reserved