$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); $smarty->assign('nb_votant', $maxVotant); } elseif ($action == 'supprimer') { if ($forum_appel->supprimerSession($_GET['id'])) { AFUP_Logs::log('Suppression de la session ' . $_GET['id']); afficherMessage('La session a été supprimée', 'index.php?page=forum_sessions&action=lister&type=' . $list_type); } else { afficherMessage('Une erreur est survenue lors de la suppression de la session', 'index.php?page=forum_sessions&action=lister&type=' . $list_type, true); } } elseif ($action == 'commenter') { $journees = array(); $journees[1] = 'Fonctionnel'; $journees[2] = 'Technique'; $journees[3] = 'Les deux'; $genres = array(); $genres[1] = 'Conférence plénière (40 min)'; $genres[3] = 'Conférence plénière (20 min)'; $genres[2] = 'Atelier'; $genres[9] = 'Projet PHP';