Пример #1
0
 private function _getShowClubInfoLink()
 {
     $p = JRequest::getInt("p", 0);
     $cid = JRequest::getInt("cid", 0);
     $link = JoomleagueHelperRoute::getClubInfoRoute($p, $cid);
     return $link;
 }
 function save()
 {
     JRequest::checkToken() or jexit(JText::_('COM_JOOMLEAGUE_GLOBAL_INVALID_TOKEN'));
     $msg = '';
     $link = '';
     $post = JRequest::get('post');
     $project_id = JRequest::getInt('p', 0);
     $match_id = JRequest::getInt('mid', 0);
     $changes = JRequest::getInt('changes_check', 0);
     $model = $this->getModel('editevents');
     $user = JFactory::getUser();
     $post['playerpositions'] = $model->getProjectPositions(0, 1);
     $post['staffpositions'] = $model->getProjectPositions(0, 2);
     $post['refereepositions'] = $model->getProjectPositions(0, 3);
     if ($changes && ($model->isAllowed() || $model->isMatchAdmin($match_id, $user->id))) {
         if ($model->saveMatchStartingLineUps($post)) {
             $msg .= JText::_('Changes on selected match were saved');
         } else {
             $msg .= JText::_('Error while saving changes on selected match');
         }
     } else {
         $msg .= JText::_('Found any changes or you are no match admin. So nothing is saved!');
     }
     $link = JoomleagueHelperRoute::getEditEventsRouteNew($project_id, $match_id);
     //echo '<br />'; echo $link; echo '<br />'; echo $msg; echo '<br />'; die();
     $this->setRedirect($link, $msg);
 }
Пример #3
0
 public static function getTeamLink($item, $params, $project)
 {
     switch ($params->get('teamlink')) {
         case 'teaminfo':
             return JoomleagueHelperRoute::getTeamInfoRoute($project->slug, $item->team_slug);
         case 'roster':
             return JoomleagueHelperRoute::getPlayersRoute($project->slug, $item->team_slug);
         case 'teamplan':
             return JoomleagueHelperRoute::getTeamPlanRoute($project->slug, $item->team_slug);
         case 'clubinfo':
             return JoomleagueHelperRoute::getClubInfoRoute($project->slug, $item->club_slug);
     }
 }
Пример #4
0
 public function getroute()
 {
     $view = Jrequest::getCmd('view');
     switch ($view) {
         case "matrix":
             $link = JoomleagueHelperRoute::getMatrixRoute(JRequest::getVar('p'), JRequest::getVar('division'), JRequest::getVar('r'));
             break;
         case "teaminfo":
             $link = JoomleagueHelperRoute::getTeamInfoRoute(JRequest::getVar('p'), JRequest::getVar('tid'));
             break;
         case "referees":
             $link = JoomleagueHelperRoute::getRefereesRoute(JRequest::getVar('p'));
             break;
         case "results":
             $link = JoomleagueHelperRoute::getResultsRoute(JRequest::getVar('p'), JRequest::getVar('r'), JRequest::getVar('division'));
             break;
         case "resultsranking":
             $link = JoomleagueHelperRoute::getResultsRankingRoute(JRequest::getVar('p'));
             break;
         case "rankingmatrix":
             $link = JoomleagueHelperRoute::getRankingMatrixRoute(JRequest::getVar('p'), JRequest::getVar('r'), JRequest::getVar('division'));
             break;
         case "resultsrankingmatrix":
             $link = JoomleagueHelperRoute::getResultsRankingMatrixRoute(JRequest::getVar('p'), JRequest::getVar('r'), JRequest::getVar('division'));
             break;
         case "teamplan":
             $link = JoomleagueHelperRoute::getTeamPlanRoute(JRequest::getVar('p'), JRequest::getVar('tid'), JRequest::getVar('division'));
             break;
         case "roster":
             $link = JoomleagueHelperRoute::getPlayersRoute(JRequest::getVar('p'), JRequest::getVar('tid'), null, JRequest::getVar('division'));
             break;
         case "eventsranking":
             $link = JoomleagueHelperRoute::getEventsRankingRoute(JRequest::getVar('p'), JRequest::getVar('division'), JRequest::getVar('tid'));
             break;
         case "curve":
             $link = JoomleagueHelperRoute::getCurveRoute(JRequest::getVar('p'), JRequest::getVar('tid'), 0, JRequest::getVar('division'));
             break;
         case "statsranking":
             $link = JoomleagueHelperRoute::getStatsRankingRoute(JRequest::getVar('p'), JRequest::getVar('division'));
             break;
         default:
         case "ranking":
             $link = JoomleagueHelperRoute::getRankingRoute(JRequest::getVar('p'), JRequest::getVar('r'), null, null, 0, JRequest::getVar('division'));
     }
     // echo json_encode($link);
     // Use the correct json mime-type
     header('Content-Type: application/json');
     // Send the response.
     echo json_encode($link);
     JFactory::getApplication()->close();
 }
