Exemple #1
0
 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>';
     }
 }
						<ul style="list-style-type: none;">
							<?php 
        foreach ($this->matchstaffs as $player) {
            if ($player->pposid == $pos->pposid && $player->ptid == $this->match->projectteam2_id) {
                ?>
									<li class="list">
										<?php 
                $match_player = JoomleagueHelper::formatName(null, $player->firstname, $player->nickname, $player->lastname, $this->config["name_format"]);
                $imgTitle = JText::sprintf('Picture of %1$s', $match_player);
                $picture = $player->picture;
                if (!file_exists($picture)) {
                    $picture = JoomleagueHelper::getDefaultPlaceholder("player");
                }
                echo JoomleagueHelper::getPictureThumb($picture, $imgTitle, $this->config['staff_picture_width'], $this->config['staff_picture_height']);
                echo '&nbsp;';
                $player_link = JoomleagueHelperRoute::getStaffRoute($this->project->slug, $player->team_slug, $player->person_slug);
                echo JHtml::link($player_link, $match_player);
                ?>
									</li>
									<?php 
            }
        }
        ?>
						</ul>
					</div>
				</td>
			</tr>
			<?php 
    }
    ?>
	</table>
Exemple #3
0
    foreach ($persons as $person) {
        if ($params->get('limit') > 0 && $counter == intval($params->get('limit'))) {
            break;
        }
        $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;
        ?>
        if ($this->config['show_country_flag_staff']) {
            ?>
				<td width="16" nowrap="nowrap" style="text-align:center; ">
					<?php 
            echo Countries::getCountryFlag($row->country);
            ?>
				</td><?php 
        } elseif ($this->config['show_country_flag']) {
            // Put empty column to keep vertical alignment with the player table
            ?>
				<td width="16" nowrap="nowrap" style="text-align:center; ">&nbsp;</td><?php 
        }
        ?>
				<td class="td_l"><?php 
        if ($this->config['link_staff'] == 1) {
            $link = JoomleagueHelperRoute::getStaffRoute($this->project->slug, $this->team->slug, $row->slug);
            echo JHTML::link($link, '<span class="staffname">' . $playerName . '</span>');
        } else {
            echo '<span class="staffname">' . $playerName . '</i>';
        }
        ?>
				</td>
				<td width="5%" style="text-align: left;" nowrap="nowrap">&nbsp;</td><?php 
        if ($this->config['show_birthday_staff'] > 0) {
            ?>
				<td width="10%" nowrap="nowrap" style="text-align: left;"><?php 
            if ($row->birthday != "0000-00-00") {
                switch ($this->config['show_birthday_staff']) {
                    case 1:
                        // show Birthday and Age
                        $birthdateStr = JHTML::date($row->birthday, JText::_('COM_JOOMLEAGUE_GLOBAL_DAYDATE'));
        ?>
" /></a>
    <?php 
    }
    ?>
				</div><!-- /.jl_roster_staffperson_pic -->
			</div><!-- /.jl_rosterperson_staffpicture_column -->
<?php 
}
//if ($this->config['show_staff_icon']) ends
?>
		<div class="jl_roster_staffperson_detail_column">
			<h3>
				<span class="jl_rosterperson_name">
				<?php 
echo $this->config['link_staff'] == 1 ? JHTML::link(JoomleagueHelperRoute::getStaffRoute($this->project->slug, $this->team->slug, $this->row->slug), $personName) : $personName;
?>
					<br />&nbsp;
				</span>	
			</h3>
			<div class="jl_roster_persondetails">
					<div>
						<span class="jl_roster_persondetails_label">
<?php 
echo JText::_('COM_JOOMLEAGUE_ROSTER_STAFF_FUNCTION');
?>
						</span><!-- /.jl_roster_persondetails_label -->
						<span class="jl_roster_persondetails_data">
<?php 
if (!empty($this->row->parentname)) {
    echo JText::sprintf('COM_JOOMLEAGUE_ROSTER_MEMBER_OF', JText::_($this->row->parentname));
Exemple #6
0
    echo JText::_('COM_JOOMLEAGUE_PERSON_SEASON');
    ?>
</th>
						<th class="td_l"><?php 
    echo JText::_('COM_JOOMLEAGUE_PERSON_TEAM');
    ?>
</th>
						<th class="td_l"><?php 
    echo JText::_('COM_JOOMLEAGUE_PERSON_POSITION');
    ?>
</th>
					</tr>
					<?php 
    $k = 0;
    foreach ($this->history as $station) {
        $link1 = JoomleagueHelperRoute::getStaffRoute($station->project_slug, $station->team_slug, $this->person->slug);
        $link2 = JoomleagueHelperRoute::getPlayersRoute($station->project_slug, $station->team_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 
<?php

/**
 * Joomleague
 *
 * @copyright	Copyright (C) 2006-2015 joomleague.at. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 * @link		http://www.joomleague.at
 */
?>
<table width="100%" 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::getStaffRoute($this->project->id, $this->teamStaff->project_team_id, $this->teamStaff->id, 'teamstaff.edit');
    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_STAFF_EDIT'), array("title" => JText::_("COM_JOOMLEAGUE_STAFF_EDIT")));
    echo '</a>';
}
?>
		</td>
	</tr>
</table>