ajpout bouton annuler
This commit is contained in:
parent
1d01213315
commit
5c1836e5e6
@ -57,7 +57,7 @@ function choixVotation($path, $methode = 2, $confirm = true) //2 = toutes les v
|
||||
$result = $db->query($query);
|
||||
$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"];
|
||||
if( !empty($action))
|
||||
@ -68,7 +68,7 @@ function choixVotation($path, $methode = 2, $confirm = true) //2 = toutes les v
|
||||
|
||||
//echo $redirect;
|
||||
header( 'Location: ' . $base_url . '/gestionsite/modifVotation.php?id=' . $votations["0"]["id"]) . $redirect;
|
||||
}
|
||||
}*/
|
||||
print ('<form method="get" action="' . $path . '">');
|
||||
print "<pre>";
|
||||
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>
|
||||
<div>
|
||||
<input type="submit" value="Envoyer"/>
|
||||
<input type="submit" formaction="index.php" value="' . _("Annuler") . '"/>
|
||||
</div>
|
||||
</form>';
|
||||
$db->close();
|
||||
|
Reference in New Issue
Block a user