{$group_name}


Ranking

{foreach name=rank from=$teams item=team} {/foreach}
rank team games won draw lost pnts goals
{$smarty.foreach.rank.iteration} {$team} {$games[$team]} {$won[$team]} {$draw[$team]} {$lost[$team]} {$point[$team]} {$our_goal[$team]}-{$opp_goal[$team]}

Matches

{foreach name=table from=$teams item=team} {/foreach} {foreach name=table from=$teams item=team} {foreach from=$teams item=team2} {/foreach} {/foreach}
{$team|substr:0:3}.
{$team} {if $team != $team2} {if $table[$team][$team2][0]} {/if} {if $table[$team][$team2][1] != '' } {$table[$team][$team2][1]}-{$table[$team][$team2][2]} {/if} {if $table[$team][$team2][0]} {/if} {/if}

{foreach name=matches from=$matches key=date item=data} {/foreach}
Game Date vs Goals Points
{$date} {$data[0]} vs {$data[1]} {$data[2]} : {$data[3]} {if $data[2] > $data[3]} 3 : 0 {elseif $data[2] < $data[3]} 0 : 3 {else} 1 : 1 {/if}