Exemplo n.º 1
0
        $db->commit();
        setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
    } else {
        $db->rollback();
        setEventMessages($langs->trans("Error"), null, 'errors');
    }
}
if ($action == "addnotif") {
    $bon = new BonPrelevement($db);
    $bon->AddNotification($db, GETPOST('user', 'int'), $action);
    header("Location: prelevement.php");
    exit;
}
if ($action == "deletenotif") {
    $bon = new BonPrelevement($db);
    $bon->DeleteNotificationById(GETPOST('notif', 'int'));
    header("Location: prelevement.php");
    exit;
}
/*
 *	View
 */
$form = new Form($db);
llxHeader('', $langs->trans("WithdrawalsSetup"));
$linkback = '<a href="' . DOL_URL_ROOT . '/admin/modules.php">' . $langs->trans("BackToModuleList") . '</a>';
print load_fiche_titre($langs->trans("WithdrawalsSetup"), $linkback, 'title_setup');
print '<br>';
print '<form method="post" action="prelevement.php?action=set">';
print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
Exemplo n.º 2
0
	exit;
}

if ($_GET["action"] == "addnotif")
{
	$bon = new BonPrelevement($db);
	$bon->AddNotification($db,$_POST["user"],$_POST["action"]);

	Header("Location: prelevement.php");
	exit;
}

if ($_GET["action"] == "deletenotif")
{
	$bon = new BonPrelevement($db);
	$bon->DeleteNotificationById($_GET["notif"]);

	Header("Location: prelevement.php");
	exit;
}

/*
 *	View
 */

$html=new Form($db);

llxHeader('',$langs->trans("WithdrawalsSetup"));

$linkback='<a href="'.DOL_URL_ROOT.'/admin/modules.php">'.$langs->trans("BackToModuleList").'</a>';