header("Location: " . $_SERVER['PHP_SELF'] . "?id=" . $id); exit; } else { $mesg = $don->error; } } if ($action == 'set_cancel') { if ($don->set_cancel($id) >= 0) { header("Location: " . $_SERVER['PHP_SELF'] . "?id=" . $id); exit; } else { $mesg = $don->error; } } if ($action == 'set_paid') { if ($don->set_paye($id, $modepaiement) >= 0) { header("Location: " . $_SERVER['PHP_SELF'] . "?id=" . $id); exit; } else { $mesg = $don->error; } } if ($action == 'set_encaisse') { if ($don->set_encaisse($id) >= 0) { header("Location: " . $_SERVER['PHP_SELF'] . "?id=" . $id); exit; } else { $mesg = $don->error; } } /*
exit; } else $mesg=$don->error; } if ($_GET["action"] == 'set_cancel') { if ($don->set_cancel($_GET["rowid"]) >= 0) { Header("Location: fiche.php?rowid=".$_GET["rowid"]); exit; } else $mesg=$don->error; } if ($_GET["action"] == 'set_paid') { if ($don->set_paye($_GET["rowid"], $modepaiement) >= 0) { Header("Location: fiche.php?rowid=".$_GET["rowid"]); exit; } else $mesg=$don->error; } if ($_GET["action"] == 'set_encaisse') { if ($don->set_encaisse($_GET["rowid"]) >= 0) { Header("Location: fiche.php?rowid=".$_GET["rowid"]); exit; } else $mesg=$don->error; }