Авторизация
Логин:
Пароль:
Забыли свой пароль?
Войти как пользователь:
Войти как пользователь
Вы можете войти на сайт, если вы зарегистрированы на одном из этих сервисов:
Подписка на рассылку
Реклама
1QH.net - Unique Quality Hosting.network
Расскажи о нас


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

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 | След. | Конец

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

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

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

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


Страницы: Пред. 1 ... 1434 1435 1436 1437 1438 ... 1672 След.
0  
WebSite - 8sw
The Future of Aviator Games

As the popularity for the Aviator game grows globally, its developers are working to enhance the experience. From adding new bonus rounds to creating limited-time promotions, the Aviator official website ensures ongoing excitement.

For players looking for the newest features, staying connected is highly recommended. As Aviator games evolve, their community will likely increase further, solidifying the Aviator betting game as one of the most exciting options in the digital betting industry.

The Aviator game at this link - https://mana.museum/diplomado-en-hebreo/ - is a unique blend of strategy and thrill; it’s a journey that keeps players engaged with its thrilling unpredictability. Whether you’re curious about the best Aviator game, discovering its bonus features, or looking for a unique way to pass the time, this online betting game offers universal appeal.

As you immerse yourself in the Aviator online game, don’t forget the importance of strategy. While the adrenaline rush of watching the plane soar higher is unmatched, a measured approach will increase your chances of success. The real Aviator game is about finding the perfect moment to cash out, and it offers a feeling of triumph every time you cash out at the right time.

As the Aviator game expands its reach, it’s clear that this groundbreaking game is a lasting phenomenon. Whether you’re playing for leisure or profit, the Aviator crash game promises hours of excitement.

So, why wait? Visit the Aviator official website - https://mana.museum/diplomado-en-hebreo/, place your bets, and join the community of Aviator winners today.

The Aviator game stands out in the world of casino betting due to its innovative design and captivating appeal. From its easy-to-understand rules to its dynamic gameplay, it’s clear why the game has become a fan favorite among serious bettors.

One of the greatest strengths of the Aviator game is its wide availability. Whether you’re downloading it for offline play, you’ll find that the game is optimized for all devices. This ease of access makes it ideal for players who value flexibility.
Имя Цитировать 0  
0  
Michaelcer
Элитный эскорт  это особая категория услуг, которая соединяет внутри себя высокое качество сервиса и эксклюзивность. Девицы, работающие в этом направлении, не только лишь обладают симпатичной внешностью, но и имеют высочайший уровень образования, интеллекта и обаяния. Они могут сопровождать клиентов на различные мероприятия, формируя уникальный имидж и создавая атмосферу комфорта.

Одной из главных особенностей элитного эскорта является требовательный отбор моделей. В агентствах, предлагающих такие услуги, особое внимание уделяется не только лишь внешним данным, а также общему развитию женщин. Довольно частенько они обладают несколькими иностранными языками, имеют опыт в области искусства, моды или бизнеса.

Элитные эскорт-девицы могут аккомпанировать клиентов на светские мероприятия, деловые встречи, вечеринки или романтические ужины. Они способны поддерживать беседу на различные темы, делая общение с ними максимально приятным и незабвенным.

Важно отметить, что услуги элитного эскорта не ограничиваются лишь физическим сопровождением. Девушки также помогают создать нужное воспоминание о своем клиенте, беря во внимание его соц статус и окружающую обстановку. Это делает их незаменимыми в многочисленных событиях http://thedotzcompany.com/shop/dotzbase/dotzboard-small/?unapproved=41792&moderation-hash=9d0c1cc97fce75e2b1680f11ab2a8689#comment-41792

Эскорт-услуги нередко связывают с веселием, но для большинства клиентов это метод улучшить свою социальную жизнь, выучиться новым манерам и сделать свое времяпровождение более насыщенным и увлекательным.

В заключение, элитный эскорт  это не просто внешняя красота. Это целый мир, в каком месте сочетаются элегантность, ум и индивидуальный подход к каждому клиенту.
Имя Цитировать 0  
0  
DonaldgAg
What Makes Online Casinos Remain a Global Phenomenon

