本文整理汇总了PHP中JoomleagueHelper::getProjectteams方法的典型用法代码示例。如果您正苦于以下问题:PHP JoomleagueHelper::getProjectteams方法的具体用法?PHP JoomleagueHelper::getProjectteams怎么用?PHP JoomleagueHelper::getProjectteams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JoomleagueHelper
的用法示例。
在下文中一共展示了JoomleagueHelper::getProjectteams方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}