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


PHP JoomleagueHelper::getProjects方法代码示例

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


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

示例1: _displayModal

 function _displayModal($tpl)
 {
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PERSON_ASSIGN_DESCR'));
     // Do not allow cache
     JResponse::allowCache(false);
     $document = JFactory::getDocument();
     $prjid = array();
     $prjid = JRequest::getVar('prjid', array(0), 'post', 'array');
     $proj_id = (int) $prjid[0];
     //build the html select list for projects
     $projects[] = JHtml::_('select.option', '0', JText::_('COM_JOOMLEAGUE_GLOBAL_SELECT_PROJECT'), 'id', 'name');
     if ($res = JoomleagueHelper::getProjects()) {
         $projects = array_merge($projects, $res);
     }
     $lists['projects'] = JHtmlSelect::genericlist($projects, 'prjid[]', 'class="inputbox" onChange="this.form.submit();" style="width:170px"', 'id', 'name', $proj_id);
     unset($projects);
     $projectteams[] = JHtmlSelect::option('0', JText::_('COM_JOOMLEAGUE_GLOBAL_SELECT_TEAM'), 'value', 'text');
     // if a project is active we show the teams select list
     if ($proj_id > 0) {
         if ($res = JoomleagueHelper::getProjectteams($proj_id)) {
             $projectteams = array_merge($projectteams, $res);
         }
         $lists['projectteams'] = JHtmlSelect::genericlist($projectteams, 'xtid[]', 'class="inputbox" style="width:170px"', 'value', 'text');
         unset($projectteams);
     }
     $this->lists = $lists;
     $this->project_id = $proj_id;
     parent::display($tpl);
 }
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:29,代码来源:view.html.php

示例2: _displayCopy

 /**
  * 
  * Enter description here ...
  * @param unknown_type $tpl
  */
 function _displayCopy($tpl)
 {
     $document = JFactory::getDocument();
     $option = JRequest::getCmd('option');
     $mainframe = JFactory::getApplication();
     $project_id = $mainframe->getUserState($option . 'project');
     $uri = JFactory::getURI();
     $ptids = JRequest::getVar('cid', array(), 'post', 'array');
     $model = $this->getModel();
     $lists = array();
     //build the html select list for all teams
     $options = JoomleagueHelper::getProjects();
     $lists['projects'] = JHTML::_('select.genericlist', $options, 'dest', '', 'id', 'name');
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PROJECTTEAMS_COPY_DEST'), 'Teams');
     JLToolBarHelper::apply('projectteam.copy');
     JToolBarHelper::back();
     $this->assignRef('ptids', $ptids);
     $this->assignRef('lists', $lists);
     $this->assignRef('request_url', $uri->toString());
     parent::display($tpl);
 }
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:26,代码来源:view.html.php

示例3: _displayCopy

 /**
  * 
  * Enter description here ...
  * @param unknown_type $tpl
  */
 function _displayCopy($tpl)
 {
     $document = JFactory::getDocument();
     $app = JFactory::getApplication();
     $jinput = $app->input;
     $option = $jinput->getCmd('option');
     $project_id = $app->getUserState($option . 'project');
     $uri = JFactory::getURI();
     $ptids = JRequest::getVar('cid', array(), 'post', 'array');
     $model = $this->getModel();
     $lists = array();
     // build the html select list for all Projects
     $ignoreId = $project_id;
     $options = JoomleagueHelper::getProjects($ignoreId);
     $lists['projects'] = JHtml::_('select.genericlist', $options, 'dest', '', 'id', 'name');
     JToolBarHelper::title(JText::_('COM_JOOMLEAGUE_ADMIN_PROJECTTEAMS_COPY_DEST'), 'Teams');
     JLToolBarHelper::apply('projectteam.copy');
     JToolBarHelper::back();
     $this->ptids = $ptids;
     $this->lists = $lists;
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:28,代码来源:view.html.php


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