1
0
This commit is contained in:
Daniel Tartavel 2022-09-14 14:09:04 +02:00
parent 218020c4e6
commit a294901f8a

View File

@ -76,8 +76,7 @@ function choixVotation($path, $methode=2) //2 = toutes les votations 1 = votat
} }
$result = $db->query($query); $result = $db->query($query);
$votations = $db->result->fetch_all(MYSQLI_ASSOC); $votations = $db->result->fetch_all(MYSQLI_ASSOC);
print ('<form method="get" action="' . $path . '">');
print "<pre>";
if ($db->result->num_rows == 1) if ($db->result->num_rows == 1)
{ {
$redirect = '<META HTTP-EQUIV=Refresh CONTENT="0; URL=' . $base_url . $path . '?id=' . $votations["0"]["id"]; $redirect = '<META HTTP-EQUIV=Refresh CONTENT="0; URL=' . $base_url . $path . '?id=' . $votations["0"]["id"];
@ -88,8 +87,11 @@ function choixVotation($path, $methode=2) //2 = toutes les votations 1 = votat
$redirect .= '">'; $redirect .= '">';
echo $redirect; echo $redirect;
//header( 'Location: ' . $base_url . '/gestionsite/modifVotation.php?action=modif&id=' . $votations["0"]["id"]); header( 'Location: ' . $base_url . '/gestionsite/modifVotation.php?id=' . $votations["0"]["id"]) . $redirect;
} }
print ('<form method="get" action="' . $path . '">');
print "<pre>";
print '<input type="action" value="' . $action . '"';
foreach($votations as $key => $value ) foreach($votations as $key => $value )
{ {
print '<input type="radio" name="id" value="' . $value["id"] . '"> ' . $value["titre"] . '&nbsp;:' . $value["libelle"] . '<br>'; print '<input type="radio" name="id" value="' . $value["id"] . '"> ' . $value["titre"] . '&nbsp;:' . $value["libelle"] . '<br>';