当前位置: 首页>>代码示例>>PHP>>正文


PHP tools::getXmlTemplate方法代码示例

本文整理汇总了PHP中tools::getXmlTemplate方法的典型用法代码示例。如果您正苦于以下问题:PHP tools::getXmlTemplate方法的具体用法?PHP tools::getXmlTemplate怎么用?PHP tools::getXmlTemplate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在tools的用法示例。


在下文中一共展示了tools::getXmlTemplate方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: chpu

 * Здесь указаны переменные, использующиеся в большинстве шаблонов
 */
$main_template = 'main.tpl';
// шаблон главной страницы по умолчанию
$smarty->assign('menu', false);
// активный пункт меню
$smarty->assign('errors', false);
// массив обшибок
$smarty->assign('return_data', false);
// значения, возвращаемые в форму
$smarty->assignByRef('arrPayments', $arrPayments);
// значения, возвращаемые в форму
/**
 * Поключаем xml-файл с данными шаблона сайта
 */
$xmlTemplate = tools::getXmlTemplate();
$smarty->assignByRef('xmlTemplate', $xmlTemplate);
/**
 * получаем список дополнительных страниц для вывода в меню
 */
$arrPages = $pages->getActivePages(array('id', 'title'));
$smarty->assignByRef('dop_pages', $arrPages);
/**
 * ЧПУ
 */
chpu::setUrlToGet($group->arrTypes);
$chpu = new chpu();
$smarty->assignByRef('chpu', $chpu);
/**
 * МОДЫ
 */
开发者ID:innova-market,项目名称:JobExpert,代码行数:31,代码来源:index.php

示例2: Group

<?php

