exit; } if ($action == 'commentaire') { $don->fetch($id); $don->update_note($_POST["commentaire"]); } if ($action == 'valid_promesse') { if ($don->valid_promesse($id, $user->id) >= 0) { 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') {
$don->fetch($_POST["rowid"]); $don->update_note($_POST["commentaire"]); $_GET["rowid"] = $_POST["rowid"]; } if ($_GET["action"] == 'valid_promesse') { if ($don->valid_promesse($_GET["rowid"], $user->id) >= 0) { Header("Location: fiche.php?rowid=".$_GET["rowid"]); 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; }