function getPlanCadre($id_plancadre)
{
    return fetchPlanCadreElaboration_PlanCadre($id_plancadre);
}
    listerPlanCadre($liste);
    ?>
                            <input type="text" name="search_user" 
                            onKeyUp="arrayFilter(this.value, this.form.liste_plan_cadre)" 
                            onChange="arrayFilter(this.value, this.form.liste_plan_cadre)"
                            >
                            <input type="hidden" name ="utilisateur_choisi" value="<?php 
    echo $utilisateur_choisi;
    ?>
" />
                            <input type="submit" value="Continuer" class="btn btn-default" /> 
                            <br>
                        <?php 
}
if (isset($plancadre_choisi)) {
    $plancadre = fetchPlanCadreElaboration_PlanCadre($plancadre_choisi);
    showInfoPlancadre($plancadre);
    $liste = getListeElaborateursPlancadre($plancadre_choisi);
    showUserList($liste);
    ?>
                            <input type="text" name="search_user" 
                            onKeyUp="arrayFilter(this.value, this.form.liste_plan_cadre)" 
                            onChange="arrayFilter(this.value, this.form.liste_plan_cadre)"
                            >
                            <input type="hidden" name ="plancadre_choisi" value="<?php 
    echo $plancadre_choisi;
    ?>
" />
                            <input type="submit" value="Continuer" class="btn btn-default" /> 
                            <br>
                        <?php 
$currentAdmin = 'assignuser';
verifyAccessPages();
isPlanner();
if (isset($_POST["plan_cadre_elaboration"])) {
    $_SESSION["assigner_plancadre"] = $_POST["plan_cadre_elaboration"];
} else {
    if (isset($_POST["liste_plan_cadre_elaboration"])) {
        if (!empty($_POST["liste_plan_cadre_elaboration"])) {
            $_SESSION["assigner_plancadre"] = $_POST["liste_plan_cadre_elaboration"];
        }
    }
}
if (!isset($_SESSION["assigner_plancadre"])) {
    header('Location: ' . VIEW_ASSIGN_PLANCADRE);
} else {
    $plancadre = fetchPlanCadreElaboration_PlanCadre($_SESSION["assigner_plancadre"]);
    if (empty($plancadre)) {
        header('Location: ' . VIEW_ASSIGN_PLANCADRE);
    }
}
?>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

        <link rel="Stylesheet" href="../assets/pure.css">
        <link rel="Stylesheet" href="../assets/styles.css">
        <link rel="Stylesheet" href="../assets/others.css">

        <script type="text/javascript" src="../assets/js_global.js" ></script>
function getSpecificPlanCadre($id)
{
    return fetchPlanCadreElaboration_PlanCadre($id);
}