/**
  * get img for team
  * @param object teams row
  * @param int type = 0 for club small logo, 1 for medium logo, 2 for big logo
  * @return html string
  */
 function getLogo($item, $type = 1)
 {
     if ($type == 0) {
         $picture = $item->logo_small;
         if (is_null($item->logo_small) || !file_exists($picture)) {
             $picture = JoomleagueHelper::getDefaultPlaceholder('clublogosmall');
         }
         echo JHTML::image($picture, $item->team_name, 'class="logo_small" title="View ' . $item->team_name . '"');
     } else {
         if ($type == 1) {
             $picture = $item->logo_middle;
             if (is_null($item->logo_middle) || !file_exists($picture)) {
                 $picture = JoomleagueHelper::getDefaultPlaceholder('clublogomedium');
             }
             echo JHTML::image($picture, $item->team_name, 'class="logo_middle" title="View ' . $item->team_name . '"');
         } else {
             if ($type == 2) {
                 $picture = $item->logo_big;
                 if (is_null($item->logo_big) || !file_exists($picture)) {
                     $picture = JoomleagueHelper::getDefaultPlaceholder('clublogobig');
                 }
                 echo JHTML::image($picture, $item->team_name, 'class="logo_big" title="View ' . $item->team_name . '"');
             } else {
                 if ($type == 3) {
                     $picture = $item->team_picture;
                     if (is_null($item->team_picture) || !file_exists($picture)) {
                         $picture = JoomleagueHelper::getDefaultPlaceholder('team');
                     }
                     echo JHTML::image($picture, $item->team_name, 'class="team_picture" title="View ' . $item->team_name . '"');
                 } else {
                     if ($type == 4) {
                         $picture = $item->projectteam_picture;
                         if (is_null($item->projectteam_picture) || !file_exists($picture)) {
                             $picture = JoomleagueHelper::getDefaultPlaceholder('team');
                         }
                         echo JHTML::image($picture, $item->team_name, 'class="projecteam_picture" title="View ' . $item->team_name . '"');
                     }
                 }
             }
         }
     }
     return '';
 }
 function display($tpl = null)
 {
     $option = JRequest::getCmd('option');
     $mainframe = JFactory::getApplication();
     $document = JFactory::getDocument();
     $uri = JFactory::getURI();
     $user = JFactory::getUser();
     $model = $this->getModel();
     $item =& $this->get('item');
     $form =& $this->get('form');
     $isNew = $item->id < 1;
     $edit = JRequest::getVar('edit', true);
     // fail if checked out not by 'me'
     if ($model->isCheckedOut($user->get('id'))) {
         $msg = JText::sprintf('DESCBEINGEDITTED', JText::_('The item'), $item->name);
         $mainframe->redirect('index.php?option=' . $option . '&view=statistics', $msg, 'error');
     }
     // Edit or Create?
     if (!$isNew) {
         $model->checkout($user->get('id'));
     }
     // icon
     //if there is no icon selected, use default icon
     $default = JoomleagueHelper::getDefaultPlaceholder("icon");
     if (empty($item->icon)) {
         $item->icon = $default;
     }
     if (!empty($item->class)) {
         /*
          * statistic class parameters
          */
         $class =& JLGStatistic::getInstance($item->class);
         $this->assign('calculated', $class->getCalculated());
     }
     $this->assignRef('item', $item);
     $this->assignRef('edit', $edit);
     $this->assignRef('form', $form);
     $this->assignRef('fieldsets', $form->getFieldsets());
     $this->assign('cfg_which_media_tool', JComponentHelper::getParams($option)->get('cfg_which_media_tool', 0));
     $this->addToolbar();
     JHTML::_('behavior.tooltip');
     parent::display($tpl);
 }
