</thead>
	<?php 
$k = 0;
foreach ($this->teams as $team) {
    $teaminfo_link = JoomleagueHelperRoute::getTeamInfoRoute($this->project->slug, $team->team_slug);
    $clubinfo_link = JoomleagueHelperRoute::getClubInfoRoute($this->project->slug, $team->club_slug);
    $teamTitle = JText::sprintf('COM_JOOMLEAGUE_TEAMS_TEAM_PROJECT_INFO', $team->team_name);
    $clubTitle = JText::sprintf('COM_JOOMLEAGUE_TEAMS_CLUB_PROJECT_INFO', $team->club_name);
    if ($this->config['show_small_logo']) {
        $teampic = $this->config['team_picture'];
        $picture = $team->{$teampic};
        if (is_null($picture) || !file_exists($picture)) {
            $picture = JoomleagueHelper::getDefaultPlaceholder("clublogosmall");
            $image = JHTML::image($picture, $teamTitle, array('title' => $teamTitle, ' border' => 0));
        } else {
            $image = JoomleagueHelper::getPictureThumb($picture, $team->team_name, $this->config['team_picture_width'], $this->config['team_picture_height'], 1);
        }
        $smallTeamLogoLink = JHTML::link($teaminfo_link, $image);
    }
    if ($this->config['show_medium_logo']) {
        $picture = $team->logo_middle;
        if (is_null($picture) || !file_exists($picture)) {
            $picture = JoomleagueHelper::getDefaultPlaceholder("clublogomedium");
        }
        $image = JHTML::image($picture, $clubTitle, array('title' => $clubTitle, ' border' => 0));
        $mediumClubLogoLink = JHTML::link($clubinfo_link, $image);
    }
    ?>
		<tr class="<?php 
    echo $k == 0 ? $this->config['style_class1'] : $this->config['style_class2'];
    ?>
     $groupmembersResultsArray[$member->pg_group_id]['totalPoints'] += $totalPoints + $ChampPoints;
     $groupmembersResultsArray[$member->pg_group_id]['totalTop'] += $totalTop;
     $groupmembersResultsArray[$member->pg_group_id]['totalDiff'] += $totalDiff;
     $groupmembersResultsArray[$member->pg_group_id]['totalTend'] += $totalTend;
     $groupmembersResultsArray[$member->pg_group_id]['totalJoker'] += $totalJoker;
 }
 // check all needed output for later
 $picture = $member->avatar;
 $playerName = $member->name;
 if (!isset($member->avatar) || $member->avatar == '' || !file_exists($member->avatar) || !$member->show_profile && $this->predictionMember->pmID != $member->pmID) {
     $picture = JoomleagueHelper::getDefaultPlaceholder("player");
 }
 //tobe removed
 //$imgTitle = JText::sprintf('JL_PRED_AVATAR_OF',$member->name);
 //$output = JHTML::image($member->avatar,$imgTitle,array(' width' => 20, ' title' => $imgTitle));
 $output = JoomleagueHelper::getPictureThumb($picture, $playerName, 0, 25);
 $membersDataArray[$member->pmID]['show_user_icon'] = $output;
 $membersDataArray[$member->pmID]['pg_group_name'] = $member->pg_group_name;
 $membersDataArray[$member->pmID]['pg_group_id'] = $member->pg_group_id;
 if ($this->model->pggrouprank) {
     $groupmembersDataArray[$member->pg_group_id]['pg_group_name'] = $member->pg_group_name;
     $groupmembersDataArray[$member->pg_group_id]['pg_group_id'] = $member->pg_group_id;
 }
 if ($member->aliasName) {
     $member->name = $member->aliasName;
 }
 if ($this->config['link_name_to'] && ($member->show_profile || $this->predictionMember->pmID == $member->pmID)) {
     $link = PredictionHelperRoute::getPredictionMemberRoute($this->predictionGame->id, $member->pmID);
     $output = JHTML::link($link, $member->name);
 } else {
     $output = $member->name;
 function _formatEventContainerInResults($matchevent, $event, $projectteamId, $showEventInfo)
 {
     // Meaning of $showEventInfo:
     // 0 : do not show event as text or as icon in a list item
     // 1 : show event as icon in a list item (before the time)
     // 2 : show event as text in a list item (after the time)
     $output = '';
     if ($matchevent->event_type_id == $event->id && $matchevent->ptid == $projectteamId) {
         $output .= '<li class="events">';
         if ($showEventInfo == 1) {
             // Size of the event icons in the tabs
             $width = 20;
             $height = 20;
             $type = 4;
             $imgTitle = JText::_($event->name);
             $icon = JoomleagueHelper::getPictureThumb($event->icon, $imgTitle, $width, $height, $type);
             $output .= $icon;
         }
         $event_minute = str_pad($matchevent->event_time, 2, '0', STR_PAD_LEFT);
         if ($this->config['show_event_minute'] == 1 && $matchevent->event_time > 0) {
             $output .= '<b>' . $event_minute . '\'</b> ';
         }
         if ($showEventInfo == 2) {
             $output .= JText::_($event->name) . ' ';
         }
         if (strlen($matchevent->firstname1 . $matchevent->lastname1) > 0) {
             $output .= JoomleagueHelper::formatName(null, $matchevent->firstname1, $matchevent->nickname1, $matchevent->lastname1, $this->config["name_format"]);
         } else {
             $output .= JText::_('COM_JOOMLEAGUE_UNKNOWN_PERSON');
         }
         // only show event sum and match notice when set to on in template cofig
         if ($this->config['show_event_sum'] == 1 || $this->config['show_event_notice'] == 1) {
             if ($this->config['show_event_sum'] == 1 && $matchevent->event_sum > 0 || $this->config['show_event_notice'] == 1 && strlen($matchevent->notice) > 0) {
                 $output .= ' (';
                 if ($this->config['show_event_sum'] == 1 && $matchevent->event_sum > 0) {
                     $output .= $matchevent->event_sum;
                 }
                 if ($this->config['show_event_sum'] == 1 && $matchevent->event_sum > 0 && ($this->config['show_event_notice'] == 1 && strlen($matchevent->notice) > 0)) {
                     $output .= ' | ';
                 }
                 if ($this->config['show_event_notice'] == 1 && strlen($matchevent->notice) > 0) {
                     $output .= $matchevent->notice;
                 }
                 $output .= ')';
             }
         }
         $output .= '</li>';
     }
     return $output;
 }
			<tr class="contentheading">
				<?php 
        if ($this->overallconfig['show_project_picture'] == 1) {
            echo '<td>';
            echo JoomleagueHelper::getPictureThumb($this->project->picture, $this->project->name, $this->overallconfig['project_picture_width'], $this->overallconfig['project_picture_height'], 2);
            echo '</td>';
        }
        if ($this->overallconfig['show_project_text'] == 1) {
            echo '<td>';
            echo $this->project->name;
            echo '</td>';
        }
        if (isset($this->division)) {
            if ($this->overallconfig['show_division_picture'] == 1) {
                echo '<td>';
                echo JoomleagueHelper::getPictureThumb($this->division->picture, $this->division->name, $this->overallconfig['division_picture_width'], $this->overallconfig['division_picture_height'], 2);
                echo '</td>';
            }
            if ($this->overallconfig['show_division_text'] == 1) {
                echo '<td>';
                echo ' ' . $this->division->name;
                echo '</td>';
            }
        }
        if ($this->overallconfig['show_print_button'] == 1) {
            if (JRequest::getVar('print') != 1) {
                echo '<td>';
                $overallconfig = $this->overallconfig;
                echo '<td class="buttonheading">';
                echo JoomleagueHelper::printbutton(null, $overallconfig);
                echo '&nbsp;</td>';
<!-- Main START -->
<table width="96%" align="center" border="0" cellpadding="0"
	cellspacing="0">
	<?php 
if ($this->config['show_logo'] == 1) {
    ?>
	<tr class="nextmatch">
		<td class="teamlogo"><?php 
    $pic = $this->config['show_picture'];
    echo JoomleagueHelper::getPictureThumb($this->teams[0]->{$pic}, $this->teams[0]->name, $this->config['team_picture_width'], $this->config['team_picture_height'], 1);
    ?>
</td>
		<td class="vs">&nbsp;</td>
		<td class="teamlogo"><?php 
    echo JoomleagueHelper::getPictureThumb($this->teams[1]->{$pic}, $this->teams[1]->name, $this->config['team_picture_width'], $this->config['team_picture_height'], 1);
    ?>
</td>
	</tr>
	<?php 
}
?>
	<tr class="nextmatch">
		<td class="team"><?php 
if (!is_null($this->teams)) {
    echo $this->teams[0]->name;
} else {
    echo JText::_("COM_JOOMLEAGUE_NEXTMATCH_UNKNOWNTEAM");
}
?>
</td>
Exemplo n.º 6
0
<table class="plgeneralinfo table">
	<tr>
	<?php 
if ($this->config['show_player_photo'] == 1) {
    ?>
		<td class="picture"><?php 
    $picturetext = JText::_('COM_JOOMLEAGUE_PERSON_PICTURE');
    $imgTitle = JText::sprintf($picturetext, JoomleagueHelper::formatName(null, $this->person->firstname, $this->person->nickname, $this->person->lastname, $this->config["name_format"]));
    $picture = $this->teamPlayer ? $this->teamPlayer->picture : null;
    if (empty($picture) || $picture == JoomleagueHelper::getDefaultPlaceholder("player")) {
        $picture = $this->person->picture;
    }
    if (!file_exists($picture)) {
        $picture = JoomleagueHelper::getDefaultPlaceholder("player");
    }
    echo JoomleagueHelper::getPictureThumb($picture, $imgTitle, $this->config['picture_width'], $this->config['picture_height']);
    ?>
</td>
		<?php 
}
?>
		<td class="info">
		<table class="plinfo table">
			<?php 
if (!empty($this->person->country) && $this->config["show_nationality"] == 1) {
    ?>
			<tr>
				<td class=""><span class="label"><?php 
    echo JText::_('COM_JOOMLEAGUE_PERSON_NATIONALITY');
    ?>
				</span>
Exemplo n.º 7
0
                    ?>
							</td>
					<?php 
                    if ($showPicture == 1) {
                        $picture = isset($item->teamplayerpic) ? $item->teamplayerpic : null;
                        if (empty($picture) || $picture == JoomleagueHelper::getDefaultPlaceholder("player")) {
                            $picture = $item->picture;
                        }
                        if (!file_exists($picture)) {
                            $picture = JoomleagueHelper::getDefaultPlaceholder("player");
                        }
                        $name = JoomleagueHelper::formatName(null, $item->firstname, $item->nickname, $item->lastname, $params->get("name_format"));
                        ?>
						<td class="picture">
							<?php 
                        echo JoomleagueHelper::getPictureThumb($picture, $name, $pictureHeight, $pictureWidth) . '&nbsp;';
                        ?>
						</td>
						<?php 
                    }
                    ?>
						<td class="personname">
							<?php 
                    echo modJLGStatHelper::printName($item, $team, $params, $list['project']);
                    ?>
						</td>
					<?php 
                    if ($showTeam == 1) {
                        ?>
						<td class="team">
						<?php 
Exemplo n.º 8
0
    ?>
						<td><?php 
    echo $row->name;
    ?>
</td>
						<td><?php 
    if ($row->name != JText::_($row->name)) {
        echo JText::_($row->name);
    }
    ?>
</td>
						<td class="center">
							<?php 
    $picture = JPATH_SITE . '/' . $row->icon;
    $desc = JText::_($row->name);
    echo JoomleagueHelper::getPictureThumb($picture, $desc, 0, 21, 4);
    ?>
						</td>
						<td class="order">
							<span>
								<?php 
    echo $this->pagination->orderUpIcon($i, $i > 0, 'sportstype.orderup', 'COM_JOOMLEAGUE_GLOBAL_ORDER_UP', $ordering);
    ?>
							</span>
							<span>
								<?php 
    echo $this->pagination->orderDownIcon($i, $n, $i < $n, 'sportstype.orderdown', 'COM_JOOMLEAGUE_GLOBAL_ORDER_DOWN', $ordering);
    ?>
								<?php 
    $disabled = true ? '' : 'disabled="disabled"';
    ?>
Exemplo n.º 9
0
    echo Countries::getCountryFlag($person->country) . " ";
}
if ($params->get('show_player_link')) {
    $link = JoomleagueHelperRoute::getPlayerRoute($list['project']->slug, $list['infoteam']->team_id, $person->slug);
    echo JHtml::link($link, $text);
} else {
    echo JText::sprintf('%1$s', $text);
}
?>
</li>
<?php 
if ($params->get('show_team_name')) {
    ?>
<li class="teamname">
<?php 
    echo JoomleagueHelper::getPictureThumb($list['infoteam']->team_picture, $list['infoteam']->name, $params->get('team_picture_width', 21), $params->get('team_picture_height', 0), 1) . " ";
    $text = $list['infoteam']->name;
    if ($params->get('show_team_link')) {
        $link = JoomleagueHelperRoute::getTeamInfoRoute($list['project']->slug, $list['infoteam']->team_id);
        echo JHtml::link($link, $text);
    } else {
        echo JText::sprintf('%1$s', $text);
    }
    ?>
</li>
<?php 
}
if ($params->get('show_position_name') && isset($list['inprojectinfo']->position_name)) {
    ?>
<li class="positionname"><?php 
    $positionName = $list['inprojectinfo']->position_name;
Exemplo n.º 10
0
 $type = 3;
 switch ($this->config['show_picture']) {
     case 'logo_small':
         $picture = $game->{$pic};
         $type = 3;
         echo JoomleagueHelper::getPictureThumb($picture, $game->tname1, $this->config['picture_width'], $this->config['picture_height'], $type);
         break;
     case 'logo_medium':
         $picture = $game->{$pic};
         $type = 2;
         echo JoomleagueHelper::getPictureThumb($picture, $game->tname1, $this->config['picture_width'], $this->config['picture_height'], $type);
         break;
     case 'logo_big':
         $picture = $game->{$pic};
         $type = 1;
         echo JoomleagueHelper::getPictureThumb($picture, $game->tname1, $this->config['picture_width'], $this->config['picture_height'], $type);
         break;
     case 'country_small':
         $type = 6;
         $pic = 'away_country';
         if ($game->{$pic} != '' && !empty($game->{$pic})) {
             echo Countries::getCountryFlag($game->{$pic}, 'height="11"');
         }
         break;
     case 'country_big':
         $type = 7;
         $pic = 'away_country';
         if ($game->{$pic} != '' && !empty($game->{$pic})) {
             echo Countries::getCountryFlag($game->{$pic}, 'height="50"');
         }
         break;
        }
        ?>
			<tr class="<?php 
        echo $k == 0 ? $this->config['style_class1'] : $this->config['style_class2'];
        ?>
">
				<td width="30" style="text-align:center; ">
					<?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 
                    ?>
							</td>
					<?php 
                    if ($showPicture == 1) {
                        $picture = isset($item->teamplayerpic) ? $item->teamplayerpic : null;
                        if (empty($picture) || $picture == JoomleagueHelper::getDefaultPlaceholder("player")) {
                            $picture = $item->picture;
                        }
                        if (!file_exists($picture)) {
                            $picture = JoomleagueHelper::getDefaultPlaceholder("player");
                        }
                        $name = JoomleagueHelper::formatName(null, $item->fname, $item->nname, $item->lname, $params->get("name_format"));
                        ?>
							<td class="picture">
								<?php 
                        echo JoomleagueHelper::getPictureThumb($picture, $name, $pictureWidth, $pictureHeight);
                        ?>
							</td>
						<?php 
                    }
                    ?>
							<td class="personname">
								<?php 
                    echo modJLGEventsrankingHelper::printName($item, $team, $params, $list['project']);
                    ?>
							</td>
					<?php 
                    if ($showTeam == 1) {
                        ?>
							<td class="team">
						<?php 
Exemplo n.º 13
0
        if ($pic != "") {
            $team .= JoomleagueHelper::getPictureThumb($this->haHomeTeaminfo->{$pic}, $this->haHomeTeaminfo->name, $this->config['team_picture_width'], $this->config['team_picture_height'], 3);
            $team .= " ";
        }
        $team .= $this->haHomeTeaminfo->name;
        if ($this->config['show_teaminfo_link'] == 1) {
            $link = JoomleagueHelperRoute::getProjectTeamInfoRoute($this->project->id, $this->highest_away->project_hometeam_id);
            echo JHtml::link($link, $team);
        } else {
            echo $team;
        }
        echo " - ";
        $team = '';
        $pic = $this->config['show_picture'];
        if ($pic != "") {
            $team .= JoomleagueHelper::getPictureThumb($this->haAwayTeaminfo->{$pic}, $this->haAwayTeaminfo->name, $this->config['team_picture_width'], $this->config['team_picture_height'], 3);
            $team .= " ";
        }
        $team .= $this->haAwayTeaminfo->name;
        if ($this->config['show_teaminfo_link'] == 1) {
            $link = JoomleagueHelperRoute::getProjectTeamInfoRoute($this->project->id, $this->highest_away->project_awayteam_id);
            echo JHtml::link($link, $team);
        } else {
            echo $team;
        }
    }
    ?>
		</td>
		<td class="statvalue"><br />
		<?php 
    if ($this->totals->playedmatches > 0 && $this->highest_away) {
 echo "\n";
 //**************logo - jersey
 if ($config['show_logo_small_table'] != "no_logo") {
     echo '<td class="rankingrow_logo"';
     if ($color != '' && $config['use_background_row_color']) {
         echo ' style="background-color: ' . $color . '"';
     }
     echo ">";
     if ($config['show_logo_small_table'] == "country_flag") {
         JoomleagueHelper::showClubIcon($team->team, 2);
     } elseif ($config['show_logo_small_table'] == "logo_small_country_flag") {
         echo JoomleagueHelper::getPictureThumb($team->team->logo_small, $team->team->name, $config['team_picture_width'], $config['team_picture_height'], 3) . ' ';
         JoomleagueHelper::showClubIcon($team->team, 2);
     } elseif ($config['show_logo_small_table'] == "country_flag_logo_small") {
         JoomleagueHelper::showClubIcon($team->team, 2);
         echo ' ' . JoomleagueHelper::getPictureThumb($team->team->logo_small, $team->team->name, $config['team_picture_width'], $config['team_picture_height'], 3);
     } else {
         $pic = $config['show_logo_small_table'];
         switch ($pic) {
             case 'logo_small':
                 echo JHTML::image($team->team->{$pic}, $imgTitle, array('title' => $team->team->name, 'width' => '20'));
                 break;
             case 'logo_middle':
                 echo JHTML::image($team->team->{$pic}, $imgTitle, array('title' => $team->team->name, 'width' => '20'));
                 break;
             case 'logo_big':
                 echo JHTML::image($team->team->{$pic}, $imgTitle, array('title' => $team->team->name, 'width' => '20'));
                 break;
         }
         /*
         			echo JoomleagueHelper::getPictureThumb($team->team->$pic,
Exemplo n.º 15
0
    ?>
		<!-- SHOW LOGO - START -->
		<?php 
    if ($this->config['show_club_logo'] && $this->club->logo_big != '') {
        $club_emblem_title = str_replace("%CLUBNAME%", $this->club->name, JText::_('COM_JOOMLEAGUE_CLUBINFO_EMBLEM_TITLE'));
        $picture = $this->club->logo_big;
        echo JoomleagueHelper::getPictureThumb($picture, $club_emblem_title, $this->config['team_picture_width'], $this->config['team_picture_height'], 1);
    }
    ?>
		<!-- SHOW LOGO - END -->
		<!-- SHOW SMALL LOGO - START -->
		<?php 
    if ($this->config['show_club_shirt'] && $this->club->logo_small != '') {
        $club_trikot_title = str_replace("%CLUBNAME%", $this->club->name, JText::_("COM_JOOMLEAGUE_CLUBINFO_TRIKOT_TITLE"));
        $picture = $this->club->logo_small;
        echo JoomleagueHelper::getPictureThumb($picture, $club_emblem_title, 20, 20, 3);
    }
    ?>
		<!-- SHOW SMALL LOGO - END -->
	</div>
	<?php 
    if (!$this->config['show_club_info'] == 0) {
        ?>
	<div class="right-column">
		<?php 
        if ($this->club->address || $this->club->zipcode) {
            $addressString = Countries::convertAddressString($this->club->name, $this->club->address, $this->club->state, $this->club->zipcode, $this->club->location, $this->club->country, 'COM_JOOMLEAGUE_CLUBINFO_ADDRESS_FORM');
            ?>
			<span class="clubinfo_listing_item"><?php 
            echo JText::_('COM_JOOMLEAGUE_CLUBINFO_ADDRESS');
            $dummyStr = explode('<br />', $addressString);
         $teamB .= '</td>';
         break;
     case 2:
         $teamA .= '<td class="' . $class1 . '">';
         $teamA .= Countries::getCountryFlag($hometeam->country);
         $teamA .= '</td>';
         $teamB .= '<td class="' . $class2 . '">';
         $teamB .= Countries::getCountryFlag($guestteam->country);
         $teamB .= '</td>';
         break;
     case 3:
         $teamA .= '<td class="' . $class1 . '">';
         $teamA .= JoomleagueHelper::getPictureThumb($hometeam->picture, $hometeam->name, $this->config['team_picture_width'], $this->config['team_picture_height'], 1);
         $teamA .= '</td>';
         $teamB .= '<td class="' . $class2 . '">';
         $teamB .= JoomleagueHelper::getPictureThumb($guestteam->picture, $guestteam->name, $this->config['team_picture_width'], $this->config['team_picture_height'], 1);
         $teamB .= '</td>';
         break;
 }
 $seperator = '<td width="10">' . $this->config['seperator'] . '</td>';
 $isFavTeam = in_array($guestteam->id, $this->favteams);
 $away = JoomleagueHelper::formatTeamName($guestteam, "g" . $match->id . "t" . $guestteam->id, $this->config, $isFavTeam, $awaylink);
 $teamB .= '<td class="' . $class2 . '">' . $away . '</td>';
 if (!$match->cancel) {
     // In case show_part_results is true, then first check if the part results are available;
     // 'No part results available' occurs when teamX_result_split ONLY consists of zero or more ";"
     // (zero for projects with a single playing period, one or more for projects with two or more playing periods)
     $team1_result_split_present = preg_match('/^;*$/', $match->team1_result_split) == 0;
     $team2_result_split_present = preg_match('/^;*$/', $match->team2_result_split) == 0;
     if ($this->config['switch_home_guest']) {
         $result = $match->team2_result . '&nbsp;' . $this->config['seperator'] . '&nbsp;' . $match->team1_result;
Exemplo n.º 17
0
defined('_JEXEC') or die;
?>
<form name="adminForm" id="adminForm" method="post">
	<?php 
$dateformat = "%d-%m-%Y";
?>
	
<div class="clearfix">
	<div class="btn-wrapper input-append pull-left">
		<?php 
echo JHtml::calendar(JoomleagueHelper::convertDate($this->startdate, 1), 'startdate', 'startdate', $dateformat, array('class' => 'input-small'));
echo ' - ' . JHtml::calendar(JoomleagueHelper::convertDate($this->enddate, 1), 'enddate', 'enddate', $dateformat, array('class' => 'input-small'));
?>
		<input type="submit" class="button btn" name="reload View" value="<?php 
echo JText::_('COM_JOOMLEAGUE_GLOBAL_FILTER');
?>
" />
	</div>
	<div class="btn-wrapper input-append pull-right">
	<?php 
if ($this->club) {
    $picture = $this->club->logo_middle;
    echo JoomleagueHelper::getPictureThumb($picture, $this->club->name, 50, 50, 2);
}
?>
	</div>
</div>
	<?php 
echo JHtml::_('form.token') . "\n";
?>
</form><br />
Exemplo n.º 18
0
 /**
  * get img for team
  * @param object ranking row
  * @param int type = 1 for club small logo, 2 for country
  * @return html string
  */
 function getLogo($item, $params)
 {
     $type = $params->get('show_logo');
     if ($type == 'country_flag' && !empty($item->country)) {
         return Countries::getCountryFlag($item->country, 'class="teamcountry"');
     }
     //dynamic object property string
     $pic = $params->get('show_picture');
     return JoomleagueHelper::getPictureThumb($item->{$pic}, $item->name, $params->get('team_picture_width'), $params->get('team_picture_height'), 3);
 }
Exemplo n.º 19
0
		<?php 
            $playerName = JoomleagueHelper::formatName(null, $row->fname, $row->nname, $row->lname, $this->config['name_format']);
            ?>
		<?php 
            if ($this->config['show_picture_thumb'] == 1) {
                ?>
		<td class="td_c playerpic">
		<?php 
                $picture = isset($row->teamplayerpic) ? $row->teamplayerpic : null;
                if (empty($picture) || $picture == JoomleagueHelper::getDefaultPlaceholder("player")) {
                    $picture = $row->picture;
                }
                if (!file_exists($picture)) {
                    $picture = JoomleagueHelper::getDefaultPlaceholder("player");
                }
                echo JoomleagueHelper::getPictureThumb($picture, $playerName, $this->config['player_picture_width'], $this->config['player_picture_height']);
                ?>
		</td>
		<?php 
            }
            ?>

		<td class="td_l playername" width="30%">
		<?php 
            if ($this->config['link_to_player'] == 1) {
                $link = JoomleagueHelperRoute::getPlayerRoute($this->project->id, $row->tid, $row->pid);
                echo JHtml::link($link, $playerName);
            } else {
                echo $playerName;
            }
            ?>
Exemplo n.º 20
0
							<td class="center">
								<?php 
    echo $row->person_id;
    ?>
							</td>
							<td class="center">
								<?php 
    if ($row->picture == '') {
        $imageTitle = JText::_('COM_JOOMLEAGUE_ADMIN_TSTAFFS_NO_IMAGE');
        echo JHtml::_('image', 'administrator/components/com_joomleague/assets/images/delete.png', $imageTitle, 'title= "' . $imageTitle . '"');
    } elseif ($row->picture == JoomleagueHelper::getDefaultPlaceholder("player")) {
        $imageTitle = JText::_('COM_JOOMLEAGUE_ADMIN_TSTAFFS_DEFAULT_IMAGE');
        echo JHtml::_('image', 'administrator/components/com_joomleague/assets/images/information.png', $imageTitle, 'title= "' . $imageTitle . '"');
    } elseif ($row->picture == !'') {
        $playerName = JoomleagueHelper::formatName(null, $row->firstname, $row->nickname, $row->lastname, 0);
        echo JoomleagueHelper::getPictureThumb($row->picture, $playerName, 0, 21, 4);
    }
    ?>
							</td>
							<td class="nowrap" class="center">
								<?php 
    if ($row->project_position_id != 0) {
        $selectedvalue = $row->project_position_id;
        $append = '';
    } else {
        $selectedvalue = 0;
        $append = '';
    }
    if ($append != '') {
        ?>
									<script language="javascript">document.getElementById('cb<?php 
    function showMemberPicture($outputUserName, $user_id = 0)
    {
        global $mainframe, $option;
        $mainframe =& JFactory::getApplication();
        $db =& JFactory::getDBO();
        $playerName = $outputUserName;
        $picture = '';
        //	$mainframe->enqueueMessage(JText::_('username ->'.$outputUserName),'Notice');
        //	$mainframe->enqueueMessage(JText::_('user_id ->'.$user_id),'Notice');
        if ($this->config['show_photo']) {
            // von welcher komponente soll das bild kommen
            // und ist die komponente installiert
            $query = "SELECT option\n\t\t\t\t\tFROM #__components\n\t\t\t\t\tWHERE option LIKE '" . $this->config['show_image_from'] . "'";
            $db->setQuery($query);
            $results = $db->loadResult();
            if (!$results) {
                //$mainframe->enqueueMessage(JText::_('die komponente '.$this->config['show_image_from'].' ist f&uuml;r das profilbild nicht installiert'),'Error');
            }
            //		$mainframe->enqueueMessage(JText::_('komponente ->'.$this->config['show_image_from']),'Notice');
            switch ($this->config['show_image_from']) {
                case 'com_joomleague':
                    $picture = $this->predictionMember->picture;
                    break;
                case 'com_comprofiler':
                    break;
                case 'com_kunena':
                    $query = 'SELECT avatar
					FROM #__kunena_users
					WHERE userid = ' . (int) $user_id;
                    $db->setQuery($query);
                    $results = $db->loadResult();
                    //$mainframe->enqueueMessage(JText::_('com_kunena ->'.$results),'Notice');
                    if ($results) {
                        $picture = 'media/kunena/avatars/' . $results;
                    }
                    break;
                case 'com_community':
                    $query = 'SELECT avatar
					FROM #__community_users
					WHERE userid = ' . (int) $user_id;
                    $db->setQuery($query);
                    $results = $db->loadResult();
                    //$mainframe->enqueueMessage(JText::_('com_community ->'.$results),'Notice');
                    if ($results) {
                        $picture = $results;
                    }
                    break;
            }
            //$imgTitle = JText::sprintf('JL_PRED_USERS_AVATAR_OF', $outputUserName, '');
            if (!file_exists($picture)) {
                $picture = JoomleagueHelper::getDefaultPlaceholder("player");
            }
            //echo JHTML::image($picture, $imgTitle, array(' title' => $imgTitle));
            echo JoomleagueHelper::getPictureThumb($picture, $playerName, 0, 0);
        } else {
            echo '&nbsp;';
        }
    }
Exemplo n.º 22
0
    echo $row->name;
    ?>
</td>
						<td>
							<?php 
    if ($row->name == JText::_($row->name)) {
        echo '&nbsp;';
    } else {
        echo JText::_($row->name);
    }
    ?>
						</td>
						<td class="center">
							<?php 
    $desc = JText::_($row->name);
    echo JoomleagueHelper::getPictureThumb($row->icon, $desc, 0, 21, 4);
    ?>
						</td>
						<td class="center">
							<?php 
    echo JoomleagueHelper::getSportsTypeName($row->sports_type_id);
    ?>
						</td>
						<td class="center">
							<?php 
    echo $published;
    ?>
						</td>
						<td class="order">
							<span>
								<?php 
     }
 }
 $value = "";
 if ($k_r == $k_c) {
     if ($this->config['highlight_fav_team'] == 1 && (in_array($trow->team_id, $this->favteams) || in_array($tcol->team_id, $this->favteams))) {
         $dummy = '<td class="result" style="';
         $dummy .= ' color:' . $this->project->fav_team_text_color . ';';
         $dummy .= ' background-color:' . $this->project->fav_team_color . ';';
         $dummy .= '">';
     } else {
         $dummy = '<td style="text-align:center; vertical-align:middle; ">';
     }
     $value = $dummy;
     $title = '';
     $picture = 'media/com_joomleague/jl_images/bullet_red.png';
     $desc = JoomleagueHelper::getPictureThumb($picture, $title, 16, 16, 99);
     $value .= $desc;
 } else {
     if ($this->config['highlight_fav_team'] > 0 && (in_array($trow->team_id, $this->favteams) || in_array($tcol->team_id, $this->favteams))) {
         if ($this->config['highlight_fav_team'] == 1) {
             $dummy = '<td class="result" style="';
             $dummy .= ' color:' . $this->project->fav_team_text_color . ';';
             $dummy .= ' background-color:' . $this->project->fav_team_color . ';';
             $dummy .= '"  title="';
         } else {
             $dummy = '<td class="result" title="';
         }
     } else {
         $dummy = '<td class="result" title="';
     }
     $value = $dummy;
Exemplo n.º 24
0
     echo JoomleagueHelper::getPictureThumb($picture, $this->team2->name, $this->config['team_picture_width'], $this->config['team_picture_height'], $type);
     break;
 case 'logo_small':
     $picture = $this->team2->{$pic};
     $type = 3;
     echo JoomleagueHelper::getPictureThumb($picture, $this->team2->name, $this->config['team_picture_width'], $this->config['team_picture_height'], $type);
     break;
 case 'logo_medium':
     $picture = $this->team2->{$pic};
     $type = 2;
     echo JoomleagueHelper::getPictureThumb($picture, $this->team2->name, $this->config['team_picture_width'], $this->config['team_picture_height'], $type);
     break;
 case 'logo_big':
     $picture = $this->team2->{$pic};
     $type = 1;
     echo JoomleagueHelper::getPictureThumb($picture, $this->team2->name, $this->config['team_picture_width'], $this->config['team_picture_height'], $type);
     break;
 case 'country_small':
     $type = 6;
     $pic = 'country';
     if ($this->team2->{$pic} != '' && !empty($this->team2->{$pic})) {
         echo Countries::getCountryFlag($this->team2->{$pic}, 'height="11"');
     }
     break;
 case 'country_big':
     $type = 7;
     $pic = 'country';
     if ($this->team2->{$pic} != '' && !empty($this->team2->{$pic})) {
         echo Countries::getCountryFlag($this->team2->{$pic}, 'height="50"');
     }
     break;
     echo '<td class="rankingrow_logo"';
     if ($color != '' && $config['use_background_row_color']) {
         echo ' style="background-color: ' . $color . '"';
     }
     echo ">";
     if ($config['show_logo_small_table'] == "country_flag") {
         JoomleagueHelper::showClubIcon($team->team, 2);
     } elseif ($config['show_logo_small_table'] == "logo_small_country_flag") {
         echo JoomleagueHelper::getPictureThumb($team->team->logo_small, $team->team->name, $config['team_picture_width'], $config['team_picture_height'], 3) . ' ';
         JoomleagueHelper::showClubIcon($team->team, 2);
     } elseif ($config['show_logo_small_table'] == "country_flag_logo_small") {
         JoomleagueHelper::showClubIcon($team->team, 2);
         echo ' ' . JoomleagueHelper::getPictureThumb($team->team->logo_small, $team->team->name, $config['team_picture_width'], $config['team_picture_height'], 3);
     } else {
         $pic = $config['show_logo_small_table'];
         echo JoomleagueHelper::getPictureThumb($team->team->{$pic}, $team->team->name, $config['team_picture_width'], $config['team_picture_height'], 3);
     }
     echo '</td>';
     echo "\n";
 }
 //**************Team name
 echo '<td class="rankingrow_teamname" nowrap="nowrap"';
 if ($color != '' && $config['use_background_row_color']) {
     echo ' style="background-color: ' . $color . '"';
 }
 echo ">";
 $isFavTeam = in_array($team->team->id, explode(",", $this->project->fav_team));
 // TODO: ranking deviates from the other views, regarding highlighting of the favorite team(s). Align this...
 $config['highlight_fav'] = $isFavTeam;
 echo JoomleagueHelper::formatTeamName($team->team, 'tr' . $team->team->id, $config, $isFavTeam);
 echo '</td>';