protect($idVotation) . ", " . $db->protect($idVote) . ",'" . $db->protect($libelle) . "', '". $db->protect($candidat) . "')"; $db->query($query); header("Location: " . $base_url . "/" . $path , TRUE, 301); return; }else { require_once 'entete.php'; print('

') . EOL; print('
'); if (empty($idVotation)) { choixVotation($path, 0, false); }elseif (empty($idVote)) { choixVote($path, $idVotation); }elseif ($action == "modif" and !empty($idCandidat)) { }else { $votationName = $db->queryVotationName($idVotation); $voteName = $db->queryVoteName($idVote); $candidatsList = $db->queryCandidatsList($idVotation, $idVote); print('

Nouveau candidat pour le vote "' . $voteName . '" de la votation "' . $votationName . '"

' . EOLH); if (empty($candidatsList)) { print("Aucun candidats saisi pour l'instant" . EOLH); }else { print('

Liste des candidats

'); foreach($candidatsList as $line) { print("" . $line["candidat"] . "
"); print(nl2br($line["libelle"]) . EOLH); } } candidatsForm($path, $idVotation, $idVote); } print('
'); require_once("footer.html"); } $db->close(); ?>