Add some call function in home. TODO: Corresponding TPL file
This commit is contained in:
parent
070f1b263f
commit
6452d1c8be
|
@ -2,6 +2,34 @@
|
|||
|
||||
if(!defined('ONYX')) exit;
|
||||
|
||||
//TOP10
|
||||
$teams = Team::get_top();
|
||||
|
||||
for ($i = 0; $i < 10; $i++){
|
||||
echo $teams[$i]->get_name();
|
||||
echo " (" . $teams[$i]->get_pts() . " pts)<br>";
|
||||
}
|
||||
//END TOP10
|
||||
|
||||
//RANK
|
||||
echo "<br><br>";
|
||||
$t = new Team(10);
|
||||
|
||||
echo $t->get_rank() . "/";
|
||||
echo Team::get_nbTeams();
|
||||
//END RANK
|
||||
|
||||
//BEGIN LISTING THEMES
|
||||
echo "<br><br>";
|
||||
$themes = Theme::get_themes();
|
||||
|
||||
foreach ($themes as $theme){
|
||||
echo $theme->get_name()."<br>";
|
||||
echo $t->get_nbResExercisesByTheme($theme->get_id()) . "/";
|
||||
echo $theme->get_nbExercices()."<br>";
|
||||
}
|
||||
//END LISTING THEMES
|
||||
|
||||
$template->assign("teams", Team::get_teams());
|
||||
$template->assign("top", Team::get_top());
|
||||
|
||||
|
|
Loading…
Reference in New Issue