<div class="box-body table-responsive no-padding"> <table class="table table-hover"> <thead> <th>Dates</th> <th>Intitule</th><th>Lieu</th> <th>Places</th> <th>Attente</th> <th>Dates</th> <th>Animateur</th> <th></th></thead> <?php for ($j = 1; $j <= $nbsessionsprog; $j++) { $row = mysqli_fetch_array($result); //elements $titresession = getTitreSession($row["nom_session"]); //test de validation en cours des dates de la session pour permettre ou non la suppression $testvalidation = getSessionvalidees($row["id_session"]); $salle = mysqli_fetch_array(getSalle($row["id_salle"])); $lieu = $salle["nom_salle"] . " <br>(" . $espaces[$salle["id_espace"]] . ")"; if ($row["date_session"] < date('Y-m-d')) { $statutaffiche = $row["nbre_dates_sessions"] . " <small class=\"badge bg-blue\" data-toggle=\"tooltip\" title=\"Des dates de la session n'ont pas encore été validées !\"><i class=\"fa fa-info\"></i></small>"; $class = "text-red"; } else { $class = ""; $statutaffiche = $row["nbre_dates_sessions"]; } //affichage de toutes les dates de la session $datesarray = getDatesSession($row["id_session"]); $nbrdates = $row["nbre_dates_sessions"]; $listedatess = '';
$nomespace = mysqli_fetch_array(getEspace($rowTA["id_espace"])); $duree = $rowAtelier["duree_atelier"]; $testinscription = getTestInscript($_SESSION["iduser"], $idatelier, "a"); if ($testinscription == "FALSE") { $urlAS = "index.php?m=6&b=1&idatelier=" . $idatelier; $boutoninscr = "s'inscrire"; $couleurb = "btn btn-success btn-xs"; } else { $urlAS = ""; $boutoninscr = $arrayinscrip[$testinscription["statut"]]; $couleurb = "btn btn-warning btn-xs"; } } elseif ($rowTA["tab_origine"] == "tab_session_dates") { $idsession = $rowTA["id"]; $rowSession = getSession($idsession); $titrearr = getTitreSession($rowSession["nom_session"]); $titre = $titrearr["session_titre"]; $temp = strtotime($rowTA["dateAS"]); $heureAS = date('H:i', $temp); $dateAS = $rowTA["dateAS"]; $anim = getUserName($rowSession["id_anim"]); $inscrits = countPlaceSession($rowSession["id_session"], 0); $salle = mysqli_fetch_array(getSalle($rowSession["id_salle"])); //$nomsalle=$salle["nom_salle"]; $nomespace = mysqli_fetch_array(getEspace($rowTA["id_espace"])); $duree = "60"; $testinscription = getTestInscript($_SESSION["iduser"], $idsession, "s"); if ($testinscription == "FALSE") { $urlAS = "index.php?m=6&b=1&idsession=" . $idsession; $boutoninscr = "s'inscrire"; $couleurb = "btn btn-success btn-xs";