Online casinos have modernized the gaming scene, providing an unmatched level of accessibility and variety that conventional gambling houses don’t provide. Throughout the last ten years, a vast number of enthusiasts internationally have adopted the adventure of virtual gambling as a result of its availability, thrilling aspects, and ever-expanding game libraries.

One of the biggest attractions of virtual gambling hubs is the unparalleled diversity of games provided. Whether you love playing on old-school fruit machine slots, exploring story-driven visual slot games, or strategizing in traditional table offerings like Texas Hold’em, virtual venues provide endless opportunities. Numerous services additionally feature live casino options, giving you the chance you to engage with real dealers and co-players, all while immersing yourself in the immersive feel of a land-based casino without leaving your home.

If you’re just starting with the world of virtual casino play or are looking to discover reliable sites, why not join our growing gaming forum? It’s a platform where enthusiasts discuss insights, helping you to enhance your gaming journey. Check out the experience and start your journey now: https://www.instagram.com/kwz.kz_official/

Adding to the extensive catalog, virtual gambling platforms stand out ease of access.
Имя Цитировать 0  
0  
Georgeduemn
Get the facts https://my-sollet.com
Имя Цитировать 0  
0  
GeorgeOrbiz
navigate to this site https://jaxx-liberty.com/
Имя Цитировать 0  
0  
DavidGaw
canadian prescription pharmacy: Cheapest online pharmacy - online pharmacy delivery usa
Имя Цитировать 0  
0  
DavidGaw
easy canadian pharm: easy canadian pharm - legitimate canadian mail order pharmacy
Имя Цитировать 0  
0  
Plinko - qa
Plinko casino spel is een opwindend entertainmentvormen die de laatste tijd beschikbaar zijn gekomen op het internet. Deze casinogame, oorspronkelijk ontstaan in de beroemde tv-serie, heeft zich met succes aangepast aan de online gokwereld.

Hier zullen we leggen we uit alles wat je moet weten over het Plinko spel, van de beginprincipes van het spel tot hoe je het kunt spelen voor echt geld en de beste strategieen om het spel te spelen.

Web: https://safenpure.com/plinko-het-populaire-online-casino-spel/

De casinogame Plinko is een simpel spel met veel spanning spanningstocht dat zijn oorsprong vindt in de Amerikaanse tv-show The Price Is Right. Het spel bestaat uit een rechtopstaand bord met een aantal objecten waar een speelbal van bovenaf doorheen valt naar beneden. De bal kaatst af van de pinnen en valt een van de vakken aan de onderkant, die elk een bepaald bedrag tonen. De uitbetaling is afhankelijk van de bal uitkomt. Dit betekent dat het een spel gebaseerd op geluk is, waarbij spelers niet precies kunnen voorspellen waar de bal zal landen.

Hoewel de basisstructuur van het spel duidelijk zijn, maakt de onzekerheid van het spel het opwindend en adembenemend. Dit is een van de onderdelen waarom Plinko met succes is gepopulariseerd. Het wordt vaak aangeboden als een digitale versie van Plinko in verschillende online online gokhuizen, waar spelers de kans hebben om geld te winnen door te spelen op de uitkomst van hun bal.

Als je met een Plinko casino game speelt, lijkt het spel meestal hetzelfde als de bekende tv-versie. De grootste veranderingen liggen echter in je gokken kunt en het feit dat je kunt spelen voor echt geld. In plaats van voor beloningen zoals in de tv-show, kun je in een online casino echte inzetten plaatsen. De terugbetalingen worden beinvloed door het vakje waarin de bal landt afhankelijk van de plaats van de bal.

Je kunt je eigen inzet bepalen, en afhankelijk van de hoogte van je inzet kunnen de geldbedragen fluctuerend zijn. De Plinko game online wordt vaak gemakkelijk toegankelijk gemaakt, wat het voor onervaren spelers makkelijker maakt om het spel uit te voeren. Veel online casino’s bieden een Plinko game download optie, zodat je het spel kunt spelen op je mobiel apparaat, zelfs zonder online te hoeven zijn. Dit verhoogt de vrijheid en maakt het spel meer bereikbaar.
Имя Цитировать 0  
0  
Peopleqsn
It's amazing how the author was able to describe so deeply and insightfully what many people think  https://dilts.g-u.su
Имя Цитировать 0  
0  
JuniorImalp
https://profile.hatena.ne.jp/nationalrankingcountertops/


