if (isset($_GET['type'])) { $list_type = $_GET['type']; } if (!isset($_GET['id_forum']) || intval($_GET['id_forum']) == 0) { $_GET['id_forum'] = $forum->obtenirDernier(); } $smarty->assign('id_forum', $_GET['id_forum']); $smarty->assign('list_type', $list_type); $smarty->assign('forums', $forum->obtenirListe()); $listeSessions = $forum_appel->obtenirListeSessions($_GET['id_forum'], $list_champs, $list_ordre, $list_associatif, $list_filtre, $list_type); $moi = $droits->obtenirIdentifiant(); $votant = in_array($_SESSION['afup_login'], $conf->obtenir('bureau')); $maxVotant = count($conf->obtenir('bureau')); foreach ($listeSessions as &$session) { $session['conferencier'] = $forum_appel->obtenirConferenciersPourSession($session['session_id']); $session['commentaires'] = $forum_appel->obtenirCommentairesPourSession($session['session_id']); $session['jai_commente'] = false; if ($votant) { $session['jai_vote'] = $forum_appel->dejaVote($moi, $session['session_id']); } foreach ($session['commentaires'] as $c) { if ($c['id_personne_physique'] == $moi) { $session['jai_commente'] = true; } } if ($votant) { $session['nb_vote'] = $forum_appel->nbVoteSession($session['session_id']); } } $smarty->assign('sessions', $listeSessions); $smarty->assign('votant', $votant);