} $termine = false; if (isset($_POST["checkbox_filter_state_finished"]) && $_POST["checkbox_filter_state_finished"] == "check") { $termine = true; } $archive = false; if (isset($_POST["checkbox_filter_state_archived"]) && $_POST["checkbox_filter_state_archived"] == "check") { $archive = true; } $listeResultat[1] = requeteProjet($_POST["field_project_filter_name"], $_POST["project_filter_client_select"], $_POST["project_filter_respo_select"], $active, $termine, $archive); } elseif ($_POST["search_type_select"] == 1) { $listeResultat[0] = 1; $listeResultat[1] = requeteClient($_POST["field_client_filter_name"], $_POST["field_client_filter_address"], $_POST["client_filter_project_select"]); } elseif ($_POST["search_type_select"] == 2) { $listeResultat[0] = 2; $listeResultat[1] = requeteContact($_POST["field_contact_filter_name"], $_POST["field_contact_filter_firstname"], $_POST["field_contact_filter_tel"], $_POST["contact_filter_client_select"]); } elseif ($_POST["search_type_select"] == 3) { $listeResultat[0] = 3; $listeResultat[1] = requeteCollabo($_POST["field_collabo_filter_name"], $_POST["field_collabo_filter_firstname"], $_POST["field_collabo_filter_tel"], $_POST["collabo_filter_project_select"]); } } else { // TODO: Pas de recherche } $_SESSION["resultat"] = $listeResultat; break; case $ACTION_projetView: if (isset($_GET["projet"]) && $_GET["projet"] != -1) { $_SESSION["projet"] = $_GET["projet"]; } elseif (isset($_GET["projet"]) && $_GET["projet"] == -1) { $_SESSION["projet"] = -1; }
<div id="label_task_respo">Responsable : </div> <select id="select_task_respo" name="select_task_respo"> <?php if (getCollaboList() != null) { foreach (getCollaboList() as $pers) { echo '<option value="' . $pers->getId() . '">' . $pers->getNom() . ' ' . $pers->getPrenom() . '</option>'; } } ?> </select> <div id="label_task_contact">Contact : </div> <select id="select_task_contact" name="select_task_contact"> <?php if (requeteContact("", "", "", $_SESSION["projet"]->getClient()->getId()) != null) { foreach (requeteContact("", "", "", $_SESSION["projet"]->getClient()->getId()) as $contact) { echo '<option value="' . $contact->getPersonne()->getId() . '">' . $contact->getPersonne()->getNom() . ' ' . $contact->getPersonne()->getPrenom() . '</option>'; } } ?> </select> <div id="label_task_previous">Tâche précédente : </div> <a id="href_task_previous" href="">Aucune</a> <input type="hidden" id="task_previous_id" name="task_previous_id" value="-1"> <input id="search_field_task_previous" type="text" value="Rechercher" onblur="resetFieldTaskPrevious('div_tasks_previous');" onclick="emptyFieldTaskPrevious('div_tasks_previous');" oninput="searchTaskPrevious('div_tasks_previous');"/> <div id="div_tasks_previous">