<tr>
            <td colspan="3" >
            &nbsp;
            </td>
        </tr>
        <?php 
    }
}
?>
	<!-- playground -->
	<?php 
if ($this->config['show_match_playground'] == 1) {
    if ($this->match->playground_id > 0) {
        ?>
        <?php 
        $playground_link = JoomleagueHelperRoute::getPlaygroundRoute($this->project->id, $this->match->playground_id);
        ?>
        <tr>
            <td colspan="3" >
                <span class="label"><?php 
        echo JText::_('COM_JOOMLEAGUE_MATCHREPORT_PLAYGROUND');
        ?>
</span>
                <span><?php 
        echo JHTML::link($playground_link, $this->playground->name);
        ?>
</span>
            </td>
        </tr>
        <?php 
    }
예제 #2
0
    /**
     * display match playground
     *
     * @param object $game
     */
    function showMatchPlayground(&$game)
    {
        if (($this->config['show_playground'] || $this->config['show_playground_alert']) && isset($game->playground_id)) {
            if (empty($game->playground_id)) {
                $game->playground_id = $this->teams[$game->projectteam1_id]->standard_playground;
            }
            if (empty($game->playground_id)) {
                $cinfo =& JTable::getInstance('Club', 'Table');
                $cinfo->load($this->teams[$game->projectteam1_id]->club_id);
                $game->playground_id = $cinfo->standard_playground;
                $this->teams[$game->projectteam1_id]->standard_playground = $cinfo->standard_playground;
            }
            if (!$this->config['show_playground'] && $this->config['show_playground_alert']) {
                if ($this->teams[$game->projectteam1_id]->standard_playground == $game->playground_id) {
                    echo '-';
                    return '';
                }
            }
            $boldStart = '';
            $boldEnd = '';
            $toolTipTitle = JText::_('COM_JOOMLEAGUE_PLAYGROUND_MATCH');
            $toolTipText = '';
            $playgroundID = $this->teams[$game->projectteam1_id]->standard_playground;
            if ($this->config['show_playground_alert'] && $this->teams[$game->projectteam1_id]->standard_playground != $game->playground_id) {
                $boldStart = '<b style="color:red; ">';
                $boldEnd = '</b>';
                $toolTipTitle = JText::_('COM_JOOMLEAGUE_PLAYGROUND_NEW');
                $playgroundID = $this->teams[$game->projectteam1_id]->standard_playground;
            }
            $pginfo =& JTable::getInstance('Playground', 'Table');
            $pginfo->load($game->playground_id);
            $toolTipText .= $pginfo->name . '&lt;br /&gt;';
            $toolTipText .= $pginfo->address . '&lt;br /&gt;';
            $toolTipText .= $pginfo->zipcode . ' ' . $pginfo->city . '&lt;br /&gt;';
            $link = JoomleagueHelperRoute::getPlaygroundRoute($this->project->id, $game->playground_id);
            $playgroundName = $this->config['show_playground_name'] == 'name' ? $pginfo->name : $pginfo->short_name;
            ?>
<span class='hasTip'
	title='<?php 
            echo $toolTipTitle;
            ?>
 :: <?php 
            echo $toolTipText;
            ?>
'> 
	<?php 
            echo JHTML::link($link, $boldStart . $playgroundName . $boldEnd);
            ?>
 </span>

	<?php 
        }
    }
예제 #3
0
            echo JText::_('COM_JOOMLEAGUE_CLUBINFO_DISSOLVED');
            ?>
</span>
			<span class="clubinfo_listing_value"><?php 
            echo $this->club->dissolved;
            ?>
</span>
			<?php 
        }
        if ($this->config['show_playgrounds_of_club'] == 1 && isset($this->stadiums) && count($this->stadiums) > 0) {
            ?>
			<!-- SHOW PLAYGROUNDS - START -->
			<?php 
            $playground_number = 1;
            foreach ($this->playgrounds as $playground) {
                $link = JoomleagueHelperRoute::getPlaygroundRoute($this->project->slug, $playground->slug);
                $pl_dummy = JText::_('COM_JOOMLEAGUE_CLUBINFO_PLAYGROUND');
                ?>
					<span class="clubinfo_listing_item"><?php 
                echo str_replace("%NUMBER%", $playground_number, $pl_dummy);
                ?>
</span>
					<span class="clubinfo_listing_value"><?php 
                echo JHtml::link($link, $playground->name);
                ?>
</span>
					<?php 
                $playground_number++;
            }
            ?>
			<!-- SHOW PLAYGROUNDS - END -->
예제 #4
0
 if ($params->get('show_playground_name', 0)) {
     $textdiv .= '<div class="jlplplaneplname"> ';
     if ($match->playground_id != "") {
         $playgroundname = $match->playground_name;
         $playground_id = $match->playground_id;
     } else {
         if ($match->team_playground_id != "") {
             $playgroundname = $match->team_playground_name;
             $playground_id = $match->team_playground_id;
         } elseif ($match->club_playground_id != "") {
             $playgroundname = $match->club_playground_name;
             $playground_id = $match->club_playground_id;
         }
     }
     if ($params->get('show_playground_link')) {
         $link = JoomleagueHelperRoute::getPlaygroundRoute($match->project_id, $playground_id);
         $playgroundname = JHtml::link($link, JText::sprintf('%1$s', $playgroundname));
     } else {
         $playgroundname = JText::sprintf('%1$s', $playgroundname);
     }
     $textdiv .= $playgroundname . '</div>';
 }
 $textdiv .= '<div class="jlplplanedate">';
 $textdiv .= JoomleagueHelper::getMatchDate($match, $dateformat);
 $textdiv .= " " . JText::_('MOD_JOOMLEAGUE_PLAYGROUNDPLAN_START_TIME') . " ";
 $textdiv .= JoomleagueHelper::getMatchTime($match, $timeformat);
 $textdiv .= '</div>';
 if ($params->get('show_project_name', 0)) {
     $textdiv .= '<div class="jlplplaneleaguename">';
     $textdiv .= $match->project_name;
     $textdiv .= '</div>';
예제 #5
0
                ?>
						</th>
					</tr>
				<?php 
            }
            $prevDate = $gameDate;
        }
    }
    $class = $k == 0 ? $this->config['style_class1'] : $this->config['style_class2'];
    $result_link = JoomleagueHelperRoute::getResultsRoute($game->project_id, $game->roundid, $game->division_id);
    $nextmatch_link = JoomleagueHelperRoute::getNextmatchRoute($game->project_id, $game->id);
    $teaminfo1_link = JoomleagueHelperRoute::getTeamInfoRoute($game->project_id, $game->team1_id);
    $teaminfo2_link = JoomleagueHelperRoute::getTeamInfoRoute($game->project_id, $game->team2_id);
    $teamstats1_link = JoomleagueHelperRoute::getTeamStatsRoute($game->project_id, $game->team1_id);
    $teamstats2_link = JoomleagueHelperRoute::getTeamStatsRoute($game->project_id, $game->team2_id);
    $playground_link = JoomleagueHelperRoute::getPlaygroundRoute($game->project_id, $game->playground_id);
    $favs = JoomleagueHelper::getProjectFavTeams($game->project_id);
    $favteams = explode(",", $favs->fav_team);
    if ($this->config['which_link2'] == 1) {
        $link1 = $teaminfo1_link;
        $link2 = $teaminfo2_link;
    } else {
        if ($this->config['which_link2'] == 2) {
            $link1 = $teamstats1_link;
            $link2 = $teamstats2_link;
        } else {
            $link1 = null;
            $link2 = null;
        }
    }
    $hometeam = $game;