Exemple #1
0
        echo '</div>';
    }
    if ($params->get('top_thanker') && count($tracker_stats->top_thanker)) {
        echo '<div id="container">';
        echo '<div id="row">';
        echo '<div id="value-center"><b>&nbsp;' . JText::_('COM_TRACKER_STATS_USER') . '&nbsp;</b></div>';
        echo '<div id="value-center"><b>&nbsp;' . JText::_('COM_TRACKER_STATS_THANKER') . '&nbsp;</b></div>';
        echo '<div id="value-center"><b>&nbsp;' . JText::_('COM_TRACKER_STATS_COUNTRY') . '&nbsp;</b></div>';
        echo '<div id="value-center"><b>&nbsp;' . JText::_('COM_TRACKER_STATS_GROUP') . '&nbsp;</b></div>';
        echo '</div>';
        foreach ($tracker_stats->top_thanker as $top_thanker) {
            echo '<div id="row">';
            echo '<div id="value-left">&nbsp;' . $top_thanker->name . '&nbsp;</div>';
            echo '<div id="value-center">&nbsp;' . $top_thanker->thanker . '&nbsp;</div>';
            if (empty($top_thanker->countryName)) {
                $top_thanker->default_country = TrackerHelper::getCountryDetails($params->get('defaultcountry'));
                $top_thanker->countryName = $top_thanker->default_country->name;
                $top_thanker->countryImage = $top_thanker->default_country->image;
            }
            echo '<div id="value-center">&nbsp;<img style="vertical-align:middle;"  id="tdcountry<' . $top_thanker->uid . '" alt="' . $top_thanker->countryName . '" src="' . JURI::base() . $top_thanker->countryImage . '" width="32" /></div>';
            echo '<div id="value-center">&nbsp;' . $top_thanker->usergroup . '&nbsp;</div>';
            echo '</div>';
        }
        echo '</div>';
    }
}
if ($params->get('most_active_torrents') && count($tracker_stats->most_active_torrents) || $params->get('most_seeded_torrents') && count($tracker_stats->most_seeded_torrents) || $params->get('most_leeched_torrents') && count($tracker_stats->most_leeched_torrents) || $params->get('most_completed_torrents') && count($tracker_stats->most_completed_torrents) || $params->get('most_thanked_torrents') && count($tracker_stats->top_thanked_torrents)) {
    if ($params->get('most_active_torrents') && count($tracker_stats->most_active_torrents)) {
        echo '<br /><div id="container">';
        echo '<div id="row">';
        echo '<div id="value-center"><b>&nbsp;' . JText::_('COM_TRACKER_STATS_NAME') . '&nbsp;</b></div>';
Exemple #2
0
            echo JRoute::_("index.php?option=com_tracker&view=userpanel&amp;id=" . $item->uid);
            ?>
'><?php 
            echo $this->params->get('top_downloaders_username') ? $item->username : $item->name;
            ?>
</a>&nbsp;</div>
			<div id="value-center">&nbsp;<?php 
            echo $item->thanker;
            ?>
&nbsp;</div>
	<?php 
            if ($this->params->get('enable_countries')) {
                ?>
		<?php 
                if (empty($item->countryName)) {
                    $item->default_country = TrackerHelper::getCountryDetails($this->params->get('defaultcountry'));
                    $item->countryName = $item->default_country->name;
                    $item->countryImage = $item->default_country->image;
                }
                ?>
				<div id="value-center">&nbsp;<img style="vertical-align:middle;" id="tdcountry<?php 
                echo $item->uid;
                ?>
" alt="<?php 
                echo $item->countryName;
                ?>
" src="<?php 
                echo JURI::base() . $item->countryImage;
                ?>
" width="32px" /></div>
	<?php