public function dashboardAction()
 {
     // Création de la vue principale
     $this->beginCustom('<span class="glyphicon glyphicon-th-large"></span> Tableau de bord de l\'agence', null, true);
     // Création de la vue des appartements
     $DaschboardView = new DashboardView();
     $this->content = $DaschboardView->generateDashboard();
     // Création et affichage de la vue globale
     $this->end();
 }
 public static function run()
 {
     if (CookieController::cookieExists("session")) {
         if (($user = CookieController::refreshSessionCookie()) === false) {
             echo "<h1>No User Found</h1><hr/>";
             LogInController::run(null);
         } else {
             DashboardView::show($user);
         }
     } else {
         LandingView::show(null);
     }
 }
    public static function show($user)
    {
        $links = array("New Trip" => "new-trip", "My Trips" => "my-trips", "View my Profile" => "view-profile", "Log Out" => "log-out");
        ###(HTML)
        ?>
		<!DOCTYPE html>
		<html>
			<?php 
        MasterView::insertHead("/sm_project/css/Dashboard.css", "");
        ?>
			<body>
				<?php 
        MasterView::insertNav($links);
        DashboardView::insertContent($user);
        MasterView::insertFooter(null);
        ?>
			</body>
		</html>
		<?php 
        ###(ENDHTML)
    }
    public static function show($user)
    {
        $links = array("View my Profile" => "profile", "Build a Map" => "build-map", "Log Out" => "log-out");
        ###(HTML)
        ?>
		<!DOCTYPE html>
		<html>
			<?php 
        MasterView::insertHead("Dashboard");
        ?>
			<body>
				<?php 
        MasterView::insertNav($links);
        DashboardView::insertContent($user);
        MasterView::insertFooter(null);
        ?>
			</body>
		</html>
		<?php 
        ###(ENDHTML)
    }