Пример #5
0
 public static function getStaffLink($item, $params)
 {
     $flag = "";
     if ($params->get('show_flag')) {
         $flag = Countries::getCountryFlag($item->country) . "&nbsp;";
     }
     $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>';
     }
 }
 function getObjectInfo($id, $language = null)
 {
     $info = new JCommentsObjectInfo();
     $routerHelper = JPATH_SITE . '/components/com_joomleague/helpers/route.php';
     if (is_file($routerHelper)) {
         require_once $routerHelper;
         $db = JFactory::getDBO();
         $query = "SELECT m.id as matchid,\r\n\t\t\t\t\t\t\t\tt1.short_name t1name,\r\n\t\t\t\t\t\t\t\tt2.short_name t2name,\r\n\t\t\t\t\t\t\t\tm.projectteam1_id,\r\n\t\t\t\t\t\t\t\tm.projectteam2_id,\r\n\t\t\t\t\t\t\t\tm.team1_result,\r\n\t\t\t\t\t\t\t\tm.team2_result,\r\n\t\t\t\t\t\t\t\tm.modified_by,\r\n\t\t\t\t\t\t\t\tr.project_id,\r\n\t\t\t\t\t\t\t\tp.name as projectname" . " FROM #__joomleague_match as m" . " LEFT JOIN #__joomleague_round as r ON r.id=m.round_id" . " INNER JOIN #__joomleague_project_team AS pt1 ON m.projectteam1_id=pt1.id" . " INNER JOIN #__joomleague_project_team AS pt2 ON m.projectteam2_id=pt2.id" . " INNER JOIN #__joomleague_team AS t1 ON pt1.team_id=t1.id" . " INNER JOIN #__joomleague_team AS t2 ON pt2.team_id=t2.id" . " INNER JOIN #__joomleague_project AS p ON pt1.project_id=p.id" . " WHERE m.id = " . $id;
         $db->setQuery($query);
         $row = $db->loadObject();
         if (!empty($row)) {
             $info->title = $row->projectname . " " . $row->t1name . " vs. " . $row->t2name;
             $info->userid = $row->modified_by;
             $info->link = JRoute::_(JoomleagueHelperRoute::getNextMatchRoute($row->project_id, $row->matchid));
         }
     }
     return $info;
 }
 function getroute()
 {
     $app =& JFactory::getApplication();
     $view = Jrequest::getCmd('view');
     switch ($view) {
         case "teaminfo":
             $link = JoomleagueHelperRoute::getTeamInfoRoute(JRequest::getVar('p'), JRequest::getVar('tid'));
             break;
         case "resultsranking":
             $link = JoomleagueHelperRoute::getResultsRankingRoute(JRequest::getVar('p'));
             break;
         case "rankingmatrix":
             $link = JoomleagueHelperRoute::getRankingMatrixRoute(JRequest::getVar('p'));
             break;
         case "resultsrankingmatrix":
             $link = JoomleagueHelperRoute::getResultsRankingMatrixRoute(JRequest::getVar('p'));
             break;
         case "teamplan":
             $link = JoomleagueHelperRoute::getTeamPlanRoute(JRequest::getVar('p'), JRequest::getVar('tid'), JRequest::getVar('division'));
             break;
         case "roster":
             $link = JoomleagueHelperRoute::getPlayersRoute(JRequest::getVar('p'), JRequest::getVar('tid'));
             break;
         case "eventsranking":
             $link = JoomleagueHelperRoute::getEventsRankingRoute(JRequest::getVar('p'), JRequest::getVar('division'));
             break;
         case "curve":
             $link = JoomleagueHelperRoute::getCurveRoute(JRequest::getVar('p'), 0, 0, JRequest::getVar('division'));
             break;
         case "statsranking":
             $link = JoomleagueHelperRoute::getStatsRankingRoute(JRequest::getVar('p'), JRequest::getVar('division'));
             break;
         default:
         case "ranking":
             $link = JoomleagueHelperRoute::getRankingRoute(JRequest::getVar('p'), null, null, null, 0, JRequest::getVar('division'));
     }
     echo json_encode($link);
     $app->close();
 }
 function showReportDecisionIcons(&$game)
 {
     //echo '<br /><pre>~'.print_r($game,true).'~</pre><br />';
     $output = '';
     $report_link = JoomleagueHelperRoute::getMatchReportRoute($game->project_id, $game->id);
     if ($game->show_report && trim($game->summary) != '' || $game->alt_decision || $game->match_result_type > 0) {
         if ($game->alt_decision) {
             $imgTitle = JText::_($game->decision_info);
             $img = 'media/com_joomleague/jl_images/court.gif';
         } else {
             $imgTitle = JText::_('Has match summary');
             $img = 'media/com_joomleague/jl_images/zoom.png';
         }
         $output .= JHTML::_('link', $report_link, JHTML::image(JURI::root() . $img, $imgTitle, array("border" => 0, "title" => $imgTitle)), array("title" => $imgTitle));
     } else {
         $output .= '&nbsp;';
     }
     return $output;
 }
							<?php 
    echo JText::_('Team of Player');
    ?>
						</th>
						<th class="td_l">
							<?php 
    echo JText::_('Position in Team');
    ?>
						</th>
					</tr>
					<?php 
    $k = 0;
    foreach ($this->historyPlayer as $station) {
        #$link1 = JoomleagueHelperRoute::getPlayerRoute( $station->project_id, $this->person->id , '1' );
        $link1 = JoomleagueHelperRoute::getPlayerRoute($station->project_id, $station->person_id, '1');
        $link2 = JoomleagueHelperRoute::getPlayersRoute($station->project_id, $station->team_id);
        ?>
						<tr class="<?php 
        echo $k == 0 ? 'sectiontableentry1' : 'sectiontableentry2';
        ?>
">
							<td class="td_l">
								<?php 
        echo JHtml::link($link1, $station->project_name);
        ?>
							</td>
							<td class="td_l">
								<?php 
        echo $station->season_name;
        ?>
							</td>
Пример #10
0
?>
</span>
				</td>
				<td class="data">
				<?php 
$outputName = JoomleagueHelper::formatName(null, $this->person->firstname, $this->person->nickname, $this->person->lastname, $this->config["name_format"]);
if ($this->person->id) {
    switch ($this->config['show_user_profile']) {
        case 1:
            // Link to Joomla Contact Page
            $link = JoomleagueHelperRoute::getContactRoute($this->person->contact_id);
            $outputName = JHtml::link($link, $outputName);
            break;
        case 2:
            // Link to CBE User Page with support for JoomLeague Tab
            $link = JoomleagueHelperRoute::getUserProfileRouteCBE($this->person->id, $this->project->id, $this->person->id);
            $outputName = JHtml::link($link, $outputName);
            break;
        default:
            break;
    }
}
echo $outputName;
?>
				</td>
			</tr>
			<?php 
if (!empty($this->person->nickname)) {
    ?>
			<tr>
				<td class="">
Пример #11
0
 function getChartURL()
 {
     $url = JoomleagueHelperRoute::getStatsChartDataRoute($this->projectid, $this->divisionid);
     $url = str_replace('&', '%26', $url);
     return $url;
 }
<!-- section header e.g. ranking, results etc. -->
<a id="jl_top"></a>

<table class="contentpaneopen">
	<tr>
		<td class="contentheading">
		<?php 
if ($this->roundid) {
    $title = JText::_('COM_JOOMLEAGUE_RESULTS_ROUND_RESULTS');
    if (isset($this->division)) {
        $title = JText::sprintf('COM_JOOMLEAGUE_RESULTS_ROUND_RESULTS2', '<i>' . $this->division->name . '</i>');
    }
    JoomleagueHelperHtml::showMatchdaysTitle($title, $this->roundid, $this->config);
    if ($this->showediticon) {
        $link = JoomleagueHelperRoute::getResultsRoute($this->project->id, $this->roundid, $this->model->divisionid, $this->model->mode, $this->model->order, $this->config['result_style_edit']);
        $imgTitle = JText::_('COM_JOOMLEAGUE_RESULTS_ENTER_EDIT_RESULTS');
        $desc = JHTML::image('media/com_joomleague/jl_images/edit.png', $imgTitle, array(' title' => $imgTitle));
        echo ' ';
        echo JHTML::link($link, $desc);
    }
} else {
    //1 request for current round
    // seems to be this shall show a plan of matches of a team???
    JoomleagueHelperHtml::showMatchdaysTitle(JText::_('COM_JOOMLEAGUE_RESULTS_PLAN'), 0, $this->config);
}
?>
		</td>
			<?php 
if ($this->config['show_matchday_dropdown'] == 1) {
    ?>
         break;
     case 1:
         $result_link = JoomleagueHelperRoute::getResultsRoute($match->project_id, $match->roundid, $match->division_id);
         $urlfronthome = '<a href="' . $result_link . '">';
         $urlbackhome = "</a>";
         $urlfrontaway = '<a href="' . $result_link . '">';
         $urlbackaway = "</a>";
         break;
     case 2:
         $urlfronthome = '<a href="' . $report_link . '">';
         $urlbackhome = "</a>";
         $urlfrontaway = '<a href="' . $report_link . '">';
         $urlbackaway = "</a>";
         break;
     case 3:
         $plan_link = JoomleagueHelperRoute::getTeamPlanRoute($match->project_id, $match->team1_id);
         $urlfronthome = '<a href="' . $plan_link . '">';
         $urlbackhome = "</a>";
         $urlfrontaway = '<a href="' . $plan_link . '">';
         $urlbackaway = "</a>";
         break;
 }
 // Decide how team name/icon will be shown
 switch ($teamformat) {
     //Long name
     case 0:
         $home_name = $urlfronthome . $match->home_name . $urlbackhome;
         $away_name = $urlfrontaway . $match->away_name . $urlbackaway;
         break;
         //Middle name
     //Middle name
Пример #14
0
<?php

defined('_JEXEC') or die('Restricted access');
?>

<table 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::getPlayersRoute($this->project->id, $this->team->id, 'teamplayer.select', $this->projectteam->division_id, $this->projectteam->ptid);
    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_ROSTER_EDIT'), array("title" => JText::_("COM_JOOMLEAGUE_ROSTER_EDIT")));
    echo '</a>';
}
?>
		</td>
	</tr>
</table>
<br />
Пример #15
0
 /**
  * return thumb up/down image as link with score as title
  *
  * @param object $game
  * @param int $projectteam_id
  * @param array attributes
  * @return string linked image html code
  */
 public function getThumbScore($game, $projectteam_id, $attributes = null)
 {
     if (!($img = self::getThumbUpDownImg($game, $projectteam_id, $attributes = null))) {
         return false;
     }
     $txt = $teams[$game->projectteam1_id]->name . ' - ' . $teams[$game->projectteam2_id]->name . ' ' . $game->team1_result . ' - ' . $game->team2_result;
     $attribs = array('title' => $txt);
     if (is_array($attributes)) {
         $attribs = array_merge($attributes, $attribs);
     }
     $url = JRoute::_(JoomleagueHelperRoute::getMatchReportRoute($game->project_slug, $game->slug));
     return JHTML::link($url, $img);
 }
Пример #16
0
 static function showTeamIcons(&$team, &$config)
 {
     if (!isset($team->projectteamid)) {
         return "";
     }
     $projectteamid = $team->projectteamid;
     $teamname = $team->name;
     $teamid = $team->team_id;
     $teamSlug = isset($team->team_slug) ? $team->team_slug : $teamid;
     $clubSlug = isset($team->club_slug) ? $team->club_slug : $team->club_id;
     $division_slug = isset($team->division_slug) ? $team->division_slug : $team->division_id;
     $projectSlug = isset($team->project_slug) ? $team->project_slug : $team->project_id;
     $output = '';
     if ($config['show_team_link']) {
         $link = JoomleagueHelperRoute::getPlayersRoute($projectSlug, $teamSlug);
         $title = JText::_('COM_JOOMLEAGUE_TEAMICONS_ROSTER_LINK') . '&nbsp;' . $teamname;
         $picture = 'media/com_joomleague/jl_images/team_icon.png';
         $desc = self::getPictureThumb($picture, $title, 0, 0, 4);
         $output .= JHtml::link($link, $desc);
     }
     if ((!isset($team_plan) || $teamid != $team_plan->id) && $config['show_plan_link']) {
         $link = JoomleagueHelperRoute::getTeamPlanRoute($projectSlug, $teamSlug, $division_slug);
         $title = JText::_('COM_JOOMLEAGUE_TEAMICONS_TEAMPLAN_LINK') . '&nbsp;' . $teamname;
         $picture = 'media/com_joomleague/jl_images/calendar_icon.gif';
         $desc = self::getPictureThumb($picture, $title, 0, 0, 4);
         $output .= JHtml::link($link, $desc);
     }
     if ($config['show_curve_link']) {
         $link = JoomleagueHelperRoute::getCurveRoute($projectSlug, $teamSlug, 0, $division_slug);
         $title = JText::_('COM_JOOMLEAGUE_TEAMICONS_CURVE_LINK') . '&nbsp;' . $teamname;
         $picture = 'media/com_joomleague/jl_images/curve_icon.gif';
         $desc = self::getPictureThumb($picture, $title, 0, 0, 4);
         $output .= JHtml::link($link, $desc);
     }
     if ($config['show_teaminfo_link']) {
         $link = JoomleagueHelperRoute::getTeamInfoRoute($projectSlug, $teamid);
         $title = JText::_('COM_JOOMLEAGUE_TEAMICONS_TEAMINFO_LINK') . '&nbsp;' . $teamname;
         $picture = 'media/com_joomleague/jl_images/teaminfo_icon.png';
         $desc = self::getPictureThumb($picture, $title, 0, 0, 4);
         $output .= JHtml::link($link, $desc);
     }
     if ($config['show_club_link']) {
         $link = JoomleagueHelperRoute::getClubInfoRoute($projectSlug, $clubSlug);
         $title = JText::_('COM_JOOMLEAGUE_TEAMICONS_CLUBINFO_LINK') . '&nbsp;' . $teamname;
         $picture = 'media/com_joomleague/jl_images/mail.gif';
         $desc = self::getPictureThumb($picture, $title, 0, 0, 4);
         $output .= JHtml::link($link, $desc);
     }
     if ($config['show_teamstats_link']) {
         $link = JoomleagueHelperRoute::getTeamStatsRoute($projectSlug, $teamSlug);
         $title = JText::_('COM_JOOMLEAGUE_TEAMICONS_TEAMSTATS_LINK') . '&nbsp;' . $teamname;
         $picture = 'media/com_joomleague/jl_images/teamstats_icon.png';
         $desc = self::getPictureThumb($picture, $title, 0, 0, 4);
         $output .= JHtml::link($link, $desc);
     }
     if ($config['show_clubplan_link']) {
         $link = JoomleagueHelperRoute::getClubPlanRoute($projectSlug, $clubSlug);
         $title = JText::_('COM_JOOMLEAGUE_TEAMICONS_CLUBPLAN_LINK') . '&nbsp;' . $teamname;
         $picture = 'media/com_joomleague/jl_images/clubplan_icon.png';
         $desc = self::getPictureThumb($picture, $title, 0, 0, 4);
         $output .= JHtml::link($link, $desc);
     }
     if ($config['show_rivals_link']) {
         $link = JoomleagueHelperRoute::getRivalsRoute($projectSlug, $teamSlug);
         $title = JText::_('COM_JOOMLEAGUE_TEAMICONS_RIVALS_LINK') . '&nbsp;' . $teamname;
         $picture = 'media/com_joomleague/jl_images/rivals.png';
         $desc = self::getPictureThumb($picture, $title, 0, 0, 4);
         $output .= JHtml::link($link, $desc);
     }
     return $output;
 }
 function getScoreLink($game, $project)
 {
     if (isset($game->team1_result) || $game->alt_decision) {
         return JoomleagueHelperRoute::getMatchReportRoute($project->slug, $game->id);
     } else {
         return JoomleagueHelperRoute::getNextMatchRoute($project->slug, $game->id);
     }
 }
                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);
                }
                echo '</td>';
                echo "\n";
                break;
        }
    }
    echo '</tr>';
    echo "\n";
    $k = 1 - $k;
    $counter++;
    $temprank = $team->rank;
}
			<thead>
			<tr class="sectiontableheader">
				<th colspan=10><?php 
                echo $game->project_name;
                ?>