Ejemplo n.º 3
0
 function display($tpl = null)
 {
     $this->form = $this->get('form');
     $this->edit = JRequest::getVar('edit', true);
     // icon
     //if there is no icon selected, use default icon
     $default = JoomleagueHelper::getDefaultPlaceholder("icon");
     $icon = $this->form->getValue('icon');
     if (empty($icon)) {
         $this->form->setValue('icon', $default);
     }
     $class = $this->form->getValue('class');
     if (!empty($class)) {
         /*
          * statistic class parameters
          */
         $class = JLGStatistic::getInstance($class);
         $this->calculated = $class->getCalculated();
     }
     $this->addToolbar();
     JHtml::_('behavior.tooltip');
     parent::display($tpl);
 }
 function save()
 {
     $mainframe = JFactory::getApplication();
     // Check for request forgeries
     JRequest::checkToken() or die('COM_JOOMLEAGUE_GLOBAL_INVALID_TOKEN');
     // Sanitize
     $task = JRequest::getVar('task');
     //$mainframe->enqueueMessage(JText::_('settings task -> '.'<pre>'.print_r($task,true).'</pre>' ),'');
     $data = JRequest::get('post');
     $data['option'] = 'com_joomleague';
     $params = JRequest::getVar('params', array(), 'post', 'array');
     $model = $this->getModel('settings');
     $defPh = JoomleagueHelper::getDefaultPlaceholder('player');
     $newPh = $params['ph_player'];
     if ($newPh != $defPh) {
         if (!$model->updatePlaceholder('#__joomleague_person', 'picture', $defPh, $newPh)) {
             $msg = $model->getError();
         }
         if (!$model->updatePlaceholder('#__joomleague_team_player', 'picture', $defPh, $newPh)) {
             $msg = $model->getError();
         }
         if (!$model->updatePlaceholder('#__joomleague_team_staff', 'picture', $defPh, $newPh)) {
             $msg = $model->getError();
         }
         if (!$model->updatePlaceholder('#__joomleague_project_referee', 'picture', $defPh, $newPh)) {
             $msg = $model->getError();
         }
     }
     $defPh = JoomleagueHelper::getDefaultPlaceholder('clublogobig');
     $newPh = $params['ph_logo_big'];
     if ($newPh != $defPh) {
         if (!$model->updatePlaceholder('#__joomleague_club', 'logo_big', $defPh, $newPh)) {
             $msg = $model->getError();
         }
         if (!$model->updatePlaceholder('#__joomleague_playground', 'picture', $defPh, $newPh)) {
             $msg = $model->getError();
         }
     }
     $defPh = JoomleagueHelper::getDefaultPlaceholder('clublogomedium');
     $newPh = $params['ph_logo_medium'];
     if ($newPh != $defPh) {
         if (!$model->updatePlaceholder('#__joomleague_club', 'logo_middle', $defPh, $newPh)) {
             $msg = $model->getError();
         }
     }
     $defPh = JoomleagueHelper::getDefaultPlaceholder('clublogosmall');
     $newPh = $params['ph_logo_small'];
     if ($newPh != $defPh) {
         if (!$model->updatePlaceholder('#__joomleague_club', 'logo_small', $defPh, $newPh)) {
             $msg = $model->getError();
         }
     }
     $defPh = JoomleagueHelper::getDefaultPlaceholder('icon');
     $newPh = $params['ph_icon'];
     if ($newPh != $defPh) {
         if (!$model->updatePlaceholder('#__joomleague_statistic', 'icon', $defPh, $newPh)) {
             $msg = $model->getError();
         }
         if (!$model->updatePlaceholder('#__joomleague_sports_type', 'icon', $defPh, $newPh)) {
             $msg = $model->getError();
         }
         if (!$model->updatePlaceholder('#__joomleague_eventtype', 'icon', $defPh, $newPh)) {
             $msg = $model->getError();
         }
     }
     $defPh = JoomleagueHelper::getDefaultPlaceholder('team');
     $newPh = $params['ph_team'];
     if ($newPh != $defPh) {
         if (!$model->updatePlaceholder('#__joomleague_team', 'picture', $defPh, $newPh)) {
             $msg = $model->getError();
         }
         if (!$model->updatePlaceholder('#__joomleague_project_team', 'picture', $defPh, $newPh)) {
             $msg = $model->getError();
         }
     }
     $xmlfile = JPATH_ADMINISTRATOR . DS . 'components' . DS . $data['option'] . DS . 'config.xml';
     $form =& JForm::getInstance($data['option'], $xmlfile, array('control' => 'params'), false, "/config");
     $data['params'] = $model->validate($form, $params);
     // Save the rules.
     if (isset($data['params']['rules'])) {
         $rules = new JAccessRules($data['params']['rules']);
         $asset = JTable::getInstance('asset');
         if (!$asset->loadByName($data['option'])) {
             $root = JTable::getInstance('asset');
             $root->loadByName('root.1');
             $asset->name = $data['option'];
             $asset->title = $data['option'];
             $asset->setLocation($root->id, 'last-child');
         }
         $asset->rules = (string) $rules;
         if (!$asset->check() || !$asset->store()) {
             $this->setError($asset->getError());
             return false;
         }
     }
     unset($data['params']['rules']);
     $table =& JTable::getInstance('extension');
     if (!$table->load(array("element" => "com_joomleague", "type" => "component"))) {
         JError::raiseWarning(500, 'Not a valid component');
         return false;
     }
     $table->bind($data);
     // pre-save checks
     if (!$table->check()) {
         JError::raiseWarning(500, $table->getError());
         return false;
     }
     // save the changes
     if ($table->store()) {
         $msg = JText::_('COM_JOOMLEAGUE_ADMIN_SETTINGS_CTRL_STAT_SAVED');
     } else {
         $msg = JText::_('COM_JOOMLEAGUE_ADMIN_SETTINGS_CTRL_ERROR_SAVE');
     }
     switch ($task) {
         case 'apply':
             $link = 'index.php?option=com_joomleague&task=settings.edit';
             break;
         case 'save':
             $link = 'index.php?option=com_joomleague&view=projects&task=project.display';
             //$link = 'index.php?option=com_joomleague&task=settings.edit';
             break;
         default:
             $link = 'index.php?option=com_joomleague&view=settings&task=settings.display';
             break;
     }
     $this->setRedirect($link, $msg);
 }
