echo '>'; $gaa = round($team->getPPP(), 2); printf($format, $gaa); echo '</td>'; echo "\n"; break; case 'LASTGAMES': echo '<td class="rankingrow lastgames"'; if ($color != '' && $config['use_background_row_color']) { echo 'style="background-color:' . $color . '"'; } echo '>'; 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);
} } } else { echo '-'; } ?> </td> <?php } ?> <?php if ($this->config['show_thumbs_picture'] & $teamid > 0) { ?> <td><?php echo JoomleagueHelperHtml::getThumbUpDownImg($match, $this->ptid); ?> </td> <?php } ?> <?php if ($this->config['show_matchreport_column']) { ?> <td><?php if (!$match->cancel) { if (isset($match->team1_result)) { if ($this->config['show_matchreport_image']) { $href_text = JHTML::image($this->config['matchreport_image'], JText::_('COM_JOOMLEAGUE_TEAMPLAN_VIEW_MATCHREPORT')); } else {
echo $game->team2_result; ?> </td> <td nowrap="nowrap"><?php if ($game->show_report == 1) { $desc = JHTML::image("media/com_joomleague/jl_images/zoom.png", JText::_('Match Report'), array("title" => JText::_('Match Report'))); echo JHTML::link($report_link, $desc); } $k = 1 - $k; ?> </td> <?php if ($this->config['show_thumbs_picture']) { ?> <td><?php echo JoomleagueHelperHtml::getThumbUpDownImg($game, $this->currentteam); ?> </td> <?php } ?> </tr> <?php } ?> </table> </td> </tr> </table> <!-- End of show matches --> <?php