echo JText::_('COM_JOOMLEAGUE_PERSON_COMPETITION');
    ?>
</th>
					<th class="td_l"><?php 
    echo JText::_('COM_JOOMLEAGUE_PERSON_SEASON');
    ?>
</th>
					<th class="td_l"><?php 
    echo JText::_('COM_JOOMLEAGUE_PERSON_POSITION');
    ?>
</th>
				</tr>
					<?php 
    $k = 0;
    foreach ($this->history as $station) {
        $link1 = JoomleagueHelperRoute::getRefereeRoute($station->project_slug, $this->referee->slug);
        ?>
						<tr class="<?php 
        echo $k == 0 ? $this->config['style_class1'] : $this->config['style_class2'];
        ?>
">
							<td class="td_l"><?php 
        echo JHTML::link($link1, $station->project_name);
        ?>
</td>
							<td class="td_l"><?php 
        echo $station->season_name;
        ?>
</td>
							<td class="td_l"><?php 
        echo $station->position_name ? JText::_($station->position_name) : "";
?>
	<!-- referees -->
	<?php 
if ($this->config['show_match_referees'] == 1) {
    if ($this->matchreferees) {
        ?>
            <tr>
                <td colspan="3" >
                    <span class="label"><?php 
        echo JText::_('COM_JOOMLEAGUE_MATCHREPORT_REFEREE');
        ?>
</span>
                    <?php 
        $first = true;
        foreach ($this->matchreferees as $referee) {
            $referee_link = JoomleagueHelperRoute::getRefereeRoute($this->project->id, $referee->id);
            if (!$first) {
                echo ', ';
            }
            $link = JHTML::link($referee_link, JoomleagueHelper::formatName(null, $referee->firstname, $referee->nickname, $referee->lastname, $this->config["name_format"]));
            if ($this->config["show_referee_position"] == 1) {
                $link .= ' (' . $referee->position_name . ')';
            }
            ?>
<span><?php 
            echo $link;
            ?>
</span>
                        <?php 
            $first = false;
        }
                        echo JURI::root();
                        ?>
media/com_joomleague/jl_images/icon-16-Referees.png' alt='' title='' /> </span>
				<?php 
                    }
                } else {
                    $output = '';
                    $toolTipTitle = JText::_('COM_JOOMLEAGUE_TEAMPLAN_REF_TOOLTIP');
                    $toolTipText = '';
                    for ($i = 0; $i < count($match->referees); $i++) {
                        if ($match->referees[$i]->referee_lastname != '' && $match->referees[$i]->referee_firstname) {
                            $output .= '<span class="hasTip" title="' . JText::_('COM_JOOMLEAGUE_TEAMPLAN_REF_FUNCTION') . '::' . $match->referees[$i]->referee_position_name . '">';
                            $ref = $match->referees[$i]->referee_lastname . ',' . $match->referees[$i]->referee_firstname;
                            $toolTipText .= $ref . ' (' . $match->referees[$i]->referee_position_name . ')' . '&lt;br /&gt;';
                            if ($this->config['show_referee_link']) {
                                $link = JoomleagueHelperRoute::getRefereeRoute($this->project->slug, $match->referees[$i]->referee_id, 3);
                                $ref = JHTML::link($link, $ref);
                            }
                            $output .= $ref;
                            $output .= '</span>';
                            if ($i + 1 < count($match->referees)) {
                                $output .= ' - ';
                            }
                        } else {
                            $output .= '-';
                        }
                    }
                    if ($this->config['show_referee'] == 1) {
                        echo $output;
                    } elseif ($this->config['show_referee'] == 2) {
                        ?>
Exemplo n.º 4
0
        }
        $class = $k == 0 ? $params->get('sectiontableentry1') : $params->get('sectiontableentry2');
        $thispic = "";
        $flag = $params->get('show_player_flag') ? Countries::getCountryFlag($person['country']) . "&nbsp;" : "";
        $text = htmlspecialchars(JoomleagueHelper::formatName(null, $person['firstname'], $person['nickname'], $person['lastname'], $params->get("name_format")), ENT_QUOTES, 'UTF-8');
        $usedname = $flag . $text;
        $person_link = "";
        $person_type = $person['type'];
        if ($person_type == 1) {
            $person_link = JoomleagueHelperRoute::getPlayerRoute($person['project_id'], $person['team_id'], $person['id']);
        } else {
            if ($person_type == 2) {
                $person_link = JoomleagueHelperRoute::getStaffRoute($person['project_id'], $person['team_id'], $person['id']);
            } else {
                if ($person_type == 3) {
                    $person_link = JoomleagueHelperRoute::getRefereeRoute($person['project_id'], $person['team_id'], $person['id']);
                }
            }
        }
        $showname = JHtml::link($person_link, $usedname);
        ?>
	<tr class="<?php 
        echo $params->get('heading_style');
        ?>
">
		<td class="birthday"><?php 
        echo $showname;
        ?>
</td>
	</tr>
	<tr class="<?php 
<?php

defined('_JEXEC') or die('Restricted access');
?>
<table width="100%" class="contentpaneopen">
	<tr>
		<td class="contentheading">
			<?php 
echo $this->pagetitle;
if ($this->showediticon) {
    $link = JoomleagueHelperRoute::getRefereeRoute($this->project->id, $this->referee->projectreferee_id, 'projectreferee.edit');
    $desc = JHtml::image("media/com_joomleague/jl_images/edit.png", JText::_('COM_JOOMLEAGUE_REFEREE_EDIT'), array("title" => JText::_("COM_JOOMLEAGUE_REFEREE_EDIT")));
    echo " ";
    echo JHtml::_('link', $link, $desc);
} else {
    //echo "no permission";
}
?>
		</td>
	</tr>
</table>
Exemplo n.º 6
0
					<?php 
    }
    ?>
				<td  class="td_l">
					<?php 
    echo $tname2;
    ?>
				</td>
					<?php 
    if ($this->config['show_referee'] == 1) {
        ?>
				<td>
					<?php 
        $matchReferees = $this->model->getMatchReferees($game->match_id);
        foreach ($matchReferees as $matchReferee) {
            $referee_link = JoomleagueHelperRoute::getRefereeRoute($game->project_id, $matchReferee->id);
            echo JHtml::link($referee_link, $matchReferee->firstname . " " . $matchReferee->lastname);
            echo '<br />';
        }
        ?>
				</td>
					<?php 
    }
    ?>
					<?php 
    if ($this->config['show_playground'] == 1) {
        ?>
				<td>
					<?php 
        echo JHtml::link($playground_link, $game->pl_name);
        ?>
					<?php 
        echo '&nbsp;';
        ?>
				</td>
				<td width="40" style="text-align:center; " class="nowrap">
					<?php 
        $refereeName = JoomleagueHelper::formatName(null, $row->firstname, $row->nickname, $row->lastname, $this->config["name_format"]);
        if ($this->config['show_icon'] == 1) {
            echo JoomleagueHelper::getPictureThumb($row->picture, $refereeName, $this->config['referee_picture_width'], $this->config['referee_picture_height']);
        }
        ?>
				</td>
				<td style="width:20%;">
					<?php 
        if ($this->config['link_name'] == 1) {
            $link = JoomleagueHelperRoute::getRefereeRoute($this->project->slug, $row->slug);
            echo JHTML::link($link, '<i>' . $refereeName . '</i>');
        } else {
            echo '<i>' . $refereeName . '</i>';
        }
        ?>
				</td>
				<td style="width:16px; text-align:center; " class="nowrap" >
					<?php 
        echo Countries::getCountryFlag($row->country);
        ?>
				</td>
				<?php 
        if ($this->config['show_birthday'] > 0) {
            ?>
					<td width="10%" class="nowrap" style="text-align:left; ">