/********************************************************
	JobExpert v1.0
	powered by Script Developers Group (SD-Group)
	email: info@sd-group.org.ua
	url: http://sd-group.org.ua/
	Copyright 2010-2015 (c) SD-Group
	All rights reserved
=========================================================
	Обслуживание сайта - Дизайн сайта
********************************************************/
/**
* @package
* @todo
*/
!defined('SDG') ? die('Triple protection!') : null;
// инициируем "Наименование страницы" отображаемое в форме
$arrNamePage = array(array('name' => MENU_ADMIN_MAIN, 'link' => CONF_ADMIN_FILE), array('name' => MENU_SERVICE, 'link' => false), array('name' => MENU_DESIGNER, 'link' => false));
/**
* Действия
*/
if (isset($_GET['action']) && !empty($_GET['action']) && 'save' === $_GET['action']) {
    // производим запись шаблона
    tools::recXmlTemplate($_POST);
}
$arrTemplates = array('head_site' => array('block.site.head.tpl' => array('header' => ADMIN_DESIGNER_BLOCK_HEADER, 'description' => ADMIN_DESIGNER_BLOCK_HEADER_DESCRIPTION)), 'sides' => array('block.menu.tpl' => array('header' => ADMIN_DESIGNER_BLOCK_MENU, 'description' => ADMIN_DESIGNER_BLOCK_MENU_DESCRIPTION), 'block.newses.last.tpl' => array('header' => ADMIN_DESIGNER_BLOCK_LAST_NEWSES, 'description' => ADMIN_DESIGNER_BLOCK_LAST_NEWSES_DESCRIPTION), 'block.news.archive.tpl' => array('header' => ADMIN_DESIGNER_BLOCK_NEWS_ARCHIVE, 'description' => ADMIN_DESIGNER_BLOCK_NEWS_ARCHIVE_DESCRIPTION), 'block.user.announces.tpl' => array('header' => ADMIN_DESIGNER_BLOCK_USER_ANNOUNCES, 'description' => ADMIN_DESIGNER_BLOCK_USER_ANNOUNCES_DESCRIPTION), 'block.user.vacancys.tpl' => array('header' => ADMIN_DESIGNER_BLOCK_USER_VACANCYS, 'description' => ADMIN_DESIGNER_BLOCK_USER_VACANCYS_DESCRIPTION), 'block.user.resumes.tpl' => array('header' => ADMIN_DESIGNER_BLOCK_USER_RESUMES, 'description' => ADMIN_DESIGNER_BLOCK_USER_RESUMES_DESCRIPTION), 'block.announces.navigator.tpl' => array('header' => ADMIN_DESIGNER_BLOCK_ANNOUNCES_NAVIGATOR, 'description' => ADMIN_DESIGNER_BLOCK_ANNOUNCES_NAVIGATOR_DESCRIPTION), 'block.announces.hot.tpl' => array('header' => ADMIN_DESIGNER_BLOCK_HOT_ANNOUNCES, 'description' => ADMIN_DESIGNER_BLOCK_HOT_ANNOUNCES_DESCRIPTION), 'block.vacancy.hot.tpl' => array('header' => ADMIN_DESIGNER_BLOCK_HOT_VACANCYS, 'description' => ADMIN_DESIGNER_BLOCK_HOT_VACANCYS_DESCRIPTION), 'block.resume.hot.tpl' => array('header' => ADMIN_DESIGNER_BLOCK_HOT_RESUMES, 'description' => ADMIN_DESIGNER_BLOCK_HOT_RESUMES_DESCRIPTION), 'block.authorize.tpl' => array('header' => ADMIN_DESIGNER_BLOCK_AUTHORIZE, 'description' => ADMIN_DESIGNER_BLOCK_AUTHORIZE_DESCRIPTION), 'block.statistics.tpl' => array('header' => ADMIN_DESIGNER_BLOCK_STATISTICS, 'description' => ADMIN_DESIGNER_BLOCK_STATISTICS_DESCRIPTION), 'block.who.online.tpl' => array('header' => ADMIN_DESIGNER_BLOCK_WHO_ONLINE, 'description' => ADMIN_DESIGNER_BLOCK_WHO_ONLINE_DESCRIPTION), 'block.user.articles.tpl' => array('header' => ADMIN_DESIGNER_BLOCK_USER_ARTICLES, 'description' => ADMIN_DESIGNER_BLOCK_USER_ARTICLES_DESCRIPTION), 'block.user.news.tpl' => array('header' => ADMIN_DESIGNER_BLOCK_USER_NEWS, 'description' => ADMIN_DESIGNER_BLOCK_USER_NEWS_DESCRIPTION), 'block.undefined1.tpl' => array('header' => ADMIN_DESIGNER_BLOCK_UNDEFINED1, 'description' => ADMIN_DESIGNER_BLOCK_UNDEFINED1_DESCRIPTION), 'block.undefined2.tpl' => array('header' => ADMIN_DESIGNER_BLOCK_UNDEFINED2, 'description' => ADMIN_DESIGNER_BLOCK_UNDEFINED2_DESCRIPTION), 'block.undefined3.tpl' => array('header' => ADMIN_DESIGNER_BLOCK_UNDEFINED3, 'description' => ADMIN_DESIGNER_BLOCK_UNDEFINED3_DESCRIPTION), 'advertisment' => array('header' => ADMIN_DESIGNER_BLOCK_ADVERTISMENT, 'description' => ADMIN_DESIGNER_BLOCK_ADVERTISMENT_DESCRIPTION)), 'foot_site' => array('block.site.foot.tpl' => array('header' => ADMIN_DESIGNER_BLOCK_FOOTER, 'description' => ADMIN_DESIGNER_BLOCK_FOOTER_DESCRIPTION)));
$smarty->assignByRef('arrTemplates', $arrTemplates);
/********** Поключаем xml-файл с данными шаблона сайта **********/
$smarty->assign('xmlTemplate', tools::getXmlTemplate());
$smarty->assignByRef('errors', $arrErrors);
开发者ID:innova-market,项目名称:JobExpert,代码行数:31,代码来源:adm.service.designer.php


注:本文中的tools::getXmlTemplate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。