protect($libelle) . "', " . $db->protect($method) . "," . $db->protect($idVotation) . ")"; $db->query($query); header("Location: " . $$base_url . "/" . $path , TRUE, 301); return; }else { $_SESSION["idVotation"] = $idVotation; $votationName = $db->queryVotationName($db, $idVotation); } }else { if (array_key_exists("idVotation", $_SESSION)) { if (!empty($_SESSION["idVotation"])) { $idVotation = $_SESSION["idVotation"]; $votationName = $db->queryVotationName($db, $idVotation); } } } require_once 'entete.php'; print('

') . EOL; print('
'); $votes = $db->queryVotes($db, $idVotation); if (!empty($votes)) { print(""); foreach ($votes as $value) { print ("" . EOL); } print("
"); print("voteméthode
" . $value["libelle"] . "" . $value["methode"] . "
" . EOL); echo EOLH . EOLH; } print('

Nouveau vote pour la votation'); if (empty($idVotation)) { choixVotation($path, 0, false); }else { print(": " . $votationName . '

' . EOL); if (empty($method) or empty($libelle)) { votesForm($path); }else { } } $db->close(); print('
'); require_once("footer.html"); ?>