</th>
			</tr>
			</thead>
			<?php 
                $pr_id = $game->prid;
            }
            ?>
					<?php 
            $class = $k == 0 ? 'sectiontableentry1' : 'sectiontableentry2';
            $result_link = JoomleagueHelperRoute::getResultsRoute($game->project_id, $game->roundid);
            $report_link = JoomleagueHelperRoute::getMatchReportRoute($game->project_id, $game->id);
            $home = $this->gamesteams[$game->projectteam1_id];
            $away = $this->gamesteams[$game->projectteam2_id];
            ?>
			<tr class="<?php 
            echo $class;
            ?>
">
				<td><?php 
            echo JHTML::link($result_link, $game->roundcode);
            ?>
</td>
				<td class="nowrap"><?php 
            echo JHTML::date($date, JText::_('COM_JOOMLEAGUE_MATCHDAYDATE'));
            ?>
</td>
Пример #20
0
$career['played'] = 0;
$career['started'] = 0;
$career['in'] = 0;
$career['out'] = 0;
$career['playedtime'] = 0;
$player = JLGModel::getInstance("Person", "JoomleagueModel");
if (count($this->historyPlayer) > 0) {
    foreach ($this->historyPlayer as $player_hist) {
        $model = $this->getModel();
        $this->inoutstat = $model->getInOutStats($player_hist->project_id, $player_hist->ptid, $player_hist->tpid);
        // time played
        $timePlayed = 0;
        $this->timePlayed = $model->getTimePlayed($player_hist->tpid, $this->project->game_regular_time);
        $timePlayed = $this->timePlayed;
        $link1 = JoomleagueHelperRoute::getPlayerRoute($player_hist->project_slug, $player_hist->team_slug, $this->person->slug);
        $link2 = JoomleagueHelperRoute::getTeamInfoRoute($player_hist->project_slug, $player_hist->team_slug);
        ?>
			<tr class="<?php 
        echo $k == 0 ? $this->config['style_class1'] : $this->config['style_class2'];
        ?>
">
				<td class="td_l" nowrap="nowrap"><?php 
        echo JHtml::link($link1, $player_hist->project_name);
        ?>
				</td>
				<td class="td_l" class="nowrap">
				<?php 
        if ($this->config['show_playerstats_teamlink'] == 1) {
            echo JHtml::link($link2, $player_hist->team_name);
        } else {
            echo $player_hist->team_name;
Пример #21
0
						<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>
Пример #22
0
            ?>
	      	----
	      <?php 
        }
        ?>
      </td>
      <td class="statlabel"><?php 
        echo JText::_('COM_JOOMLEAGUE_NEXTMATCH_HIGHEST_LOSS_AWAY');
        ?>
</td>
      <td class="valueright">
	    	<?php 
        if ($stat = $this->away_highest_away_def) {
            ?>
	        	<?php 
            echo JHtml::link(JoomleagueHelperRoute::getMatchReportRoute($this->away_highest_away_def->pid, $this->away_highest_away_def->mid), sprintf("%s - %s %s:%s", $stat->hometeam, $stat->awayteam, $stat->homegoals, $stat->awaygoals));
            ?>
	      <?php 
        } else {
            ?>
	      	----
	      <?php 
        }
        ?>
      </td>
    </tr>
	<?php 
    }
}
?>
</td>
		<td class="vs"><?php 
