Exemplo n.º 1
0
    $cItemId = $Itemid;
}
?>

<div class="jsm_playerstat">
<?php 
if (count($list)) {
    ?>

<?php 
    foreach ($list as $player) {
        ?>

	<div style="width:99%;overflow:hidden;"><?php 
        $defimg = modBlPlayersHelper::getPhoto($player);
        $teams = modBlPlayersHelper::getTeamName($player, $params);
        if ($is_width) {
            echo '<div style="float:left;width:' . ($ph_width + 2) . 'px;height:' . ($ph_width + 12) . 'px;margin:0px 10px 0px 0px;">';
            if ($defimg && is_file('media/bearleague/' . $defimg)) {
                //echo '<img style="border:1px solid #aaa;" src="media/bearleague/'.$defimg.'" title="'.$player->e_name.'" height="'.$ph_width.'" />';
                echo '<div class="team-embl" style="width:' . $ph_width . 'px;"><img ' . getImgPop($defimg, 5, $ph_width, $ph_width) . '></div>';
            } else {
                //echo "&nbsp;";
                echo '<div class="team-embl"><img class="player-ico" src="' . JURI::base() . 'components/com_joomsport/img/ico/season-list-player-ico.gif" width="30" height="30" alt=""></div>';
            }
            echo '</div>';
        }
        //else{
        if ($player->e_img && is_file('media/bearleague/events/' . $player->e_img)) {
            echo '<img src="media/bearleague/events/' . $player->e_img . '" title="' . $player->e_name . '" height="15" />';
        }
Exemplo n.º 2
0
<?php

/**
* @version		$Id: mod_stats.php 10381 2008-06-01 03:35:53Z pasamio $
* @package		Joomla
* @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license		GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
// Include the syndicate functions only once
require_once dirname(__FILE__) . '/helper.php';
$season_id = $params->get('season_id');
$event_id = $params->get('event_id');
$team_id = $params->get('team_id');
$display_count = $params->get('display_count');
$list = modBlPlayersHelper::getList($params);
$plname = modBlPlayersHelper::getPlName($params);
require JModuleHelper::getLayoutPath('mod_js_players');