$don->country = $_POST["country"]; $don->email = $_POST["email"]; $don->date = $donation_date; $don->note_private = GETPOST("note_private"); $don->note_public = GETPOST("note_public"); $don->public = $_POST["public"]; $don->fk_project = $_POST["projectid"]; $don->modepaiementid = $_POST["modepaiement"]; if ($don->create($user) > 0) { header("Location: index.php"); exit; } } } if ($action == 'delete') { $don->delete($id); header("Location: liste.php"); 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; } }
$don->public = $_POST["public"]; $don->fk_project = $_POST["projectid"]; $don->note = $_POST["comment"]; $don->modepaiementid = $_POST["modepaiement"]; if ($don->create($user) > 0) { Header("Location: index.php"); exit; } } } if ($_GET["action"] == 'delete') { $don->delete($_GET["rowid"]); Header("Location: liste.php"); exit; } if ($_POST["action"] == 'commentaire') { $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;