<table class="statranking">
	<thead>
		<tr class="sectiontableheader">
			<th class="rank"><?php 
echo JText::_('MOD_JOOMLEAGUE_TEAMSTATS_RANKING_COL_RANK');
?>
</th>
			<th class="teamlogo"></th>
			<th class="team"><?php 
echo JText::_('MOD_JOOMLEAGUE_TEAMSTATS_RANKING_COL_TEAM');
?>
</th>
			<th class="td_c">
			<?php 
if ($params->get('show_event_icon', 1)) {
    echo modJLGTeamStatHelper::getStatIcon($list['stat']);
} else {
    echo JText::_($list['stat']->name);
}
?>
			</th>
		</tr>
	</thead>
	<tbody>
	<?php 
$lastRank = 0;
$k = 0;
foreach (array_slice($list['ranking'], 0, $params->get('limit', 5)) as $item) {
    ?>
		<?php 
    $team = $list['teams'][$item->team_id];