Hey there! If you're on the hunt for a reliable countertop contractor, you're in luck. I recently stumbled upon a directory that lists some of the top countertop contractors across the U.S., and it’s a game-changer. Whether you're renovating your kitchen or building a new home, this list is a one-stop shop to connect with contractors who can bring your dream countertops to life.

The best part? The directory doesn’t just throw random names at you. It provides a national ranking of contractors based on their expertise, customer feedback, and industry standing. That means you don’t have to spend hours researching, trying to figure out which contractor is best for your project. The hard work is already done for you!

What I really like about this directory is how it also includes detailed info like the types of materials each contractor specializes in (granite, marble, quartz, etc.), their pricing structure, and whether they offer installation services. So, you can instantly see who might be a great fit for your needs.

Plus, this directory is constantly updated. So whether you’re a DIYer looking for tips or you need a seasoned professional, you’re always getting fresh and relevant options. I highly recommend bookmarking this resource if you’re planning any countertop projects in the future. The next time you need a countertop contractor, skip the stress and head straight to this site!
Имя Цитировать 0  
0  
WillieProre
online canadian pharmacy reviews: ed drugs online from canada - easy canadian pharm
Имя Цитировать 0  
0  
Samnhg
How good it is that there are people who are able to so clearly express what many feel  https://dilts.g-u.su
Имя Цитировать 0  
0  
Michaelmeshy
canadian pharmacy no prescription needed https://familypharmacy.company/# pharmacy without prescription
Имя Цитировать 0  
0  
Georgeduemn
more helpful hints https://jaxx-liberty.com
Имя Цитировать 0  
0  
GabrielDow
click here for info https://trusteewallet.org
Имя Цитировать 0  
0  
Charleslub
rx pharmacy coupons https://xxlmexicanpharm.com/# п»їbest mexican online pharmacies
Имя Цитировать 0  
0  
CharlesAtted
no prescription needed canadian pharmacy https://familypharmacy.company/# family pharmacy
Имя Цитировать 0  
0  
BrandonClelt
Имя Цитировать 0  
0  
WillieProre
xxl mexican pharm: xxl mexican pharm - buying prescription drugs in mexico online
Имя Цитировать 0  
0  
Georgeduemn
click this link now https://my-sollet.com
Имя Цитировать 0  
0  
MichaelReatt
canadian pharmacy world coupon code https://easycanadianpharm.shop/# easy canadian pharm
Имя Цитировать 0  
0  
Charleslub
no prescription required pharmacy https://xxlmexicanpharm.shop/# xxl mexican pharm
Имя Цитировать 0  
0  
Georgeduemn
Имя Цитировать 0  
0  
Brainbeazy
Добро пожаловать на этот ресурс fotorina.club – мир ярких открыток, пожеланий, разукрашек и веселых изображений! Здесь вы сможете выбрать красочные изображения для любого случая: юбилеи, особые даты, пожелания и просто хорошее настроение. Делитесь радостью с родными – отправляйте лучшие картинки для вдохновения!
Имя Цитировать 0  
0  
Brainfliex
Приветствуем вас на наш сайт https://fotorina.club/ – мир красивых открыток, теплых слов, раскрасок и смешных изображений! У нас вы сможете выбрать уникальные изображения для любого случая: дни рождения, праздники, добрые слова и просто так позитив. Делитесь радостью с друзьями – выбирайте самые красивые картинки для вдохновения!
Имя Цитировать 0  
Страницы: Пред. 1 ... 1434 1435 1436 1437 1438 ... 1672 След.
Текст сообщения*
Загрузить файл или картинкуПеретащить с помощью Drag'n'drop
Перетащите файлы
Ничего не найдено
Отправить Отменить
Защита от автоматических сообщений
 
Публикация статей
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />

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