0) { global $DB; $stmt = $DB->prepare("SELECT * FROM glpi_users WHERE id = ?"); $stmt->bind_param("i", $id); $stmt->execute(); $result = $stmt->get_result(); $pick = $result->fetch_assoc(); } $responsables = []; $res = $DB->query("SELECT id, CONCAT(realname,' ',firstname) AS fullname FROM glpi_users WHERE is_active = 1 ORDER BY realname ASC"); while ($row = $res->fetch_assoc()) { $responsables[] = $row; } $postes = []; $res = $DB->query("SELECT id, value FROM picklist WHERE name='fonction' ORDER BY value ASC"); while ($row = $res->fetch_assoc()) { $postes[] = $row; } $structures = []; $res = $DB->query("SELECT id, value FROM picklist WHERE name='structure' ORDER BY value ASC"); while ($row = $res->fetch_assoc()) { $structures[] = $row; } if (empty($pick)) { Html::redirect($CFG_GLPI["root_doc"] . "/front/user.list.php"); exit; } if ($user == "helpdesk") { Html::helpHeader("Gestion des employées", '', $_SESSION["glpiname"]); } else { Html::header("Gestion des employées", '', "", ""); } ?>