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


PHP CopixTpl::assign方法代码示例

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


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

示例1: 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

示例2: _createContent

 /**
  * Affiche les infos d'une classe (enseignant et �l�ves)
  *
  * @author Christophe Beyer <cbeyer@cap-tic.fr>
  * @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

示例3: _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

示例4: _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

示例5: _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

示例6: 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') . " &raquo; " . 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

示例7: getMagicMail

 /**
  * Configuration de MagicMail
  *
  * @author Frederic Mossmann <fmossmann@cap-tic.fr>
  * @since 2006/08/09
  */
 public function getMagicMail()
 {
     $id = _request("id");
     if (Kernel::getLevel("MOD_MAGICMAIL", $id) < PROFILE_CCV_ADMIN) {
         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('magicmail.message.title'));
     $dao = CopixDAOFactory::create("magicmail|magicmail");
     $magic_result = $dao->get($id);
     $tplForm = new CopixTpl();
     $tplForm->assign('id', $id);
     $tplForm->assign('infos', $magic_result);
     // $tplForm->assign ('magicmail_mail', CopixConfig::get ('magicmail|magicmail_mail'));
     if (_request("return")) {
         $tplForm->assign('return', _request("return"));
     }
     CopixHTMLHeader::addCSSLink(_resource("styles/module_prefs.css"));
     $tplForm->assign('msg', array('type' => 'ok', 'image_url' => _resource('img/prefs/smiley_black.png'), 'image_alt' => 'Ok !', 'value' => CopixI18N::get('prefs|prefs.msg.prefsrecorded')));
     $result = $tplForm->fetch("login_form.tpl");
     $tpl->assign("MAIN", $result);
     $menu = array();
     $tpl->assign('MENU', $menu);
     return new CopixActionReturn(COPIX_AR_DISPLAY, $tpl);
 }
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:31,代码来源:magicmail.actiongroup.php

示例8: test

 public function test()
 {
     $tpl = new CopixTpl();
     $tpl->assign('TITLE_PAGE', "Logs");
     $dao = CopixDAOFactory::create("logs|logs");
     $data = $dao->lastLogin('admin');
     $tpl->assign('MAIN', '<pre>' . print_r($data, true) . '</pre>');
     return new CopixActionReturn(COPIX_AR_DISPLAY, $tpl);
 }
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:9,代码来源:logs.actiongroup.php

示例9: _createContent

 public function _createContent(&$toReturn)
 {
     $tpl = new CopixTpl();
     $tpl->assign('user', $this->getParam('user'));
     $tpl->assign('mode', $this->getParam('mode'));
     $tpl->assign('errors', $this->getParam('errors'));
     $toReturn = $tpl->fetch('zonegetuserextform.tpl');
     return true;
 }
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:9,代码来源:getuserextform.zone.php

示例10: _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

示例11: processDefault

 /**
  * Ecran par défaut
  */
 public function processDefault()
 {
     $tpl = new CopixTpl();
     $tpl->assign('TITLE_BAR', CopixI18N::get('params.title'));
     $choiceModule = CopixRequest::get('choiceModule', false, true);
     $editParam = CopixRequest::get('editParam', false, true);
     $tpl->assign('TITLE_PAGE', CopixI18N::get('params.titlePage.admin'));
     $tpl->assignZone('MAIN', 'ShowParams', array('choiceModule' => $choiceModule, 'editParam' => $editParam));
     return _arDisplay($tpl);
 }
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:13,代码来源:parameters.actiongroup.php

示例12: _createContent

 public function _createContent(&$toReturn)
 {
     $tpl = new CopixTpl();
     $tpl->assign('users', $this->getParam('users'));
     $tpl->assign('type', $this->getParam('type'));
     $tpl->assign('id', $this->getParam('id'));
     $tpl->assign('reset', $this->getParam('reset'));
     $toReturn = $tpl->fetch('getloginform.tpl');
     return true;
 }
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:10,代码来源:loginform.zone.php

示例13: _createContent

 public function _createContent(&$toReturn)
 {
     $tpl = new CopixTpl();
     $auth_list = $this->getParam('list', NULL);
     $id = $this->getParam('id', NULL);
     $tpl->assign('auth_list', $auth_list);
     $tpl->assign('id', $id);
     $toReturn = $tpl->fetch('ssoauthlist_zone.tpl');
     return true;
 }
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:10,代码来源:ssoauthlist.zone.php

示例14: _createContent

 public function _createContent(&$toReturn)
 {
     $tpl = new CopixTpl();
     $blog = $this->getParam('blog', '');
     $dao = _dao('blog|blogarticle');
     $tpl->assign('listArchive', $dao->getAllArchivesFromBlog($blog->id_blog));
     $tpl->assign('blog', $blog);
     $toReturn = $tpl->fetch('listarchive.tpl');
     return true;
 }
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:10,代码来源:listarchive.zone.php

示例15: _createContent

 public function _createContent(&$toReturn)
 {
     $tpl = new CopixTpl();
     $motcle = $this->getParam('motcle');
     $clos = $this->getParam('clos');
     $type = $this->getParam('type');
     $ecole = $this->getParam('ecole');
     $rTelep = $this->getParam('rTelep');
     $admin = $this->getParam('admin');
     $mondroit = $this->getParam('mondroit');
     $daoType =& _dao('teleprocedures|type');
     $tpl->assign('arTypes', $daoType->findForTeleprocedure($rTelep->id));
     //print_r($rTelep);
     $canViewComboEcoles = TeleproceduresService::canMakeInTelep('VIEW_COMBO_ECOLES', $mondroit);
     if ($canViewComboEcoles) {
         $tpl->assign('comboEcolesLinesSup', array(0 => array('value' => '', 'libelle' => '---'), 1 => array('value' => '', 'libelle' => CopixI18N::get('annuaire|annuaire.comboAllEcoles'))));
     }
     $tpl->assign('rTelep', $rTelep);
     $tpl->assign('admin', $admin);
     $tpl->assign('motcle', $motcle);
     $tpl->assign('clos', $clos);
     $tpl->assign('type', $type);
     $tpl->assign('ecole', $ecole);
     $tpl->assign('canViewComboEcoles', $canViewComboEcoles);
     $toReturn = $tpl->fetch('filtre-zone.tpl');
     return true;
 }
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:27,代码来源:filtre.zone.php


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