echo JText::_("COM_JOOMLEAGUE_NEXTMATCH_VS");
?>
</td>
		<td class="team"><?php 
if (!is_null($this->teams)) {
    echo $this->teams[1]->name;
} else {
    echo JText::_("COM_JOOMLEAGUE_NEXTMATCH_UNKNOWNTEAM");
}
?>
</td>
	</tr>
</table>

	<?php 
$report_link = JoomleagueHelperRoute::getMatchReportRoute($this->project->id, $this->match->id);
if (isset($this->match->team1_result) && isset($this->match->team2_result)) {
    ?>
			<div class="notice">
			<?php 
    $text = JText::_("COM_JOOMLEAGUE_NEXTMATCH_ALREADYPLAYED");
    echo JHTML::link($report_link, $text);
    ?>
			</div>
			<?php 
}
?>
                
<br />
Пример #24
0
 }
 echo '</ul>';
 echo '</td>';
 echo '<td class="list">';
 echo '<ul>';
 foreach ($this->matchevents as $me) {
     if ($me->event_type_id == $event->id && $me->ptid == $this->match->projectteam2_id) {
         echo '<li class="list">';
         if ($this->config['show_event_minute'] == 1 && $me->event_time > 0) {
             $prefix = str_pad($me->event_time, 2, '0', STR_PAD_LEFT) . "' ";
         } else {
             $prefix = null;
         }
         $match_player = JoomleagueHelper::formatName($prefix, $me->firstname1, $me->nickname1, $me->lastname1, $this->config["name_format"]);
         if ($this->config['event_link_player'] == 1 && $me->playerid != 0) {
             $player_link = JoomleagueHelperRoute::getPlayerRoute($this->project->slug, $me->team_id, $me->playerid);
             $match_player = JHtml::link($player_link, $match_player);
         }
         echo $match_player;
         // only show event sum and match notice when set to on in template cofig
         $sum_notice = "";
         if ($this->config['show_event_sum'] == 1 || $this->config['show_event_notice'] == 1) {
             if ($this->config['show_event_sum'] == 1 && $me->event_sum > 0 || $this->config['show_event_notice'] == 1 && strlen($me->notice) > 0) {
                 $sum_notice .= ' (';
                 if ($this->config['show_event_sum'] == 1 && $me->event_sum > 0) {
                     $sum_notice .= $me->event_sum;
                 }
                 if ($this->config['show_event_sum'] == 1 && $me->event_sum > 0 && ($this->config['show_event_notice'] == 1 && strlen($me->notice) > 0)) {
                     $sum_notice .= ' | ';
                 }
                 if ($this->config['show_event_notice'] == 1 && strlen($me->notice) > 0) {
?>
	<!-- 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;
        }
Пример #26
0
$document = JFactory::getDocument();
JHTML::_('behavior.mootools');
$version = urlencode(JoomleagueHelper::getVersion());
$document->addScript(JURI::root() . 'components/com_joomleague/assets/js/eventsediting.js?v=' . $version);
?>
<div style="overflow:auto;">
	<a name="jl_top" id="jl_top"></a>
	<!-- section header e.g. ranking, results etc. -->
	<table width='100%' class='contentpaneopen'>
		<tr>
			<td class="contentheading">
				<?php 
if ($this->roundid > 0) {
    JoomleagueHelperHtml::showMatchdaysTitle(JText::_('Round results'), $this->roundid, $this->config);
    if ($this->showediticon) {
        $link = JoomleagueHelperRoute::getResultsRoute($this->project->id, $this->roundid);
        $imgTitle = JText::_('Exit Edit Mode');
        $desc = JHTML::image('media/com_joomleague/jl_images/edit_exit.png', $imgTitle, array(' title' => $imgTitle));
        echo '&nbsp;';
        echo JHTML::link($link, $desc);
    }
}
?>
			</td>
			<td><?php 
echo JoomleagueHelperHtml::getRoundSelectNavigation(TRUE);
?>
</td>
		</tr>
	</table>
	<form name="adminForm" id="adminForm" method="post" action="<?php 
            echo JText::_('COM_JOOMLEAGUE_TEAMINFO_TEAM_NAME');
            ?>
</span>
		<span class="clubinfo_listing_value"> <?php 
            $link = JoomleagueHelperRoute::getTeamInfoRoute($this->project->slug, $this->team->slug);
            echo JHTML::link($link, $this->team->tname);
            ?>
		</span>
	</div>
	<div class="jl_parentContainer">
		<span class="clubinfo_listing_item"> <?php 
            echo JText::_('COM_JOOMLEAGUE_TEAMINFO_TEAM_NAME_SHORT');
            ?>
</span>
		<span class="clubinfo_listing_value"> <?php 
            $link = JoomleagueHelperRoute::getTeamStatsRoute($this->project->slug, $this->team->slug);
            echo JHTML::link($link, $this->team->short_name);
            ?>
		</span>
	</div>
			<?php 
            if ($this->team->info) {
                ?>
	<div class="jl_parentContainer">
		<span class="clubinfo_listing_item"> <?php 
                echo JText::_('COM_JOOMLEAGUE_TEAMINFO_INFO');
                ?>
</span>
		<span class="clubinfo_listing_value"> <?php 
                echo $this->team->info;
                ?>
                    $link = JoomleagueHelperRoute::getNextMatchRoute($this->project->slug, $match->id) . '#comments';
                }
                $viewComment = JHTML::link($link, $href_text);
                echo $viewComment;
            } else {
                $imgTitle = JText::_('COM_JOOMLEAGUE_TEAMPLAN_COMMENTS_COUNT_NOCOMMENT');
                if ($this->config['show_comments_count'] == 1) {
                    $href_text = JHTML::image(JURI::root() . 'media/com_joomleague/jl_images/discuss.gif', $imgTitle, array(' title' => $imgTitle, ' border' => 0, ' style' => 'vertical-align: middle'));
                } elseif ($this->config['show_comments_count'] == 2) {
                    $href_text = '<span title="' . $imgTitle . '">(' . $count . ')</span>';
                }
                //Link
                if (isset($match->team1_result)) {
                    $link = JoomleagueHelperRoute::getMatchReportRoute($this->project->slug, $match->id) . '#comments';
                } else {
                    $link = JoomleagueHelperRoute::getNextMatchRoute($this->project->slug, $match->id) . '#comments';
                }
                $viewComment = JHTML::link($link, $href_text);
                echo $viewComment;
            }
            ?>
</td>
		<?php 
        }
        ?>
	</tr>
	<?php 
        if ($hasEvents) {
            ?>
	<!-- Show icon for editing events in edit mode -->
	<tr class="events <?php 
Пример #29
0
        ?>
				<?php 
    }
    ?>
		<?php 
}
?>
		
		</tbody>
	</table>


	<?php 
if ($params->get('show_full_link', 1)) {
    ?>
		<div class="mod_jl_results_fulltablelink<?php 
    echo $params->get('moduleclass_sfx');
    ?>
"><?php 
    echo JHtml::link(JoomleagueHelperRoute::getResultsRoute($list['project']->id, $list['round']->id, $list['divisionid']), JText::_('MOD_JOOMLEAGUE_RESULTS_VIEW_FULL'));
    ?>
</div>
	<?php 
}
?>
	
	
</div>


</div>
    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) : "";