1
0

ajpout bouton annuler

This commit is contained in:
Daniel Tartavel 2022-09-19 12:54:22 +02:00
parent 1d01213315
commit 5c1836e5e6

View File

@ -57,7 +57,7 @@ function choixVotation($path, $methode = 2, $confirm = true) //2 = toutes les v
$result = $db->query($query); $result = $db->query($query);
$votations = $db->result->fetch_all(MYSQLI_ASSOC); $votations = $db->result->fetch_all(MYSQLI_ASSOC);
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"];
if( !empty($action)) if( !empty($action))
@ -68,7 +68,7 @@ function choixVotation($path, $methode = 2, $confirm = true) //2 = toutes les v
//echo $redirect; //echo $redirect;
header( 'Location: ' . $base_url . '/gestionsite/modifVotation.php?id=' . $votations["0"]["id"]) . $redirect; header( 'Location: ' . $base_url . '/gestionsite/modifVotation.php?id=' . $votations["0"]["id"]) . $redirect;
} }*/
print ('<form method="get" action="' . $path . '">'); print ('<form method="get" action="' . $path . '">');
print "<pre>"; print "<pre>";
print '<input type="hidden" name="action" value="' . $action . '"/>'; print '<input type="hidden" name="action" value="' . $action . '"/>';
@ -81,6 +81,7 @@ function choixVotation($path, $methode = 2, $confirm = true) //2 = toutes les v
print '</pre><br> print '</pre><br>
<div> <div>
<input type="submit" value="Envoyer"/> <input type="submit" value="Envoyer"/>
<input type="submit" formaction="index.php" value="' . _("Annuler") . '"/>
</div> </div>
</form>'; </form>';
$db->close(); $db->close();