本文整理汇总了PHP中CopixTpl类的典型用法代码示例。如果您正苦于以下问题:PHP CopixTpl类的具体用法?PHP CopixTpl怎么用?PHP CopixTpl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CopixTpl类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: _createContent
public function _createContent(&$toReturn)
{
$tpl = new CopixTpl();
$tpl->assign('homepageUrl', CopixConfig::get('|homePage'));
$toReturn = $tpl->fetch('selecthomepage.form.tpl');
return true;
}
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:7,代码来源:selecthomepage.zone.php
示例2: getUsers
public function getUsers()
{
$tpl = new CopixTpl();
$tplUsers = new CopixTpl();
$me_info = Kernel::getUserInfo("ME", 0);
$animateurs_dao =& CopixDAOFactory::create("kernel|kernel_animateurs");
$animateur = $animateurs_dao->get($me_info['type'], $me_info['id']);
$tplUsers->assign('animateur', $animateur);
$ien_dao =& CopixDAOFactory::create("kernel|kernel_ien");
$ien = $ien_dao->get($me_info['type'], $me_info['id']);
$tplUsers->assign('ien', $ien);
$assistance_service =& CopixClassesFactory::Create('assistance|assistance');
$users = $assistance_service->getAssistanceUsers();
$tplUsers->assign('users', $users);
$result = $tplUsers->fetch("users-list.tpl");
$tpl->assign('TITLE_PAGE', CopixI18N::get('assistance.moduleDescription') . " » " . CopixI18N::get('assistance.title.users'));
$tpl->assign('MAIN', $result);
// echo "<pre>"; print_r($_SESSION); die("</pre>");
/*
$menu=array();
$menu[] = array( 'txt' => CopixI18N::get ('comptes.menu.return_getnode'), 'url' => CopixUrl::get ('comptes||getNode') );
$tpl->assign ('MENU', $menu );
*/
return new CopixActionReturn(COPIX_AR_DISPLAY, $tpl);
}
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:25,代码来源:assistance.actiongroup.php
示例3: go
/**
* go
*
* Appel automatique, avec détection du noeud à afficher.
* @author Frédéric Mossmann
* @since 10.03.2009
*
*/
public function go()
{
if (!Kernel::is_connected()) {
return CopixActionGroup::process('genericTools|Messages::getError', array('message' => CopixI18N::get('kernel|kernel.error.nologin'), 'back' => CopixUrl::get('auth|default|login')));
}
CopixHtmlHeader::addJSLink(CopixUrl::get() . 'js/iconito/module_concerto.js');
if (!_request("id") || !ereg('^[0-9]+$', _request("id"))) {
return new CopixActionReturn(COPIX_AR_REDIRECT, CopixUrl::get('kernel||getNodes'));
}
$sql = 'SELECT login,password FROM kernel_bu_auth WHERE node_type=\'responsable\' AND node_id=' . _currentUser()->getExtra('id') . ' AND id=\'' . addslashes(_request("id")) . '\' AND service=\'concerto\'';
$concerto = _doQuery($sql);
if (!$concerto) {
return new CopixActionReturn(COPIX_AR_REDIRECT, CopixUrl::get('kernel||getNodes'));
}
$tpl = new CopixTpl();
$tpl->assign('TITLE_PAGE', CopixI18N::get('concerto|concerto.title'));
// $tpl->assign ('MENU', '<a href="'.CopixUrl::get ('groupe||getListPublic').'">'.CopixI18N::get ('groupe|groupe.annuaire').'</a> :: <a href="'.CopixUrl::get ('groupe||getListMy').'">'.CopixI18N::get ('groupe|groupe.my').'</a>');
$tplListe = new CopixTpl();
$tplListe->assign('login', $concerto[0]->login);
$tplListe->assign('password', $concerto[0]->password);
$result = $tplListe->fetch("concerto-form.tpl");
$tpl->assign("MAIN", $result);
$tpl->assign('BODY_ON_LOAD', 'concerto_redirect();');
return new CopixActionReturn(COPIX_AR_DISPLAY, $tpl);
}
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:33,代码来源:concerto.actiongroup.php
示例4: _createContent
public function _createContent(&$toReturn)
{
$tpl = new CopixTpl();
$blog = $this->getParam('blog', '');
$cat = $this->getParam('cat', null);
$critere = $this->getParam('critere', null);
//on récupère l'ensemble des articles du blog
$dao = _dao('blog|blogarticle');
if ($cat == null) {
$date = $this->getParam('date', null);
$arData = $dao->getAllArticlesFromBlog($blog->id_blog, $date);
} else {
$arData = $dao->getAllArticlesFromBlogByCat($blog->id_blog, $cat->id_bacg);
$tpl->assign('cat', $cat);
}
//on filtre si on a fait une recherche sur les articles
if ($critere != null) {
$arData = $dao->getAllArticlesFromBlogByCritere($blog->id_blog, $critere);
}
//var_dump($arData);
//on construit un tableau associatif entre l'identifiant de l'article et le nombre de commentaires
foreach ($arData as $article) {
//var_dump($article);
$daoArticleComment =& CopixDAOFactory::getInstanceOf('blog|blogarticlecomment');
$record = _record('blog|blogarticlecomment');
$criteres = _daoSp();
$criteres->addCondition('id_bact', '=', $article->id_bact);
$criteres->addCondition('is_online', '=', 1);
$resultat = $daoArticleComment->findBy($criteres);
$arNbCommentByArticle[$article->id_bact] = count($resultat);
}
if (count($arData) > 0) {
//encodage des URL des catégories pour caractères spéciaux
foreach ($arData as $key => $data) {
//Modification suite à apparition d'un warning due à l'absence de catégories , vboniface 06.11.2006
$arData[$key]->key = $key;
if (isset($arData[$key]->categories)) {
foreach ($arData[$key]->categories as $keyCat => $categorie) {
$arData[$key]->categories[$keyCat]->url_bacg = urlencode($categorie->url_bacg);
}
}
}
if (count($arData) <= intval(CopixConfig::get('blog|nbMaxArticles'))) {
$tpl->assign('pager', "");
$tpl->assign('listArticle', $arData);
$tpl->assign('arNbCommentByArticle', $arNbCommentByArticle);
} else {
$params = array('perPage' => intval(CopixConfig::get('blog|nbMaxArticles')), 'delta' => 5, 'recordSet' => $arData, 'template' => '|pager.tpl');
$Pager = CopixPager::Load($params);
$tpl->assign('pager', $Pager->GetMultipage());
$tpl->assign('listArticle', $Pager->data);
$tpl->assign('arNbCommentByArticle', $arNbCommentByArticle);
}
//rajout suite à bug mantis 54 vboniface 06.11.2006
$tpl->assign('blog', $blog);
}
// retour de la fonction :
$toReturn = $tpl->fetch('listarticle.tpl');
return true;
}
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:60,代码来源:listarticle.zone.php
示例5: doValidCategory
/**
* Validation d'une cat�gorie.
*/
public function doValidCategory()
{
$id_blog = $this->getRequest('id_blog', null);
if ($id_blog == null) {
return CopixActionGroup::process('genericTools|Messages::getError', array('message' => CopixI18N::get('blog.error.param'), 'back' => CopixUrl::get('blog|admin|listBlog')));
}
if (!BlogAuth::canMakeInBlog('ADMIN_CATEGORIES', create_blog_object($id_blog))) {
return CopixActionGroup::process('genericTools|Messages::getError', array('message' => CopixI18N::get('blog.error.cannotManageCategory'), 'back' => CopixUrl::get('blog|admin|listBlog')));
}
$tpl = new CopixTpl();
$categoryDAO = CopixDAOFactory::create('blog|blogarticlecategory');
$id_bacg = $this->getRequest('id_bacg', null);
if (strlen($id_bacg) == 0) {
$id_bacg = null;
}
if ($id_bacg != null) {
// EDITION D'UNE CATEGORIE
$category = $categoryDAO->get($id_bacg);
$category->id_blog = $id_blog;
$category->name_bacg = $this->getRequest('name_bacg');
$category->url_bacg = $this->getRequest('url_bacg');
if (strlen($category->url_bacg) == 0) {
$category->url_bacg = killBadUrlChars($category->name_bacg);
}
$tpl->assign('TITLE_PAGE', CopixI18N::get('blog.get.edit.category.title'));
$errors = _dao('blog|blogarticlecategory')->check($category);
if ($errors != 1) {
// Traitement des erreurs
$showErrors = true;
} else {
// Modification dans la base
$categoryDAO->update($category);
return new CopixActionReturn(COPIX_AR_REDIRECT, CopixUrl::get('blog|admin|showBlog', array("id_blog" => $id_blog, "kind" => $this->getRequest('kind', '0'))));
}
} else {
// CREATION D'UNE CATEGORIE
$category = CopixDAOFactory::createRecord('blogarticlecategory');
$category->id_blog = $id_blog;
$category->name_bacg = $this->getRequest('name_bacg');
$category->order_bacg = $categoryDAO->getNewPos($id_blog);
$category->url_bacg = killBadUrlChars($category->name_bacg);
if (strlen($category->url_bacg) == 0) {
$category->url_bacg = killBadUrlChars($category->name_bacg);
}
$tpl->assign('TITLE_PAGE', CopixI18N::get('blog.get.create.category.title'));
$errors = _dao('blog|blogarticlecategory')->check($category);
if ($errors != 1) {
// Traitement des erreurs
$showErrors = true;
} else {
// Insertion dans la base
$categoryDAO->insert($category);
$category->url_bacg = killBadUrlChars($category->id_bacg . '-' . $category->name_bacg);
$categoryDAO->update($category);
return new CopixActionReturn(COPIX_AR_REDIRECT, CopixUrl::get('blog|admin|showBlog', array("id_blog" => $id_blog, "kind" => $this->getRequest('kind', '0'))));
}
}
$tpl->assign('MAIN', CopixZone::process('EditCategory', array('id_blog' => $id_blog, 'id_bacg' => $id_bacg, 'category' => $category, 'errors' => $errors, 'showErrors' => $showErrors, 'kind' => $this->getRequest('kind', '0'))));
return new CopixActionReturn(COPIX_AR_DISPLAY, $tpl);
}
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:63,代码来源:admincategory.actiongroup.php
示例6: _createContent
/**
* Affiche la fiche détaillée d'un utilisateur (login, nom, prénom...)
*
* @author Christophe Beyer <[email protected]>
* @since 2006/01/04
* @param string $type Type de personne (USER_ELE, USER_ELE...)
* @param integer $id Id
*/
public function _createContent(&$toReturn)
{
$type = $this->getParam('type') ? $this->getParam('type') : NULL;
$id = $this->getParam('id') ? $this->getParam('id') : NULL;
if ($type && $id) {
$usr = Kernel::getUserInfo($type, $id);
//print_r($usr);
/*
$res = '<?xml version="1.0" ?>
<person>
<login>'.$login.'</login>
<sexe>'.$usr['sexe'].'</sexe>
<firstname>'.$usr['prenom'].'</firstname>
<name>'.$usr['nom'].'</name>
</person>
';
*/
$tpl = new CopixTpl();
$tpl->assign('usr', $usr);
//$toReturn = utf8_encode($tpl->fetch ('getuser.tpl'));
$toReturn = $tpl->fetch('getuser.tpl');
//$toReturn = $res;
}
return true;
}
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:33,代码来源:getuser.zone.php
示例7: _createContent
/**
* Visualisation de l'aide
*
* @param string $toReturn
* @return string
*/
public function _createContent(&$toReturn)
{
$tpl = new CopixTpl();
$displayAide = true;
$daoAide = _ioDao('simplehelp');
$sp = _daoSp()->addCondition('page_sh', '=', $this->getParam('page_sh', null, null))->addCondition('key_sh', '=', $this->getParam('key_sh', null, null));
$arAide = $daoAide->findBy($sp);
if (count($arAide) > 0) {
$aide = $arAide[0];
} else {
$displayAide = false;
$aide = null;
}
// cette variable est crée pour différencier si l'aide doit être afficher dans un popup classique ou un popuinformation
$popup = false;
if ($this->getParam('popup', null, true) === "true") {
$popup = true;
}
$tpl->assign('aide', $aide);
$tpl->assign('displayAide', $displayAide);
$tpl->assign('popup', $popup);
// $tpl->assign ('nofloat', $this->getParam ('nofloat', false));
$toReturn = $tpl->fetch('showaide.tpl');
return true;
}
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:31,代码来源:showaide.zone.php
示例8: _createContent
/**
* Création du contenu de la page
*/
public function _createContent(&$toReturn)
{
$tpl = new CopixTpl();
$tpl->assign('arModulesPath', CopixConfig::instance()->arModulesPath);
$tpl->assign('arModules', $this->_getModuleOrderByDescription());
$toReturn = $tpl->fetch('modules.list.tpl');
}
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:10,代码来源:customisedinstall.zone.php
示例9: _createContent
public function _createContent(&$toReturn)
{
//Création du sous template.
$tpl = new CopixTpl();
CopixClassesFactory::fileInclude('cms|ServicesCMSPage');
CopixContext::push('cms');
$sHeadings = CopixClassesFactory::getInstanceOf('copixheadings|CopixHeadingsServices');
$headings = $sHeadings->getTree();
$cmsPages = new ServicesCMSPage();
$pages = $cmsPages->getList();
if (isset($this->_params['onlyLastVersion']) && $this->_params['onlyLastVersion'] == 1) {
$pages = $this->_filterLastVersion($pages);
}
CopixContext::pop();
//pagination
foreach ($pages as $page) {
$arPages[$page->id_head][] = $page;
}
$tpl->assign('arPublished', $arPages);
$tpl->assign('arHeadings', $headings);
$tpl->assign('select', $this->getParam('select'));
$tpl->assign('back', $this->getParam('back'));
$tpl->assign('popup', $this->getParam('popup'));
$tpl->assign('height', Copixconfig::get('htmleditor|height'));
$tpl->assign('width', Copixconfig::get('htmleditor|width'));
//$tpl->assign ('editorType' , CopixConfig::get('htmleditor|type'));
$tpl->assign('editorName', $this->getParam('editorName'));
$toReturn = $tpl->fetch('page.select.ptpl');
return true;
}
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:30,代码来源:selectpage.zone.php
示例10: processGetInformation
/**
* Affichage d'un message d'information
*/
public function processGetInformation()
{
$tpl = new CopixTpl();
$tpl->assign('TITLE_PAGE', _request('TITLE_PAGE', _i18n('messages.titlePage.information')));
$tpl->assignZone('MAIN', 'PassThrough', array('message' => _request('message'), 'back' => _request('continue'), 'template' => 'messages.information.tpl'));
return new CopixActionReturn(CopixActionReturn::DISPLAY, $tpl);
}
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:10,代码来源:messages.actiongroup.php
示例11: processDefault
public function processDefault()
{
$tpl = new CopixTpl();
$tplModule = new CopixTpl();
//if user is not connected :
if (1) {
// S'il y a un blog prevu a l'accueil
$dispBlog = false;
$getKernelLimitsIdBlog = Kernel::getKernelLimits('id_blog');
if ($getKernelLimitsIdBlog) {
_classInclude('blog|kernelblog');
if ($blog = _ioDao('blog|blog')->getBlogById($getKernelLimitsIdBlog)) {
// On v�rifie qu'il y a au moins un article
$stats = KernelBlog::getStats($blog->id_blog);
if ($stats['nbArticles']['value'] > 0) {
$dispBlog = true;
}
}
}
if ($dispBlog) {
//return CopixActionGroup::process ('blog|frontblog::getListArticle', array ('blog'=>$blog->url_blog));
return new CopixActionReturn(COPIX_AR_REDIRECT, CopixUrl::get('blog||', array('blog' => $blog->url_blog)));
}
if (!CopixConfig::exists('|can_public_rssfeed') || CopixConfig::get('|can_public_rssfeed')) {
CopixHtmlHeader::addOthers('<link rel="alternate" href="' . CopixUrl::get('public||rss', array()) . '" type="application/rss+xml" title="' . htmlentities(CopixI18N::get('public|public.rss.flux.title')) . '" />');
}
CopixHTMLHeader::addCSSLink(_resource("styles/module_fichesecoles.css"));
$tplModule->assign('user', _currentUser());
$result = $tplModule->fetch('welcome|welcome_' . CopixI18N::getLang() . '.tpl');
$tpl->assign('TITLE_PAGE', '' . CopixI18N::get('public|public.welcome.title'));
$tpl->assign('MAIN', $result);
return new CopixActionReturn(COPIX_AR_DISPLAY, $tpl);
}
}
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:34,代码来源:default.actiongroup.php
示例12: processSelectPage
public function processSelectPage()
{
$tpl = new CopixTpl();
$tpl->assign('TITLE_PAGE', CopixI18N::get('htmleditor.title.pageSelect'));
$tpl->assignZone('MAIN', 'htmleditor|SelectPage', array('onlyLastVersion' => 1, 'editorName' => CopixRequest::get('editorName', null, true), 'popup' => CopixRequest::get('popup', null, true)));
return new CopixActionReturn(CopixActionReturn::DISPLAY_IN, $tpl, '|blank.tpl');
}
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:7,代码来源:cmshtmlareatools.actiongroup.php
示例13: home
/**
* Accueil des stats
*
* @author Christophe Beyer <[email protected]>
* @since 2007/03/19
*/
public function home()
{
if (!Admin::canAdmin()) {
return CopixActionGroup::process('genericTools|Messages::getError', array('message' => CopixI18N::get('kernel|kernel.error.noRights'), 'back' => CopixUrl::get()));
}
$tpl = new CopixTpl();
$tpl->assign('TITLE_PAGE', CopixI18N::get('sysutils|admin.menu.stats'));
$tpl->assign('MENU', Admin::getMenu('stats'));
$tplStats = new CopixTpl();
$modules = Kernel::getAllModules();
$tab = array();
foreach ($modules as $mod_val) {
$arModulesPath = CopixConfig::instance()->arModulesPath;
foreach ($arModulesPath as $modulePath) {
$class_file = $modulePath . $mod_val . '/' . COPIX_CLASSES_DIR . 'kernel' . $mod_val . '.class.php';
if (!file_exists($class_file)) {
continue;
}
$module_class =& CopixClassesFactory::Create($mod_val . '|Kernel' . $mod_val);
//print_r($module_class);
if (!is_callable(array($module_class, 'getStatsRoot'))) {
continue;
}
//$classeModule = CopixClassesFactory::create("$label|Kernel$label");
$tab[$mod_val]['module_nom'] = Kernel::Code2Name('mod_' . $mod_val);
$tab[$mod_val]['stats'] = $module_class->getStatsRoot();
}
}
//print_r($tab);
$tplStats->assign('tab', $tab);
$tpl->assign('MAIN', $tplStats->fetch('sysutils|stats.modules.tpl'));
return new CopixActionReturn(COPIX_AR_DISPLAY, $tpl);
}
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:39,代码来源:stats.actiongroup.php
示例14: _createContent
/**
* Affiche les infos d'une classe (enseignant et �l�ves)
*
* @author Christophe Beyer <[email protected]>
* @since 2006/01/18
* @param integer $rClasse Recordset de la classe
*/
public function _createContent(&$toReturn)
{
$tpl = new CopixTpl();
$annuaireService =& CopixClassesFactory::Create('annuaire|AnnuaireService');
$rClasse = $this->getParam('rClasse') ? $this->getParam('rClasse') : NULL;
if ($rClasse) {
$classe = $rClasse['id'];
$enseignants = $annuaireService->getEnseignantInClasse($classe);
$eleves = $annuaireService->getElevesInClasse($classe);
$rClasse["eleves"] = $eleves;
$rClasse["enseignants"] = $enseignants;
$matrix =& enic::get('matrixCache');
$matrix->display();
$droit = $matrix->classe($classe)->_right->USER_ENS->voir;
if (!$droit) {
$rClasse["enseignants"] = 'NONE';
}
$canWrite = $matrix->classe($classe)->_right->USER_ENS->communiquer;
$tpl->assign('canWriteUSER_ENS', $canWrite);
$droit = $matrix->classe($classe)->_right->USER_ELE->voir;
if (!$droit) {
$rClasse["eleves"] = 'NONE';
}
$canWrite = $matrix->classe($classe)->_right->USER_ELE->communiquer;
$tpl->assign('canWriteUSER_ELE', $canWrite);
$tpl->assign('classe', $rClasse);
$toReturn = $tpl->fetch('infosclasse.tpl');
}
return true;
}
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:37,代码来源:infosclasse.zone.php
示例15: _createContent
/**
* Affiche le chemin d'accès à une discussion ou un forum, depuis la racine d'un forum
*
* Les paramètres dépendent de la navigation dans le forum (il suffit de passer un paramètre)
*
* @author Christophe Beyer <[email protected]>
* @since 2005/11/08
* @param integer $forum Id du forum
* @param integer $topic Id de la discussion
* @param integer $message Id du message
* @param integer $modifyTopic Id de la discussion (formulaire de modification)
*/
public function _createContent(&$toReturn)
{
$tpl = new CopixTpl();
$forum = $this->getParam('forum') ? $this->getParam('forum') : NULL;
$topic = $this->getParam('topic') ? $this->getParam('topic') : NULL;
$message = $this->getParam('message') ? $this->getParam('message') : NULL;
$modifyTopic = $this->getParam('modifyTopic') ? $this->getParam('modifyTopic') : NULL;
$res = array();
if ($forum) {
$res[] = array("libelle" => CopixI18N::get('forum|forum.poucetIndex'), "lien" => CopixUrl::get('forum||getForum', array("id" => $forum->id)));
} elseif ($topic) {
$res[] = array("libelle" => CopixI18N::get('forum|forum.poucetIndex'), "lien" => CopixUrl::get('forum||getForum', array("id" => $topic->forum)));
$res[] = array("libelle" => $topic->titre, "lien" => CopixUrl::get('forum||getTopic', array("id" => $topic->id)));
} elseif ($message) {
$res[] = array("libelle" => CopixI18N::get('forum|forum.poucetIndex'), "lien" => CopixUrl::get('forum||getForum', array("id" => $message->forum)));
$res[] = array("libelle" => $message->topic_titre, "lien" => CopixUrl::get('forum||getTopic', array("id" => $message->topic)));
} elseif ($modifyTopic) {
//print_r($modifyTopic);
$res[] = array("libelle" => CopixI18N::get('forum|forum.poucetIndex'), "lien" => CopixUrl::get('forum||getForum', array("id" => $modifyTopic->forum)));
$res[] = array("libelle" => $modifyTopic->titre, "lien" => CopixUrl::get('forum||getTopic', array("id" => $modifyTopic->id)));
}
$tpl->assign('petitpoucet', $res);
// retour de la fonction :
$toReturn = $tpl->fetch('petitpoucet.tpl');
return true;
}
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:38,代码来源:petitpoucet.zone.php
示例16: _createContent
public function _createContent(&$toReturn)
{
$tpl = new CopixTpl();
$module_type = $this->getParam('module_type');
$module_id = $this->getParam('module_id');
$action = $this->getParam('action');
$date_debut = $this->getParam('date_debut', null);
$date_fin = $this->getParam('date_fin', null);
$dao = _dao('stats|logs');
$stats = $dao->getStatsModuleAction(array('module_type' => $module_type, 'module_id' => $module_id, 'action' => $action, 'date_debut' => $date_debut, 'date_fin' => $date_fin));
//print_r($stats);
foreach ($stats as $k => $s) {
// Détection du nom Copix du module
list(, $module) = explode("_", strtolower($module_type));
$class = CopixClassesFactory::create("{$module}|Stats{$module}");
$obj = $class->getObjet($action, $s->objet_a);
//print_r($obj);
$stats[$k]->objet_name = isset($obj->name) ? $obj->name : '';
}
$tpl->assign('name', CopixI18N::get('stats.action.' . $module_type . '-' . $action));
$tpl->assign('stats', $stats);
//$tpl->assign ('canWriteOnline' , BlogAuth::canMakeInBlog('ADMIN_ARTICLE_MAKE_ONLINE',create_blog_object($id_blog)));
// retour de la fonction :
$toReturn = $tpl->fetch('module.action.tpl');
return true;
}
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:26,代码来源:moduleaction.zone.php
示例17: _createContent
public function _createContent(&$toReturn)
{
$tpl = new CopixTpl();
$blog = $this->getParam('blog', '');
$tpl->assign('blog', $blog);
$toReturn = $tpl->fetch('listsearch.tpl');
return true;
}
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:8,代码来源:listsearch.zone.php
示例18: _createContent
public function _createContent(&$toReturn)
{
$tpl = new CopixTpl();
$tpl->assign('childs', $this->getParam('childs'));
$tpl->assign('type', $this->getParam('type'));
$tpl->assign('id', $this->getParam('id'));
$toReturn = $tpl->fetch('userlist.tpl');
return true;
}
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:9,代码来源:userlist.zone.php
示例19: _createContent
public function _createContent(&$toReturn)
{
$tpl = new CopixTpl();
$blog = $this->getParam('blog', '');
$dao = _dao('blog|bloglink');
$tpl->assign('listLink', $dao->getAllLinksFromBlog($blog->id_blog));
$toReturn = $tpl->fetch('listlink.tpl');
return true;
}
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:9,代码来源:listlink.zone.php
示例20: _createContent
public function _createContent(&$toReturn)
{
$tpl = new CopixTpl();
$tpl->assign('content', $this->service('mailextService')->getConf());
$tpl->assign('urlmail', $this->url('mailext|mailext|getMsg'));
$toReturn = $tpl->fetch('mailext|showmsg.tpl');
$this->addCss('styles/module_mailext.css');
return true;
}
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:9,代码来源:showmail.zone.php
注:本文中的CopixTpl类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论