<?php //require_once("../includes/session.php"); //require_once("../includes/db_connection.php"); //require_once("../includes/functions.php"); require_once '../includes/initialize.php'; ?> <?php confirm_logged_in(); if (is_chauffeur()) { redirect_to('manage_program.php'); } if (is_secretary()) { redirect_to('manage_program.php'); } ?> <?php if (!isset($_GET["id"])) { redirect_to("manage_admins.php"); } $admin = find_admin_by_id($_GET["id"]); if (!$admin) { // admin ID was missing or invalid or // admin couldn't be found in database redirect_to("manage_admins.php"); } if (is_chauffeur()) { $_SESSION["message"] = "Chauffeur cannot delete add edit a user.";
<hr> Course <li><a href="admin.php">Main</a></li> <li><a href="new_course.php">Input Course</a></li> <?php if (is_chauffeur()) { ?> <?php } elseif (is_secretary()) { ?> <?php } elseif (is_manager()) { ?> <hr> Administration <li><a href="manage_content.php">Manage Website </a></li> <li><a href="manage_admins.php">Manage Admin Users</a></li> <li><a href="manage_chauffeur.php">Manage Chauffeur</a></li>
<li><a href="new_course_program.php">Nouvelle course</a></li> <!-- <li><a href="admin.php">Courses manuel</a></li>--> <!-- <li><a href="new_course.php">Nouvelle course</a></li>--> </ul> </li> <?php } ?> <?php if (isset($_SESSION['user_type_id']) && (is_manager() || is_admin() || is_secretary())) { ?> <li <?php if (isset($active_menu) && $active_menu == "admin") { echo " class=\"dropdown active\""; } else { echo " class=\" dropdown\""; } ?> ><a href="#" data-toggle="dropdown">Administration<span class="caret"></span></a> <ul class="dropdown-menu"> <li><a href="manage_program.php">Manage Program</a></li>