예제 #1
0
            $x = $jTips['ShowTipsWidth'];
            $y = $jTips['ShowTipsHeight'];
            //BUG 274 - team ladder popup results in broken scroll bar
            if (basename($_SERVER['SCRIPT_FILENAME']) != 'index2.php') {
                $class = "class='modal'";
            } else {
                $class = '';
            }
            $teamname = "<a {$class} rel=\"{handler: 'iframe', size: {x: {$x}, y: {$y}}}\" href='" . jTipsRoute($mosConfig_live_site . "/index2.php?option=com_jtips&{$popupUrl}") . "'>";
        } else {
            $teamname = "<a href='javascript:void(0);' onClick='openPopup(\"{$popupUrl}\", \"" . $jTeam->getName() . "\");'>";
        }
        echo $teamname;
        // Team logo
        if ($params->get('logo')) {
            echo $jTeam->getLogo(100);
            echo "<br />";
        }
        // Team name
        echo $jTeam->getName();
        ?>
</a></div><?php 
        // times picked
        ?>
		<table width="100%" cellspacing="0">
			<tbody>
			<tr class="sectiontableentry1">
			<td class="sectiontableentry1"><strong>Times Picked</strong></td>
			<td class="sectiontableentry1"><?php 
        echo $team[1];
        ?>
예제 #2
0
 foreach ($tips as $tip) {
     $tipped = new jTeam($database);
     $tipped->load($tip->tip_id);
     $popupUrl = "view=TeamLadder&Itemid={$Itemid}&action=ShowTeam&id=" . $tipped->id . "&season_id=" . $jSeason->id;
     $game = new jGame($database);
     $game->load($tip->game_id);
     $otherTeam = new jTeam($database);
     if ($tip->tip_id == $game->home_id) {
         $otherTeam->load($game->away_id);
     } else {
         if ($tip->tip_id == $game->away_id) {
             $otherTeam->load($game->home_id);
         }
     }
     if ($params->get('show_logo')) {
         $teamname = $tipped->getLogo();
     } else {
         $teamname = '';
     }
     $callback = $params->get('display', 'getDisplayLogoName');
     if ($callback == 'getLogo') {
         $arg = '100';
         $display = $tipped->{$callback}($arg);
     } else {
         $display = $tipped->{$callback}();
     }
     if ($tipped->id != -1) {
         if (isJoomla15()) {
             $x = $jTips['ShowTipsWidth'];
             $y = $jTips['ShowTipsHeight'];
             if (basename($_SERVER['SCRIPT_FILENAME']) != 'index2.php') {