コード例 #1
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;
    }
}
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') {
コード例 #2
0
ファイル: fiche.php プロジェクト: remyyounes/dolibarr
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;
	}
    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;
}