<?php

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

<?php 
if ($this->playground->picture) {
    ?>

 <h2><?php 
    echo JText::_('COM_JOOMLEAGUE_PLAYGROUND_CLUB_PICTURE');
    ?>
</h2>  
		<div class="venuecontent picture">
                <?php 
    if ($this->playground->picture) {
        echo JHTML::image(JURI::root() . $this->playground->picture, $this->playground->name);
    } else {
        echo JHTML::image(JURI::root() . JoomleagueHelper::getDefaultPlaceholder("team"), $this->playground->name);
    }
    ?>
		</div>
    <?php 
}
 function showEvents_Timelines2($eventid = 0, $projectteamid = 0)
 {
     $result = '';
     $eventcounter = array();
     foreach ($this->eventtypes as $event) {
         foreach ($this->matchevents as $me) {
             if ($me->event_type_id == $event->id && $me->ptid == $this->match->projectteam2_id) {
                 $placeholder = JoomleagueHelper::getDefaultPlaceholder("player");
                 // set teamplayer picture
                 if ($me->tppicture1 != $placeholder && !empty($me->tppicture1)) {
                     $picture = $me->tppicture1;
                 } elseif (($me->tppicture1 == $placeholder || empty($me->tppicture1)) && ($me->picture1 != $placeholder && !empty($me->picture1))) {
                     $picture = $me->picture1;
                 } else {
                     $picture = '';
                 }
                 if (in_array($me->event_time, $eventcounter)) {
                     $result .= JoomleagueViewMatchReport::_formatTimelineEvent($me, $event, $me->firstname1, $me->nickname1, $me->lastname1, $picture, 2);
                 } else {
                     $result .= JoomleagueViewMatchReport::_formatTimelineEvent($me, $event, $me->firstname1, $me->nickname1, $me->lastname1, $picture, 0);
                 }
                 $eventcounter[] = $me->event_time;
             }
         }
     }
     return $result;
 }
Ejemplo n.º 7
0
</h2>

<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');
Ejemplo n.º 8
0
<?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
 */
defined('_JEXEC') or die;
?>

