<?php

include_once './pages/AdministrationPage.inc.php';

/**
 * This page presents the user with all administration function
 * available for his rights.
 *
 * @author Thomas Schwery <thomas.schwery@epfl.ch>
 */
class CentralAdministrationPage extends AdministrationPage {

    private $content;

    private $title;
    
    protected function constructAdmin() {
        $this->title = "Central Administration";

        $menu = Localization::menuEntryAdministration;
        $news = Localization::newsAdmin;
        $user = Localization::userAdmin;
        $tournament = Localization::tournamentAdmin;
        $category = Localization::categoryAdmin;
        $rights = Localization::memberRightAdmin;

        $this->content = <<<CONTENT
<ul>
    <li><a href="./?page=MenuAdministration">$menu</a></li>
    <li><a href="./?page=NewsAdministration">$news</a></li>
    <li><a href="./?page=UserAdministration">$user</a></li>
    <li><a href="./?page=TournamentAdministration">$tournament</a></li>
    <li><a href="./?page=CategoryAdministration">$category</a></li>
    <li><a href="./?page=MemberRightAdministration">$rights</a></li>
</ul>
CONTENT;
    }
    
    public function getContent() {
        return $this->content;
    }
    
    public function getTitle() {
        return $this->title;
    }

}
?>
