New router and associated pages
This commit is contained in:
parent
68dcb996c9
commit
bed471d75a
12 changed files with 133 additions and 114 deletions
6
onyx/include/team/change.php
Normal file
6
onyx/include/team/change.php
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
if(!defined('ONYX')) exit;
|
||||
|
||||
|
||||
return "team/change";
|
||||
6
onyx/include/team/exercice.php
Normal file
6
onyx/include/team/exercice.php
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
if(!defined('ONYX')) exit;
|
||||
|
||||
|
||||
return "team/exercice";
|
||||
8
onyx/include/team/home.php
Normal file
8
onyx/include/team/home.php
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
if(!defined('ONYX')) exit;
|
||||
|
||||
$template->assign("teams", Team::get_teams());
|
||||
$template->assign("top", Team::get_top());
|
||||
|
||||
return "users/home";
|
||||
6
onyx/include/team/summary.php
Normal file
6
onyx/include/team/summary.php
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
if(!defined('ONYX')) exit;
|
||||
|
||||
|
||||
return "team/summary";
|
||||
16
onyx/include/team/team.php
Normal file
16
onyx/include/team/team.php
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
if(!defined('ONYX')) exit;
|
||||
|
||||
try
|
||||
{
|
||||
$team = new Team($TEAM);
|
||||
|
||||
$template->assign("team", $team);
|
||||
|
||||
return "team/team";
|
||||
}
|
||||
catch($e)
|
||||
{
|
||||
return "404";
|
||||
}
|
||||
Reference in a new issue