<a class="brand"> <img src="assets/img/big-logo-new.png" alt="logo" /> </a> <!-- END LOGO --> <!-- BEGIN RESPONSIVE MENU TOGGLER --> <a href="javascript:;" class="btn-navbar collapsed" data-toggle="collapse" data-target=".nav-collapse"> <img src="assets/img/menu-toggler.png" alt="" /> </a> <!-- END RESPONSIVE MENU TOGGLER --> <!-- BEGIN TOP NAVIGATION MENU --> <?php //In this section we will count the number of tasks assigned to the current session user //classes managers $bugManager = new BugManager($pdo); $taskManager = new TaskManager($pdo); $alertManager = new AlertManager($pdo); $todoManager = new TodoManager($pdo); //obj and vars $taskNumber = $taskManager->getTaskNumberByUser($_SESSION['userMerlaTrav']->login()); $bugNumber = $bugManager->getBugsNumber(); $alertNumber = $alertManager->getAlertsNumber(); $todoNumber = $todoManager->getTodosNumberByUser($_SESSION['userMerlaTrav']->login()); $todosToday = $todoManager->getTodosToday(); $todosTodayInformation = $todoManager->getTodosTodayInformation(); $todosOld = $todoManager->getTodosOld(); ?> <ul class="nav pull-right"> <li class="dropdown" id="header_inbox_bar"> <a href="collaboration.php" class="dropdown-toggle"> <i class="icon-edit"></i>
} elseif (file_exists('../controller/' . $myClass . '.php')) { include '../controller/' . $myClass . '.php'; } } spl_autoload_register("classLoad"); include '../config.php'; include '../lib/image-processing.php'; //classes loading end session_start(); //post input processing $action = htmlentities($_POST['action']); //This var contains result message of CRUD action $actionMessage = ""; $typeMessage = ""; //Component Class Manager $alertManager = new AlertManager($pdo); //Action Add Processing Begin if ($action == "add") { if (!empty($_POST['alert'])) { $alert = htmlentities($_POST['alert']); $status = 0; $createdBy = $_SESSION['userMerlaTrav']->login(); $created = date('Y-m-d h:i:s'); //create object $alert = new Alert(array('alert' => $alert, 'status' => $status, 'created' => $created, 'createdBy' => $createdBy)); //add it to db $alertManager->add($alert); $actionMessage = "Opération Valide : Alert Ajouté(e) avec succès."; $typeMessage = "success"; } else { $actionMessage = "Erreur Ajout alert : Vous devez remplir le champ 'Description'.";