<?php 
$picture = $this->projectteam->projectteam_picture;
// only show projectteam picture when the user has uploaded one (showing a placeholder here doesn't make sense)
if (!empty($picture) && $picture != JoomleagueHelper::getDefaultPlaceholder("team")) {
    ?>
	<table width="96%" align="center" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td align="center">
				<?php 
    $imgTitle = JText::sprintf('COM_JOOMLEAGUE_TEAMPLAN_PICTURE_TEAM', $this->projectteam->name);
    echo JoomleagueHelper::getPictureThumb($picture, $imgTitle, $this->config['page_header_team_picture_width'], $this->config['page_header_team_picture_height']);
    ?>
			</td>
		</tr>
	</table>
<?php 
}
 public function getDefaultLogos()
 {
     return array("club_big" => JoomleagueHelper::getDefaultPlaceholder('clublogobig'), "club_middle" => JoomleagueHelper::getDefaultPlaceholder('clublogomedium'), "club_small" => JoomleagueHelper::getDefaultPlaceholder('clublogosmall'), "team_picture" => JoomleagueHelper::getDefaultPlaceholder('team'), "country" => JoomleagueHelper::getDefaultPlaceholder('icon'));
 }
 function getClubIconHtmlSimple($logo_small, $country, $type = 1, $with_space = 0)
 {
     if ($type == 1) {
         $params = array();
         $params["align"] = "top";
         $params["border"] = 0;
         if ($with_space == 1) {
             $params["style"] = "padding:1px;";
         }
         if ($logo_small == "") {
             $logo_small = JoomleagueHelper::getDefaultPlaceholder("clublogosmall");
         }
         return JHTML::image($logo_small, "", $params);
     } elseif ($type == 2 && isset($country)) {
         return Countries::getCountryFlag($team->country);
     }
 }
} else {
    $birthdaytext = "";
}
$id = 1;
$idstring = '';
$idstring = $id . $params->get('moduleclass_sfx');
?>

