Choisissez une votations à modifier
' . EOL);
$db = new db();
if (empty($action))
{
	$action="modif";
	choixVotation('./modifVotation.php') ;
}else
{
	if ($action == "cloture")
	{
		if (empty($idVotation))
		{
			// choix de la votation à cloturer
			choixVotation('./modifVotation.php', 0);
		}else
		{
			//TODO alert "Do you want to delete ..."
			$query = "UPDATE liste_votations SET status=0 WHERE id='" . $db->protect($idVotation) . "'";    // clotûre
			$db->query($query);
		}
	}elseif ($action == "modif")
	{
		//TODO
		votationForm($path, $titre, $libelle, $dateDebut, $dateFin, $status);
	}
}
print('