} 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 $bugManager = new BugManager($pdo); //Action Add Processing Begin if ($action == "add") { if (!empty($_POST['bug'])) { $bug = htmlentities($_POST['bug']); $lien = htmlentities($_POST['lien']); $status = 0; $createdBy = $_SESSION['userMerlaTrav']->login(); $created = date('Y-m-d h:i:s'); //create object $bug = new Bug(array('bug' => $bug, 'lien' => $lien, 'status' => $status, 'created' => $created, 'createdBy' => $createdBy)); //add it to db $bugManager->add($bug); $actionMessage = "Opération Valide : Bug Ajouté(e) avec succès."; $typeMessage = "success"; } else {
<div class="navbar-inner"> <div class="container-fluid"> <!-- BEGIN LOGO --> <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 $bugManager = new BugManager($pdo); $taskManager = new TaskManager($pdo); $taskNumber = $taskManager->getTaskNumberByUser($_SESSION['userMerlaTrav']->login()); $bugNumber = $bugManager->getBugsNumber(); ?> <ul class="nav pull-right"> <li class="dropdown" id="header_inbox_bar"> <a href="tasks.php" class="dropdown-toggle"> <i class="icon-tasks"></i> <?php if ($taskNumber > 0) { ?> <span class="badge"><?php echo $taskNumber; ?>