本文整理汇总了PHP中JoomleagueHelperRoute类的典型用法代码示例。如果您正苦于以下问题:PHP JoomleagueHelperRoute类的具体用法?PHP JoomleagueHelperRoute怎么用?PHP JoomleagueHelperRoute使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了JoomleagueHelperRoute类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: _getShowClubInfoLink
private function _getShowClubInfoLink()
{
$p = JRequest::getInt("p", 0);
$cid = JRequest::getInt("cid", 0);
$link = JoomleagueHelperRoute::getClubInfoRoute($p, $cid);
return $link;
}
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:7,代码来源:clubinfo.php
示例2: save
function save()
{
JRequest::checkToken() or jexit(JText::_('COM_JOOMLEAGUE_GLOBAL_INVALID_TOKEN'));
$msg = '';
$link = '';
$post = JRequest::get('post');
$project_id = JRequest::getInt('p', 0);
$match_id = JRequest::getInt('mid', 0);
$changes = JRequest::getInt('changes_check', 0);
$model = $this->getModel('editevents');
$user = JFactory::getUser();
$post['playerpositions'] = $model->getProjectPositions(0, 1);
$post['staffpositions'] = $model->getProjectPositions(0, 2);
$post['refereepositions'] = $model->getProjectPositions(0, 3);
if ($changes && ($model->isAllowed() || $model->isMatchAdmin($match_id, $user->id))) {
if ($model->saveMatchStartingLineUps($post)) {
$msg .= JText::_('Changes on selected match were saved');
} else {
$msg .= JText::_('Error while saving changes on selected match');
}
} else {
$msg .= JText::_('Found any changes or you are no match admin. So nothing is saved!');
}
$link = JoomleagueHelperRoute::getEditEventsRouteNew($project_id, $match_id);
//echo '<br />'; echo $link; echo '<br />'; echo $msg; echo '<br />'; die();
$this->setRedirect($link, $msg);
}
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:27,代码来源:editevents.php
示例3: getTeamLink
public static function getTeamLink($item, $params, $project)
{
switch ($params->get('teamlink')) {
case 'teaminfo':
return JoomleagueHelperRoute::getTeamInfoRoute($project->slug, $item->team_slug);
case 'roster':
return JoomleagueHelperRoute::getPlayersRoute($project->slug, $item->team_slug);
case 'teamplan':
return JoomleagueHelperRoute::getTeamPlanRoute($project->slug, $item->team_slug);
case 'clubinfo':
return JoomleagueHelperRoute::getClubInfoRoute($project->slug, $item->club_slug);
}
}
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:13,代码来源:helper.php
示例4: getroute
public function getroute()
{
$view = Jrequest::getCmd('view');
switch ($view) {
case "matrix":
$link = JoomleagueHelperRoute::getMatrixRoute(JRequest::getVar('p'), JRequest::getVar('division'), JRequest::getVar('r'));
break;
case "teaminfo":
$link = JoomleagueHelperRoute::getTeamInfoRoute(JRequest::getVar('p'), JRequest::getVar('tid'));
break;
case "referees":
$link = JoomleagueHelperRoute::getRefereesRoute(JRequest::getVar('p'));
break;
case "results":
$link = JoomleagueHelperRoute::getResultsRoute(JRequest::getVar('p'), JRequest::getVar('r'), JRequest::getVar('division'));
break;
case "resultsranking":
$link = JoomleagueHelperRoute::getResultsRankingRoute(JRequest::getVar('p'));
break;
case "rankingmatrix":
$link = JoomleagueHelperRoute::getRankingMatrixRoute(JRequest::getVar('p'), JRequest::getVar('r'), JRequest::getVar('division'));
break;
case "resultsrankingmatrix":
$link = JoomleagueHelperRoute::getResultsRankingMatrixRoute(JRequest::getVar('p'), JRequest::getVar('r'), JRequest::getVar('division'));
break;
case "teamplan":
$link = JoomleagueHelperRoute::getTeamPlanRoute(JRequest::getVar('p'), JRequest::getVar('tid'), JRequest::getVar('division'));
break;
case "roster":
$link = JoomleagueHelperRoute::getPlayersRoute(JRequest::getVar('p'), JRequest::getVar('tid'), null, JRequest::getVar('division'));
break;
case "eventsranking":
$link = JoomleagueHelperRoute::getEventsRankingRoute(JRequest::getVar('p'), JRequest::getVar('division'), JRequest::getVar('tid'));
break;
case "curve":
$link = JoomleagueHelperRoute::getCurveRoute(JRequest::getVar('p'), JRequest::getVar('tid'), 0, JRequest::getVar('division'));
break;
case "statsranking":
$link = JoomleagueHelperRoute::getStatsRankingRoute(JRequest::getVar('p'), JRequest::getVar('division'));
break;
default:
case "ranking":
$link = JoomleagueHelperRoute::getRankingRoute(JRequest::getVar('p'), JRequest::getVar('r'), null, null, 0, JRequest::getVar('division'));
}
// echo json_encode($link);
// Use the correct json mime-type
header('Content-Type: application/json');
// Send the response.
echo json_encode($link);
JFactory::getApplication()->close();
}
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:51,代码来源:ajax.json.php
示例5: 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
示例6: getObjectInfo
function getObjectInfo($id, $language = null)
{
$info = new JCommentsObjectInfo();
$routerHelper = JPATH_SITE . '/components/com_joomleague/helpers/route.php';
if (is_file($routerHelper)) {
require_once $routerHelper;
$db = JFactory::getDBO();
$query = "SELECT m.id as matchid,\r\n\t\t\t\t\t\t\t\tt1.short_name t1name,\r\n\t\t\t\t\t\t\t\tt2.short_name t2name,\r\n\t\t\t\t\t\t\t\tm.projectteam1_id,\r\n\t\t\t\t\t\t\t\tm.projectteam2_id,\r\n\t\t\t\t\t\t\t\tm.team1_result,\r\n\t\t\t\t\t\t\t\tm.team2_result,\r\n\t\t\t\t\t\t\t\tm.modified_by,\r\n\t\t\t\t\t\t\t\tr.project_id,\r\n\t\t\t\t\t\t\t\tp.name as projectname" . " FROM #__joomleague_match as m" . " LEFT JOIN #__joomleague_round as r ON r.id=m.round_id" . " INNER JOIN #__joomleague_project_team AS pt1 ON m.projectteam1_id=pt1.id" . " INNER JOIN #__joomleague_project_team AS pt2 ON m.projectteam2_id=pt2.id" . " INNER JOIN #__joomleague_team AS t1 ON pt1.team_id=t1.id" . " INNER JOIN #__joomleague_team AS t2 ON pt2.team_id=t2.id" . " INNER JOIN #__joomleague_project AS p ON pt1.project_id=p.id" . " WHERE m.id = " . $id;
$db->setQuery($query);
$row = $db->loadObject();
if (!empty($row)) {
$info->title = $row->projectname . " " . $row->t1name . " vs. " . $row->t2name;
$info->userid = $row->modified_by;
$info->link = JRoute::_(JoomleagueHelperRoute::getNextMatchRoute($row->project_id, $row->matchid));
}
}
return $info;
}
开发者ID:sergy444,项目名称:joomla,代码行数:18,代码来源:com_joomleague_nextmatch.plugin.php
示例7: getroute
function getroute()
{
$app =& JFactory::getApplication();
$view = Jrequest::getCmd('view');
switch ($view) {
case "teaminfo":
$link = JoomleagueHelperRoute::getTeamInfoRoute(JRequest::getVar('p'), JRequest::getVar('tid'));
break;
case "resultsranking":
$link = JoomleagueHelperRoute::getResultsRankingRoute(JRequest::getVar('p'));
break;
case "rankingmatrix":
$link = JoomleagueHelperRoute::getRankingMatrixRoute(JRequest::getVar('p'));
break;
case "resultsrankingmatrix":
$link = JoomleagueHelperRoute::getResultsRankingMatrixRoute(JRequest::getVar('p'));
break;
case "teamplan":
$link = JoomleagueHelperRoute::getTeamPlanRoute(JRequest::getVar('p'), JRequest::getVar('tid'), JRequest::getVar('division'));
break;
case "roster":
$link = JoomleagueHelperRoute::getPlayersRoute(JRequest::getVar('p'), JRequest::getVar('tid'));
break;
case "eventsranking":
$link = JoomleagueHelperRoute::getEventsRankingRoute(JRequest::getVar('p'), JRequest::getVar('division'));
break;
case "curve":
$link = JoomleagueHelperRoute::getCurveRoute(JRequest::getVar('p'), 0, 0, JRequest::getVar('division'));
break;
case "statsranking":
$link = JoomleagueHelperRoute::getStatsRankingRoute(JRequest::getVar('p'), JRequest::getVar('division'));
break;
default:
case "ranking":
$link = JoomleagueHelperRoute::getRankingRoute(JRequest::getVar('p'), null, null, null, 0, JRequest::getVar('division'));
}
echo json_encode($link);
$app->close();
}
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:39,代码来源:ajax.json.php
示例8: showReportDecisionIcons
function showReportDecisionIcons(&$game)
{
//echo '<br /><pre>~'.print_r($game,true).'~</pre><br />';
$output = '';
$report_link = JoomleagueHelperRoute::getMatchReportRoute($game->project_id, $game->id);
if ($game->show_report && trim($game->summary) != '' || $game->alt_decision || $game->match_result_type > 0) {
if ($game->alt_decision) {
$imgTitle = JText::_($game->decision_info);
$img = 'media/com_joomleague/jl_images/court.gif';
} else {
$imgTitle = JText::_('Has match summary');
$img = 'media/com_joomleague/jl_images/zoom.png';
}
$output .= JHTML::_('link', $report_link, JHTML::image(JURI::root() . $img, $imgTitle, array("border" => 0, "title" => $imgTitle)), array("title" => $imgTitle));
} else {
$output .= ' ';
}
return $output;
}
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:19,代码来源:view.html.php
示例9: foreach
<?php
echo JText::_('Team of Player');
?>
</th>
<th class="td_l">
<?php
echo JText::_('Position in Team');
?>
</th>
</tr>
<?php
$k = 0;
foreach ($this->historyPlayer as $station) {
#$link1 = JoomleagueHelperRoute::getPlayerRoute( $station->project_id, $this->person->id , '1' );
$link1 = JoomleagueHelperRoute::getPlayerRoute($station->project_id, $station->person_id, '1');
$link2 = JoomleagueHelperRoute::getPlayersRoute($station->project_id, $station->team_id);
?>
<tr class="<?php
echo $k == 0 ? 'sectiontableentry1' : 'sectiontableentry2';
?>
">
<td class="td_l">
<?php
echo JHtml::link($link1, $station->project_name);
?>
</td>
<td class="td_l">
<?php
echo $station->season_name;
?>
</td>
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:31,代码来源:default_pl_playerhistory.php
示例10: switch
?>
</span>
</td>
<td class="data">
<?php
$outputName = JoomleagueHelper::formatName(null, $this->person->firstname, $this->person->nickname, $this->person->lastname, $this->config["name_format"]);
if ($this->person->id) {
switch ($this->config['show_user_profile']) {
case 1:
// Link to Joomla Contact Page
$link = JoomleagueHelperRoute::getContactRoute($this->person->contact_id);
$outputName = JHtml::link($link, $outputName);
break;
case 2:
// Link to CBE User Page with support for JoomLeague Tab
$link = JoomleagueHelperRoute::getUserProfileRouteCBE($this->person->id, $this->project->id, $this->person->id);
$outputName = JHtml::link($link, $outputName);
break;
default:
break;
}
}
echo $outputName;
?>
</td>
</tr>
<?php
if (!empty($this->person->nickname)) {
?>
<tr>
<td class="">
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:31,代码来源:default_info.php
示例11: getChartURL
function getChartURL()
{
$url = JoomleagueHelperRoute::getStatsChartDataRoute($this->projectid, $this->divisionid);
$url = str_replace('&', '%26', $url);
return $url;
}
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:6,代码来源:stats.php
示例12: array
<!-- section header e.g. ranking, results etc. -->
<a id="jl_top"></a>
<table class="contentpaneopen">
<tr>
<td class="contentheading">
<?php
if ($this->roundid) {
$title = JText::_('COM_JOOMLEAGUE_RESULTS_ROUND_RESULTS');
if (isset($this->division)) {
$title = JText::sprintf('COM_JOOMLEAGUE_RESULTS_ROUND_RESULTS2', '<i>' . $this->division->name . '</i>');
}
JoomleagueHelperHtml::showMatchdaysTitle($title, $this->roundid, $this->config);
if ($this->showediticon) {
$link = JoomleagueHelperRoute::getResultsRoute($this->project->id, $this->roundid, $this->model->divisionid, $this->model->mode, $this->model->order, $this->config['result_style_edit']);
$imgTitle = JText::_('COM_JOOMLEAGUE_RESULTS_ENTER_EDIT_RESULTS');
$desc = JHTML::image('media/com_joomleague/jl_images/edit.png', $imgTitle, array(' title' => $imgTitle));
echo ' ';
echo JHTML::link($link, $desc);
}
} else {
//1 request for current round
// seems to be this shall show a plan of matches of a team???
JoomleagueHelperHtml::showMatchdaysTitle(JText::_('COM_JOOMLEAGUE_RESULTS_PLAN'), 0, $this->config);
}
?>
</td>
<?php
if ($this->config['show_matchday_dropdown'] == 1) {
?>
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:30,代码来源:default_sectionheader.php
示例13: switch
break;
case 1:
$result_link = JoomleagueHelperRoute::getResultsRoute($match->project_id, $match->roundid, $match->division_id);
$urlfronthome = '<a href="' . $result_link . '">';
$urlbackhome = "</a>";
$urlfrontaway = '<a href="' . $result_link . '">';
$urlbackaway = "</a>";
break;
case 2:
$urlfronthome = '<a href="' . $report_link . '">';
$urlbackhome = "</a>";
$urlfrontaway = '<a href="' . $report_link . '">';
$urlbackaway = "</a>";
break;
case 3:
$plan_link = JoomleagueHelperRoute::getTeamPlanRoute($match->project_id, $match->team1_id);
$urlfronthome = '<a href="' . $plan_link . '">';
$urlbackhome = "</a>";
$urlfrontaway = '<a href="' . $plan_link . '">';
$urlbackaway = "</a>";
break;
}
// Decide how team name/icon will be shown
switch ($teamformat) {
//Long name
case 0:
$home_name = $urlfronthome . $match->home_name . $urlbackhome;
$away_name = $urlfrontaway . $match->away_name . $urlbackaway;
break;
//Middle name
//Middle name
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:31,代码来源:default.php
示例14: defined
<?php
defined('_JEXEC') or die('Restricted access');
?>
<table class="contentpaneopen">
<tr>
<td class="contentheading">
<?php
echo $this->pagetitle;
if ($this->showediticon) {
$modalheight = JComponentHelper::getParams('com_joomleague')->get('modal_popup_height', 600);
$modalwidth = JComponentHelper::getParams('com_joomleague')->get('modal_popup_width', 900);
$link = JoomleagueHelperRoute::getPlayersRoute($this->project->id, $this->team->id, 'teamplayer.select', $this->projectteam->division_id, $this->projectteam->ptid);
echo ' <a rel="{handler: \'iframe\',size: {x:' . $modalwidth . ',y:' . $modalheight . '}}" href="' . $link . '" class="modal">';
echo JHtml::image("media/com_joomleague/jl_images/edit.png", JText::_('COM_JOOMLEAGUE_ROSTER_EDIT'), array("title" => JText::_("COM_JOOMLEAGUE_ROSTER_EDIT")));
echo '</a>';
}
?>
</td>
</tr>
</table>
<br />
开发者ID:Heart1010,项目名称:JoomLeague,代码行数:23,代码来源:default_sectionheader.php
示例15: getThumbScore
/**
* return thumb up/down image as link with score as title
*
* @param object $game
* @param int $projectteam_id
* @param array attributes
* @return string linked image html code
*/
public function getThumbScore($game, $projectteam_id, $attributes = null)
{
if (!($img = self::getThumbUpDownImg($game, $projectteam_id, $attributes = null))) {
return false;
}
$txt = $teams[$game->projectteam1_id]->name . ' - ' . $teams[$game->projectteam2_id]->name . ' ' . $game->team1_result . ' - ' . $game->team2_result;
$attribs = array('title' => $txt);
if (is_array($attributes)) {
$attribs = array_merge($attributes, $attribs);
}
$url = JRoute::_(JoomleagueHelperRoute::getMatchReportRoute($game->project_slug, $game->slug));
return JHTML::link($url, $img);
}
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:21,代码来源:html.php
示例16: showTeamIcons
static function showTeamIcons(&$team, &$config)
{
if (!isset($team->projectteamid)) {
return "";
}
$projectteamid = $team->projectteamid;
$teamname = $team->name;
$teamid = $team->team_id;
$teamSlug = isset($team->team_slug) ? $team->team_slug : $teamid;
$clubSlug = isset($team->club_slug) ? $team->club_slug : $team->club_id;
$division_slug = isset($team->division_slug) ? $team->division_slug : $team->division_id;
$projectSlug = isset($team->project_slug) ? $team->project_slug : $team->project_id;
$output = '';
if ($config['show_team_link']) {
$link = JoomleagueHelperRoute::getPlayersRoute($projectSlug, $teamSlug);
$title = JText::_('COM_JOOMLEAGUE_TEAMICONS_ROSTER_LINK') . ' ' . $teamname;
$picture = 'media/com_joomleague/jl_images/team_icon.png';
$desc = self::getPictureThumb($picture, $title, 0, 0, 4);
$output .= JHtml::link($link, $desc);
}
if ((!isset($team_plan) || $teamid != $team_plan->id) && $config['show_plan_link']) {
$link = JoomleagueHelperRoute::getTeamPlanRoute($projectSlug, $teamSlug, $division_slug);
$title = JText::_('COM_JOOMLEAGUE_TEAMICONS_TEAMPLAN_LINK') . ' ' . $teamname;
$picture = 'media/com_joomleague/jl_images/calendar_icon.gif';
$desc = self::getPictureThumb($picture, $title, 0, 0, 4);
$output .= JHtml::link($link, $desc);
}
if ($config['show_curve_link']) {
$link = JoomleagueHelperRoute::getCurveRoute($projectSlug, $teamSlug, 0, $division_slug);
$title = JText::_('COM_JOOMLEAGUE_TEAMICONS_CURVE_LINK') . ' ' . $teamname;
$picture = 'media/com_joomleague/jl_images/curve_icon.gif';
$desc = self::getPictureThumb($picture, $title, 0, 0, 4);
$output .= JHtml::link($link, $desc);
}
if ($config['show_teaminfo_link']) {
$link = JoomleagueHelperRoute::getTeamInfoRoute($projectSlug, $teamid);
$title = JText::_('COM_JOOMLEAGUE_TEAMICONS_TEAMINFO_LINK') . ' ' . $teamname;
$picture = 'media/com_joomleague/jl_images/teaminfo_icon.png';
$desc = self::getPictureThumb($picture, $title, 0, 0, 4);
$output .= JHtml::link($link, $desc);
}
if ($config['show_club_link']) {
$link = JoomleagueHelperRoute::getClubInfoRoute($projectSlug, $clubSlug);
$title = JText::_('COM_JOOMLEAGUE_TEAMICONS_CLUBINFO_LINK') . ' ' . $teamname;
$picture = 'media/com_joomleague/jl_images/mail.gif';
$desc = self::getPictureThumb($picture, $title, 0, 0, 4);
$output .= JHtml::link($link, $desc);
}
if ($config['show_teamstats_link']) {
$link = JoomleagueHelperRoute::getTeamStatsRoute($projectSlug, $teamSlug);
$title = JText::_('COM_JOOMLEAGUE_TEAMICONS_TEAMSTATS_LINK') . ' ' . $teamname;
$picture = 'media/com_joomleague/jl_images/teamstats_icon.png';
$desc = self::getPictureThumb($picture, $title, 0, 0, 4);
$output .= JHtml::link($link, $desc);
}
if ($config['show_clubplan_link']) {
$link = JoomleagueHelperRoute::getClubPlanRoute($projectSlug, $clubSlug);
$title = JText::_('COM_JOOMLEAGUE_TEAMICONS_CLUBPLAN_LINK') . ' ' . $teamname;
$picture = 'media/com_joomleague/jl_images/clubplan_icon.png';
$desc = self::getPictureThumb($picture, $title, 0, 0, 4);
$output .= JHtml::link($link, $desc);
}
if ($config['show_rivals_link']) {
$link = JoomleagueHelperRoute::getRivalsRoute($projectSlug, $teamSlug);
$title = JText::_('COM_JOOMLEAGUE_TEAMICONS_RIVALS_LINK') . ' ' . $teamname;
$picture = 'media/com_joomleague/jl_images/rivals.png';
$desc = self::getPictureThumb($picture, $title, 0, 0, 4);
$output .= JHtml::link($link, $desc);
}
return $output;
}
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:71,代码来源:joomleaguehelper.php
示例17: getScoreLink
function getScoreLink($game, $project)
{
if (isset($game->team1_result) || $game->alt_decision) {
return JoomleagueHelperRoute::getMatchReportRoute($project->slug, $game->id);
} else {
return JoomleagueHelperRoute::getNextMatchRoute($project->slug, $game->id);
}
}
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:8,代码来源:helper.php
示例18: foreach
foreach ($this->previousgames[$ptid] as $g) {
$txt = $this->teams[$g->projectteam1_id]->name . ' [ ' . $g->team1_result . ' - ' . $g->team2_result . ' ] ' . $this->teams[$g->projectteam2_id]->name;
$attribs = array('title' => $txt);
if (!($img = JoomleagueHelperHtml::getThumbUpDownImg($g, $ptid, $attribs))) {
continue;
}
switch (JoomleagueHelper::getTeamMatchResult($g, $ptid)) {
case -1:
$attr = array('class' => 'thumblost');
break;
case 0:
$attr = array('class' => 'thumbdraw');
break;
case 1:
$attr = array('class' => 'thumbwon');
break;
}
$url = JRoute::_(JoomleagueHelperRoute::getMatchReportRoute($g->project_slug, $g->slug));
echo JHTML::link($url, $img, $attr);
}
echo '</td>';
echo "\n";
break;
}
}
echo '</tr>';
echo "\n";
$k = 1 - $k;
$counter++;
$temprank = $team->rank;
}
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:31,代码来源:default_rankingrows.php
示例19:
<thead>
<tr class="sectiontableheader">
<th colspan=10><?php
echo $game->project_name;
?>
</th>
</tr>
</thead>
<?php
$pr_id = $game->prid;
}
?>
<?php
$class = $k == 0 ? 'sectiontableentry1' : 'sectiontableentry2';
$result_link = JoomleagueHelperRoute::getResultsRoute($game->project_id, $game->roundid);
$report_link = JoomleagueHelperRoute::getMatchReportRoute($game->project_id, $game->id);
$home = $this->gamesteams[$game->projectteam1_id];
$away = $this->gamesteams[$game->projectteam2_id];
?>
<tr class="<?php
echo $class;
?>
">
<td><?php
echo JHTML::link($result_link, $game->roundcode);
?>
</td>
<td class="nowrap"><?php
echo JHTML::date($date, JText::_('COM_JOOMLEAGUE_MATCHDAYDATE'));
?>
</td>
开发者ID:santas156,项目名称:joomleague-2-komplettpaket,代码行数:31,代码来源:default_history.php
示例20: foreach
$career['played'] = 0;
$career['started'] = 0;
$career['in'] = 0;
$career['out'] = 0;
$career['playedtime'] = 0;
$player = JLGModel::getInstance("Person", "JoomleagueModel");
if (count($this->historyPlayer) > 0) {
foreach ($this->historyPlayer as $player_hist) {
$model = $this->getModel();
$this->inoutstat = $model->getInOutStats($player_hist->project_id, $player_hist->ptid, $player_hist->tpid);
// time played
$timePlayed = 0;
$this->timePlayed = $model->getTimePlayed($player_hist->tpid, $this->project->game_regular_time);
$timePlayed = $this->timePlayed;
$link1 = JoomleagueHelperRoute::getPlayerRoute($player_hist->project_slug, $player_hist->team_slug, $this->person->slug);
$link2 = JoomleagueHelperRoute::getTeamInfoRoute($player_hist->project_slug, $player_hist->team_slug);
?>
<tr class="<?php
echo $k == 0 ? $this->config['style_class1'] : $this->config['style_class2'];
?>
">
<td class="td_l" nowrap="nowrap"><?php
echo JHtml::link($link1, $player_hist->project_name);
?>
</td>
<td class="td_l" class="nowrap">
<?php
if ($this->config['show_playerstats_teamlink'] == 1) {
echo JHtml::link($link2, $player_hist->team_name);
} else {
echo $player_hist->team_name;
开发者ID:hfmprs,项目名称:JoomLeague,代码行数:31,代码来源:default_playerstats.php
注:本文中的JoomleagueHelperRoute类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论