本文整理汇总了PHP中JoomleagueHelper类的典型用法代码示例。如果您正苦于以下问题:PHP JoomleagueHelper类的具体用法?PHP JoomleagueHelper怎么用?PHP JoomleagueHelper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了JoomleagueHelper类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: _displayModal
function _displayModal($tpl)
{
$mainframe = JFactory::getApplication();
// 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->assignRef('lists', $lists);
$this->assignRef('project_id', $proj_id);
parent::display($tpl);
}
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:29,代码来源:view.html.php
示例2: display
public function display($tpl = null)
{
$app = JFactory::getApplication();
$jinput = $app->input;
$option = $jinput->getCmd('option');
$uri = JFactory::getURI();
$lists = array();
$filter_order = $app->getUserStateFromRequest($this->get('context') . '.filter_order', 'filter_order', 's.ordering', 'cmd');
$filter_order_Dir = $app->getUserStateFromRequest($this->get('context') . '.filter_order_Dir', 'filter_order_Dir', '', 'word');
$filter_state = $app->getUserStateFromRequest($this->get('context') . '.filter_state', 'filter_state', 'P', 'word');
$search = $app->getUserStateFromRequest($this->get('context') . '.search', 'search', '', 'string');
$search = JString::strtolower($search);
$items = $this->get('Data');
$total = $this->get('Total');
$pagination = $this->get('Pagination');
// state filter
$lists['state'] = JoomleagueHelper::stateOptions($filter_state);
// table ordering
$lists['order_Dir'] = $filter_order_Dir;
$lists['order'] = $filter_order;
// search filter
$lists['search'] = $search;
$this->user = JFactory::getUser();
$this->lists = $lists;
$this->items = $items;
$this->pagination = $pagination;
$this->request_url = $uri->toString();
$this->addToolbar();
parent::display($tpl);
}
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:30,代码来源:view.html.php
示例3: display
function display($tpl = null)
{
// Get a refrence of the page instance in joomla
$document = JFactory::getDocument();
$version = urlencode(JoomleagueHelper::getVersion());
$css = 'components/com_joomleague/assets/css/tabs.css?v=' . $version;
$document->addStyleSheet($css);
// Joomleague model
$model = $this->getModel();
$user = JFactory::getUser();
$rankingconfig = $model->getTemplateConfig("ranking");
$this->assignRef('project', $model->getProject());
$this->assignRef('overallconfig', $model->getTemplateConfig('overall'));
$this->assignRef('rankingconfig', $rankingconfig);
$this->assignRef('playgrounds', $model->getPlaygrounds());
$this->assignRef('match', $model->getMatch());
$this->assignRef('team1', $model->getTeaminfo($this->match->projectteam1_id));
$this->assignRef('team2', $model->getTeaminfo($this->match->projectteam2_id));
$isAllowed = $model->isAllowed() || $model->isMatchAdmin($this->match->id, $user->id);
$this->assignRef('showediticon', $isAllowed);
//echo '<br /><pre>~' . print_r( $this->match, true ) . '~</pre><br />';
// extended match data
$xmlfile = JLG_PATH_ADMIN . DS . 'assets' . DS . 'extended' . DS . 'match.xml';
$jRegistry = new JRegistry();
$jRegistry->loadString($this->match->extended, 'ini');
$extended =& JForm::getInstance('extended', $xmlfile, array('control' => 'extended'), false, '/config');
$extended->bind($jRegistry);
$lists = array();
// build the html select booleanlist for cancel
$lists['cancel'] = JHTML::_('select.booleanlist', 'cancel', 'class="inputbox"', $this->match->cancel);
$playgrounds[] = JHTML::_('select.option', '0', JText::_('COM_JOOMLEAGUE_GLOBAL_SELECT_PLAYGROUND'));
if (!empty($this->playgrounds)) {
$playgrounds = array_merge($playgrounds, $this->playgrounds);
}
$lists['playgrounds'] = JHTML::_('select.genericlist', $playgrounds, 'playground_id', 'class="inputbox" size="1"', 'value', 'text', $this->match->playground_id);
//match relation lists
//$mdlMatch = $model->getMatch();
$oldmatches[] = JHTML::_('select.option', '0', JText::_('COM_JOOMLEAGUE_EDITMATCH_SELECT_PREV_MATCH'));
$res = array();
$new_match_id = $this->match->new_match_id ? $this->match->new_match_id : 0;
if ($res =& $model->getMatchRelationsOptions($this->project->id, $this->match->id . "," . $new_match_id)) {
$oldmatches = array_merge($oldmatches, $res);
}
unset($res);
$lists['old_match'] = JHTML::_('select.genericlist', $oldmatches, 'old_match_id', 'class="inputbox" size="1"', 'value', 'text', $this->match->old_match_id);
$newmatches[] = JHTML::_('select.option', '0', JText::_('COM_JOOMLEAGUE_EDITMATCH_SELECT_NEW_MATCH'));
$res = array();
$old_match_id = $this->match->old_match_id ? $this->match->old_match_id : 0;
if ($res =& $model->getMatchRelationsOptions($this->project->id, $this->match->id . "," . $old_match_id)) {
$newmatches = array_merge($newmatches, $res);
}
unset($res);
$lists['new_match'] = JHTML::_('select.genericlist', $newmatches, 'new_match_id', 'class="inputbox" size="1"', 'value', 'text', $this->match->new_match_id);
$this->assignRef('form', $this->get('form'));
$this->assignRef('extended', $extended);
$this->assignRef('lists', $lists);
$pageTitle = JText::_('COM_JOOMLEAGUE_EDITMATCH_MATCHDETAILS');
$document->setTitle($pageTitle);
parent::display($tpl);
}
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:60,代码来源:view.html.php
示例4: getExtensions
public function getExtensions()
{
if (!$this->extensions) {
$this->extensions = JoomleagueHelper::getExtensions($this->input->getInt('p', 0));
}
return $this->extensions;
}
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:7,代码来源:extensioncontroller.php
示例5: display
public function display($tpl = null)
{
// Get a refrence of the page instance in joomla
$document = JFactory::getDocument();
$model = $this->getModel();
$config = $model->getTemplateConfig($this->getName());
if (!$config) {
$config = $model->getTemplateConfig('players');
}
$this->project = $model->getProject();
$this->overallconfig = $model->getOverallConfig();
$this->config = $config;
$this->rows = $model->getReferees();
// $this->positioneventtypes = $model->getPositionEventTypes( ) );
// Set page title
$titleInfo = JoomleagueHelper::createTitleInfo(JText::_('COM_JOOMLEAGUE_REFEREES_PAGE_TITLE'));
if (!empty($this->project)) {
$titleInfo->projectName = $this->project->name;
$titleInfo->leagueName = $this->project->league_name;
$titleInfo->seasonName = $this->project->season_name;
}
$division = $model->getDivision(JRequest::getInt('division', 0));
if (!empty($division) && $division->id != 0) {
$titleInfo->divisionName = $division->name;
}
$this->pagetitle = JoomleagueHelper::formatTitle($titleInfo, $this->config["page_title_format"]);
$document->setTitle($this->pagetitle);
parent::display($tpl);
}
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:29,代码来源:view.html.php
示例6: createView
/**
* Overrides method to first lookup into potential extension for the view.
*/
protected function createView($name, $prefix = '', $type = '', $config = array())
{
$extensions = JoomleagueHelper::getExtensions(JRequest::getInt('p'));
foreach ($extensions as $e => $extension) {
$result = null;
// Clean the view name
$viewName = preg_replace('/[^A-Z0-9_]/i', '', $name);
$classPrefix = preg_replace('/[^A-Z0-9_]/i', '', $prefix);
$viewType = preg_replace('/[^A-Z0-9_]/i', '', $type);
// Build the view class name
$viewClassExtension = $classPrefix . $viewName . ucfirst($extension);
if (!class_exists($viewClassExtension)) {
jimport('joomla.filesystem.path');
$path = JPath::find($this->paths['view'], $this->createFileName('view', array('name' => $viewName, 'type' => $viewType)));
if ($path) {
require_once $path;
if (class_exists($viewClassExtension)) {
$result = new $viewClassExtension($config);
return $result;
}
}
} else {
$result = new $viewClassExtension($config);
return $result;
}
}
// Still here ? Then the extension doesn't override this, use regular view
return parent::createView($name, $prefix, $type, $config);
}
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:32,代码来源:jlgcontroller.php
示例7: display
function display($tpl = null)
{
// Get a refrence of the page instance in joomla
$document = JFactory::getDocument();
$model = $this->getModel();
$project = $model->getProject();
//no treeko !!!
$config = $model->getTemplateConfig('tree');
$this->project = $model->getProject();
$this->overallconfig = $model->getOverallConfig();
$this->config = $config;
$this->node = $model->getTreetonode();
$this->roundname = $model->getRoundName();
$this->model = $model;
// Set page title
///TODO: treeto name, no project name
$titleInfo = JoomleagueHelper::createTitleInfo(JText::_('COM_JOOMLEAGUE_TREETO_PAGE_TITLE'));
if (!empty($this->project)) {
$titleInfo->projectName = $this->project->name;
$titleInfo->leagueName = $this->project->league_name;
$titleInfo->seasonName = $this->project->season_name;
}
$division = $model->getDivision(JRequest::getInt('division', 0));
if (!empty($division) && $division->id != 0) {
$titleInfo->divisionName = $division->name;
}
$this->pagetitle = JoomleagueHelper::formatTitle($titleInfo, $this->config["page_title_format"]);
$document->setTitle($this->pagetitle);
parent::display($tpl);
}
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:30,代码来源:view.html.php
示例8: display
function display($tpl = null)
{
$document = JFactory::getDocument();
$document->link = JRoute::_('index.php?option=com_joomleague');
$model = $this->getModel();
$config = $model->getTemplateConfig($this->getName());
$this->config = $config;
$this->overallconfig = $model->getOverallConfig();
$this->homematches = $model->getHomeMatches($config['HomeMatchesOrderBy']);
$this->awaymatches = $model->getAwayMatches($config['AwayMatchesOrderBy']);
$this->project = $model->getProject();
$this->matches = array_merge($this->homematches, $this->awaymatches);
foreach ($this->matches as $game) {
$item = new JFeedItem();
$team1 = $game->tname1;
$team2 = $game->tname2;
$date = $game->match_date ? JoomleagueHelper::getMatchDate($game, 'r') : '';
$result = $game->cancel > 0 ? $game->cancel_reason : $game->team1_result . "-" . $game->team2_result;
if (!empty($game->team1_result)) {
$link = 'index.php?option=com_joomleague&view=matchreport&p=';
} else {
$link = 'index.php?option=com_joomleague&view=nextmatch&p=';
}
$item->title = $team1 . " - " . $team2 . " : " . $result;
$item->link = JRoute::_($link . $game->project_id . '&mid=' . $game->id);
$item->description = $game->summary;
$item->date = $date;
$item->category = "clubplan";
// loads item info into rss array
$document->addItem($item);
}
}
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:32,代码来源:view.feed.php
示例9: array
/**
* Overrides method to try to load model from extension if it exists
*/
public static function &getInstance($type, $prefix = '', $config = array())
{
$extensions = JoomleagueHelper::getExtensions(JRequest::getInt('p'));
foreach ($extensions as $e => $extension) {
$modelType = preg_replace('/[^A-Z0-9_\\.-]/i', '', $type);
$modelClass = $prefix . ucfirst($modelType) . ucfirst($extension);
$result = false;
if (!class_exists($modelClass)) {
jimport('joomla.filesystem.path');
$path = JPath::find(JModel::addIncludePath(), JModel::_createFileName('model', array('name' => $modelType)));
if ($path) {
require_once $path;
if (class_exists($modelClass)) {
$result = new $modelClass($config);
return $result;
}
}
} else {
$result = new $modelClass($config);
return $result;
}
}
$instance = parent::getInstance($type, $prefix, $config);
return $instance;
}
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:28,代码来源:jlgmodel.php
示例10: getInstance
/**
* Overrides method to try to load model from extension if it exists
*/
public static function getInstance($type, $prefix = '', $config = array())
{
$extensions = JoomleagueHelper::getExtensions(JRequest::getInt('p'));
foreach ($extensions as $e => $extension) {
$modelType = preg_replace('/[^A-Z0-9_\\.-]/i', '', $type);
$modelClass = $prefix . ucfirst($modelType) . ucfirst($extension);
$result = false;
if (!class_exists($modelClass)) {
jimport('joomla.filesystem.path');
$path = JPath::find(parent::addIncludePath(null, $prefix), self::_createFileName('model', array('name' => $type)));
if (!$path) {
$path = JPath::find(parent::addIncludePath(null, ''), self::_createFileName('model', array('name' => $type)));
}
if ($path) {
require_once $path;
if (class_exists($modelClass)) {
$result = new $modelClass($config);
return $result;
}
}
} else {
$result = new $modelClass($config);
return $result;
}
}
// Still here ? Then the extension doesn't override this, use regular way
return parent::getInstance($type, $prefix, $config);
}
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:31,代码来源:jlgmodel.php
示例11: sortByDate
/**
* return an array of matches indexed by date
*
* @return array
*/
public function sortByDate()
{
$dates = array();
foreach ((array) $this->matches as $m) {
$matchDate = JoomleagueHelper::getMatchDate($m);
$dates[$matchDate][] = $m;
}
return $dates;
}
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:14,代码来源:view.feed.php
示例12: export
/**
* Method to export one or more events
*
* @access public
* @return boolean True on success
* @since 1.5.0a
*/
function export($cid = array(), $table, $record_name)
{
$result = false;
if (count($cid)) {
$mdlJLXExports = JModel::getInstance("jlxmlexports", 'JoomleagueModel');
JArrayHelper::toInteger($cid);
$cids = implode(',', $cid);
$query = "SELECT * FROM #__joomleague_eventtype WHERE id IN ({$cids})";
$this->_db->setQuery($query);
$exportData = $this->_db->loadObjectList();
$SportsTypeArray = array();
$x = 0;
foreach ($exportData as $event) {
$SportsTypeArray[$x] = $event->sports_type_id;
}
$st_cids = implode(',', $SportsTypeArray);
$query = "SELECT * FROM #__joomleague_sports_type WHERE id IN ({$st_cids})";
$this->_db->setQuery($query);
$exportDataSportsType = $this->_db->loadObjectList();
$output = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
// open the events
$output .= "<events>\n";
$output .= $mdlJLXExports->_addToXml($mdlJLXExports->_getJoomLeagueVersion());
$record_name = 'SportsType';
//$tabVar=' ';
$tabVar = ' ';
foreach ($exportDataSportsType as $name => $value) {
$output .= "<record object=\"" . JoomleagueHelper::stripInvalidXml($record_name) . "\">\n";
foreach ($value as $name2 => $value2) {
if ($name2 != 'checked_out' && $name2 != 'checked_out_time') {
$output .= $tabVar . '<' . $name2 . '><![CDATA[' . JoomleagueHelper::stripInvalidXml(trim($value2)) . ']]></' . $name2 . ">\n";
}
}
$output .= "</record>\n";
}
unset($name, $value);
$record_name = 'EventType';
foreach ($exportData as $name => $value) {
$output .= "<record object=\"" . JoomleagueHelper::stripInvalidXml($record_name) . "\">\n";
foreach ($value as $name2 => $value2) {
if ($name2 != 'checked_out' && $name2 != 'checked_out_time') {
$output .= $tabVar . '<' . $name2 . '><![CDATA[' . JoomleagueHelper::stripInvalidXml(trim($value2)) . ']]></' . $name2 . ">\n";
}
}
$output .= "</record>\n";
}
unset($name, $value);
// close events
$output .= '</events>';
$mdlJLXExports = JModel::getInstance("jlxmlexports", 'JoomleagueModel');
$mdlJLXExports->downloadXml($output, $table);
// close the application
$app = JFactory::getApplication();
$app->close();
}
return true;
}
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:64,代码来源:eventtype.php
示例13: display
function display($tpl = null)
{
$option = JRequest::getCmd('option');
$app = JFactory::getApplication();
$uri = JFactory::getURI();
$user = JFactory::getUser();
$mainframe =& JFactory::getApplication();
$model = $this->getModel();
$lists = array();
//get template data
$template =& $this->get('data');
$isNew = $template->id < 1;
// fail if checked out not by 'me'
if ($model->isCheckedOut($user->get('id'))) {
$msg = JText::sprintf('DESCBEINGEDITTED', JText::_('COM_JOOMLEAGUE_ADMIN_TEMPLATE_THETEMPLATE'), $template->name);
$app->redirect('index.php?option=' . $option, $msg);
}
$projectws =& $this->get('Data', 'projectws');
$templatepath = JPATH_COMPONENT_SITE . DS . 'settings';
$xmlfile = $templatepath . DS . 'default' . DS . $template->template . '.xml';
$mainframe->setUserState($option . 'template_help', $template->template);
$extensions = JoomleagueHelper::getExtensions(JRequest::getInt('p'));
foreach ($extensions as $e => $extension) {
$extensiontpath = JPATH_COMPONENT_SITE . DS . 'extensions' . DS . $extension;
if (is_dir($extensiontpath . DS . 'settings' . DS . 'default')) {
if (file_exists($extensiontpath . DS . 'settings' . DS . 'default' . DS . $template->template . '.xml')) {
$xmlfile = $extensiontpath . DS . 'settings' . DS . 'default' . DS . $template->template . '.xml';
}
}
}
$jRegistry = new JRegistry();
$jRegistry->loadString($template->params, 'ini');
$form =& JForm::getInstance($template->template, $xmlfile, array('control' => 'params'));
$form->bind($jRegistry);
$form_value = $form->getValue('person_events');
if ($form_value) {
$form->setValue('person_events', null, explode(",", $form_value));
}
$master_id = $projectws->master_template ? $projectws->master_template : '-1';
$templates = array();
//$templates[]=JHTML::_('select.option','0',JText::_('COM_JOOMLEAGUE_ADMIN_TEMPLATE_OTHER_TEMPLATE' ),'value','text');
if ($res = $model->getAllTemplatesList($projectws->id, $master_id)) {
$templates = array_merge($templates, $res);
}
$lists['templates'] = JHTMLSelect::genericlist($templates, 'select_id', 'class="inputbox" size="1" onchange="javascript: Joomla.submitbutton(\'template.apply\');"', 'value', 'text', $template->id);
unset($res);
unset($templates);
$this->assignRef('request_url', $uri->toString());
$this->assignRef('template', $template);
$this->assignRef('form', $form);
$this->assignRef('project', $projectws);
$this->assignRef('lists', $lists);
$this->assignRef('user', $user);
$this->addToolbar();
parent::display($tpl);
}
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:56,代码来源:view.html.php
示例14: getData
public function getData()
{
$data = parent::getData();
if ($data) {
foreach ($data as $match) {
JoomleagueHelper::convertMatchDateToTimezone($match);
}
}
return $data;
}
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:10,代码来源:matches.php
示例15: getAbout
function getAbout()
{
$about = new stdClass();
//Translations Hosted by
$about->translations = '<a href="https://opentranslators.transifex.com/projects/p/joomleague/">https://opentranslators.transifex.com/projects/p/joomleague/</a>';
//Repository Hosted by
$about->repository = '<a href="http://gitorious.org/joomleague">http://gitorious.org/joomleague</a>';
//version
$version = JoomleagueHelper::getVersion();
$revision = explode('.', $version);
$about->version = '<a href="http://gitorious.org/joomleague/joomleague/commits/' . $revision[0] . '.' . $revision[1] . '.0/">' . $version . '</a>';
//author
$about->author = '<a href="http://stats.joomleague.net/authors.html">Joomleague-Team</a>';
//page
$about->page = 'http://www.joomleague.net';
//e-mail
$about->email = 'http://www.JoomLeague.net/forum/index.php?action=contact';
//forum
$about->forum = 'http://forum.joomleague.net';
//bugtracker
$about->bugs = 'http://bugtracker.joomleague.net';
//wiki
$about->wiki = 'http://wiki.joomleague.net';
//date
$about->date = '2013-01-07';
//developer
$about->developer = '<a href="http://stats.joomleague.net/authors.html" target="_blank">JoomLeague-Team</a>';
/*
//designer
$about->designer = 'Kasi';
$about->designer .= ', <a href="http://www.cg-design.net" target="_blank">cg design</a> (Carsten Grob) ';
*/
//designer
$about->designer = 'DonClumsy';
$about->designer .= ', (Tim Keller) ';
//icons
$about->icons = '<a href="http://www.hollandsevelden.nl/iconset/" target="_blank">Jersey Icons</a> (Hollandsevelden.nl)';
$about->icons .= ', <a href="http://www.famfamfam.com/lab/icons/silk/" target="_blank">Silk / Flags Icons</a> (Mark James)';
$about->icons .= ', Panel images (Kasi)';
//flash
$about->flash = '<a href="http://teethgrinder.co.uk/open-flash-chart-2/" target="_blank">Open Flash Chart 2.x</a>';
//graphoc library
$about->graphic_library = '<a href="http://www.walterzorn.com" target="_blank">www.walterzorn.com</a>';
//phpthumb class
$about->phpthumb = '<a href="http://phpthumb.gxdlabs.com/" target="_blank">phpthumb.gxdlabs.com</a>';
//page
$about->github = 'https://github.com/diddipoeler/joomleague-2-komplettpaket';
$about->diddipoelerpage = 'http://www.fussballineuropa.de';
//e-mail
$about->diddipoeleremail = '[email protected]';
//forum
$about->diddipoelerforum = 'http://www.fussballineuropa.de/index.php?option=com_kunena&view=category&catid=247&Itemid=530';
$this->_about = $about;
return $this->_about;
}
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:55,代码来源:about.php
示例16: getStaffLink
public static function getStaffLink($item, $params)
{
$flag = "";
if ($params->get('show_flag')) {
$flag = Countries::getCountryFlag($item->country) . " ";
}
$text = "<i>" . JoomleagueHelper::formatName(null, $item->firstname, $item->nickname, $item->lastname, $params->get("name_format")) . "</i>";
if ($params->get('show_staff_link')) {
$link = JoomleagueHelperRoute::getStaffRoute($params->get('p'), $params->get('team'), $item->slug);
echo $flag . JHtml::link($link, $text);
} else {
echo '<i>' . JText::sprintf('%1$s', $flag . $text) . '</i>';
}
}
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:14,代码来源:helper.php
示例17: _displayPopulate
function _displayPopulate($tpl)
{
$app = JFactory::getApplication();
$document = Jfactory::getDocument();
$uri = JFactory::getURI();
$model = $this->getModel();
$projectws =& $this->get('Data', 'projectws');
$document->setTitle(JText::_('COM_JOOMLEAGUE_ADMIN_ROUNDS_POPULATE_TITLE'));
$version = urlencode(JoomleagueHelper::getVersion());
$document->addScript('components/com_joomleague/assets/js/populate.js?v=' . $version);
$lists = array();
$options = array(JHTML::_('select.option', 0, Jtext::_('COM_JOOMLEAGUE_ADMIN_ROUNDS_POPULATE_TYPE_SINGLE_ROUND_ROBIN')), JHTML::_('select.option', 1, Jtext::_('COM_JOOMLEAGUE_ADMIN_ROUNDS_POPULATE_TYPE_DOUBLE_ROUND_ROBIN')), JHTML::_('select.option', 2, Jtext::_('COM_JOOMLEAGUE_ADMIN_ROUNDS_POPULATE_TYPE_TOURNAMENT_ROUND_ROBIN')));
$lists['scheduling'] = JHTML::_('select.genericlist', $options, 'scheduling', '', 'value', 'text');
//TODO-add error message - what if there are no teams assigned to the project
$teams = $this->get('projectteams');
$options = array();
foreach ($teams as $t) {
$options[] = JHTML::_('select.option', $t->projectteam_id, $t->text);
}
$lists['teamsorder'] = JHTML::_('select.genericlist', $options, 'teamsorder[]', 'multiple="multiple" size="20"');
$this->assignRef('projectws', $projectws);
$this->assignRef('request_url', $uri->toString());
$this->assignRef('lists', $lists);
$this->addToolbar_Populate();
parent::display($tpl);
}
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:26,代码来源:view.html.php
注:本文中的JoomleagueHelper类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论