<?php 
if (count($clubs) > 0) {
    foreach ($clubs as $club) {
        $idstring = $id . $params->get('moduleclass_sfx');
        if ($mode == 'T') {
            $birthdaytext .= '<div id="' . $idstring . '" class="textdiv">';
        }
        $club->default_picture = JoomleagueHelper::getDefaultPlaceholder('clublogobig');
        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_club_flag') ? Countries::getCountryFlag($club->country) . "&nbsp;" : "";
        $text = $club->name;
        $usedname = $flag . $text;
        $club_link = "";
        $club_link = JoomleagueHelperRoute::getClubInfoRoute($club->project_id, $club->id);
        $showname = JHTML::link($club_link, $usedname);
        $birthdaytext .= '<div class="qslide">';
        $birthdaytext .= '<div class="tckproject"><p>' . $showname . '</p></div>';
        if ($params->get('show_picture') == 1) {
            if (file_exists(JPATH_BASE . '/' . $club->picture) && $club->picture != '') {
?>

<?php 
// Show team-picture if defined.
if ($this->config['show_team_logo'] == 1) {
    ?>
		<table width="96%" align="center" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td align="center">
					<?php 
    $picture = $this->projectteam->picture;
    if (empty($picture) || $picture == JoomleagueHelper::getDefaultPlaceholder("team")) {
        $picture = $this->team->picture;
    }
    if (!file_exists($picture)) {
        $picture = JoomleagueHelper::getDefaultPlaceholder("team");
    }
    $imgTitle = JText::sprintf('COM_JOOMLEAGUE_ROSTER_PICTURE_TEAM', $this->team->name);
    if (!$this->config['show_highslide'] || !$this->config['show_team_logo_highslide']) {
        /*
                  echo JoomleagueHelper::getPictureThumb($picture, $imgTitle,
        										$this->config['team_picture_width'],
        										$this->config['team_picture_height']);
        */
        echo JHTML::image($picture, $imgTitle, array('title' => $imgTitle, 'width' => $this->config['team_picture_width']));
    } else {
        ?>
<a href="<?php 
        echo $picture;
        ?>
" alt="<?php 
Ejemplo n.º 13
0
<?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
 */
?>

<?php 
if ($this->playground->picture) {
    ?>

 <h2><?php 
    echo JText::_('COM_JOOMLEAGUE_PLAYGROUND_CLUB_PICTURE');
    ?>
</h2>  
		<div class="venuecontent picture">
                <?php 
    if ($this->playground->picture) {
        echo JHtml::image($this->playground->picture, $this->playground->name);
    } else {
        echo JHtml::image(JoomleagueHelper::getDefaultPlaceholder("team"), $this->playground->name);
    }
    ?>
		</div>
    <?php 
}
Ejemplo n.º 14
0
 public static function getClubIconHtml(&$team, $type = 1, $with_space = 0)
 {
     $small_club_icon = $team->logo_small;
     if ($type == 1) {
         $params = array();
         $params['align'] = "top";
         $params['border'] = 0;
         if ($with_space == 1) {
             $params['style'] = 'padding:1px;';
         }
         if ($small_club_icon == '') {
             $small_club_icon = JoomleagueHelper::getDefaultPlaceholder("clublogosmall");
         }
         return JHtml::image($small_club_icon, '', $params);
     } elseif ($type == 2 && isset($team->country)) {
         return Countries::getCountryFlag($team->country);
     }
 }
    $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'];
    ?>
">
			<?php 
    if ($this->config['show_small_logo']) {
        ?>
			<td class="team_logo"><?php 
        echo $smallTeamLogoLink;
        ?>
Ejemplo n.º 16
0
 function getTeamLogo($team_id)
 {
     $query = "\n            SELECT c.logo_small\n            FROM #__joomleague_team t\n            LEFT JOIN #__joomleague_club c ON c.id = t.club_id\n            WHERE t.id = " . $team_id;
     $db = JFactory::getDbo();
     $db->setQuery($query);
     $club_logo = $db->loadResult();
     if ($club_logo == '') {
         $club_logo = JoomleagueHelper::getDefaultPlaceholder('clublogosmall');
     }
     return $club_logo;
 }
Ejemplo n.º 17
0
                if ($this->config['player_numbers_pictures']) {
                    $value = JHtml::image(JURI::root() . 'components/com_joomleague/helpers/shirt.php?text=' . $pnr . '&picpath=' . urlencode($this->config['player_numbers_picture']), $pnr, array('title' => $pnr));
                } else {
                    $value = $pnr;
                }
                ?>
		<td width="30" class="td_c"><?php 
                echo $value;
                ?>
</td><?php 
            }
            $playerName = JoomleagueHelper::formatName(null, $row->firstname, $row->nickname, $row->lastname, $this->config["name_format"]);
            $link = JoomleagueHelperRoute::getPlayerRoute($this->project->slug, $this->team->slug, $row->slug);
            if ($this->config['show_player_icon']) {
                $picture = $row->picture;
                if (empty($picture) || $picture == JoomleagueHelper::getDefaultPlaceholder("player")) {
                    $picture = $row->ppic;
                }
                $playerPicture = JoomleagueHelper::getPictureThumb($picture, $playerName, $this->config['player_picture_width'], $this->config['player_picture_height'], 0);
                ?>
		<td width="40" class="td_c" nowrap="nowrap"><?php 
                if ($this->config['link_player'] == 1) {
                    echo JHtml::link($link, $playerPicture);
                } else {
                    echo $playerPicture;
                }
                ?>
		</td><?php 
            } elseif ($this->config['show_staff_icon']) {
                // Put empty column to keep vertical alignment with the staff table
                ?>
Ejemplo n.º 18
0
							<td>
								<?php 
    echo JoomleagueHelper::formatName(null, $row->firstname, $row->nickname, $row->lastname, 0);
    ?>
							</td>
							<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;
        if (JFile::exists(JPATH_SITE . DS . $row->logo_middle)) {
            $imageTitle = JText::_('COM_JOOMLEAGUE_ADMIN_CLUBS_CUSTOM_IMAGE');
            echo JHtml::_('image', 'administrator/components/com_joomleague/assets/images/ok.png', $imageTitle, 'title= "' . $imageTitle . '"');
        } else {
            $imageTitle = JText::_('COM_JOOMLEAGUE_ADMIN_CLUBS_NO_IMAGE');
            echo JHtml::_('image', 'administrator/components/com_joomleague/assets/images/delete.png', $imageTitle, 'title= "' . $imageTitle . '"');
        }
    }
    ?>
						</td>
						<td class="center">
							<?php 
    if ($row->logo_small == '') {
        $imageTitle = JText::_('COM_JOOMLEAGUE_ADMIN_CLUBS_NO_IMAGE');
        echo JHtml::_('image', 'administrator/components/com_joomleague/assets/images/information.png', $imageTitle, 'title= "' . $imageTitle . '"');
    } elseif ($row->logo_small == JoomleagueHelper::getDefaultPlaceholder("clublogosmall")) {
        $imageTitle = JText::_('COM_JOOMLEAGUE_ADMIN_CLUBS_DEFAULT_IMAGE');
        echo JHtml::_('image', 'administrator/components/com_joomleague/assets/images/information.png', $imageTitle, 'title= "' . $imageTitle . '"');
    } else {
        if (JFile::exists(JPATH_SITE . DS . $row->logo_small)) {
            $imageTitle = JText::_('COM_JOOMLEAGUE_ADMIN_CLUBS_CUSTOM_IMAGE');
            echo JHtml::_('image', 'administrator/components/com_joomleague/assets/images/ok.png', $imageTitle, 'title= "' . $imageTitle . '"');
        } else {
            $imageTitle = JText::_('COM_JOOMLEAGUE_ADMIN_CLUBS_NO_IMAGE');
            echo JHtml::_('image', 'administrator/components/com_joomleague/assets/images/delete.png', $imageTitle, 'title= "' . $imageTitle . '"');
        }
    }
    ?>
						</td>
						<td class="center"><?php 
    echo Countries::getCountryFlag($row->country);
 /**
  * returns html <img> for club assigned to team
  * @param object team
  * @param int type=1 for club small image,or 2 for club country
  * @param boolean $with_space
  * @return unknown_type
  */
 public function getTeamClubIcon($team, $type = 1, $attribs = array())
 {
     if (!isset($team->name)) {
         return "";
     }
     $title = $team->name;
     $attribs = array_merge(array('title' => $title, $attribs));
     if ($type == 1) {
         if (!empty($team->logo_small) && JFile::exists($team->logo_small)) {
             $image = JHTML::image($team->logo_small, $title, $attribs);
         } else {
             $image = JHTML::image(JURI::root() . JoomleagueHelper::getDefaultPlaceholder("clublogosmall"), $title, $attribs);
         }
     } elseif ($type == 2 && !empty($team->country)) {
         $image = Countries::getCountryFlag($team->country);
         if (empty($image)) {
             $image = JHTML::image(JURI::root() . JoomleagueHelper::getDefaultPlaceholder("icon"), $title, $attribs);
         }
     } elseif ($type == 3 && !empty($team->country) && !empty($team->logo_small) && JFile::exists($team->logo_small)) {
         //$image = Countries::getCountryFlag($team->country);
         if (empty($image)) {
             $image = JHTML::image($team->logo_small, $title, $attribs) . ' ' . Countries::getCountryFlag($team->country);
         }
     } elseif ($type == 3 && !empty($team->country) && !empty($team->logo_small) && !JFile::exists($team->logo_small)) {
         //$image = Countries::getCountryFlag($team->country);
         if (empty($image)) {
             $image = JHTML::image(JURI::root() . JoomleagueHelper::getDefaultPlaceholder("icon"), $title, $attribs) . ' ' . Countries::getCountryFlag($team->country);
         }
     } elseif ($type == 4 && !empty($team->country) && !empty($team->logo_small) && JFile::exists($team->logo_small)) {
         //$image = Countries::getCountryFlag($team->country);
         if (empty($image)) {
             $image = Countries::getCountryFlag($team->country) . ' ' . JHTML::image($team->logo_small, $title, $attribs);
         }
     } elseif ($type == 4 && !empty($team->country) && !empty($team->logo_small) && !JFile::exists($team->logo_small)) {
         //$image = Countries::getCountryFlag($team->country);
         if (empty($image)) {
             $image = Countries::getCountryFlag($team->country) . ' ' . JHTML::image(JURI::root() . JoomleagueHelper::getDefaultPlaceholder("icon"), $title, $attribs);
         }
     } else {
         $image = '';
     }
     return $image;
 }
    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;';
        }
    }