From 55070ab9078ad87c67678d32418b6a64b9c4044a Mon Sep 17 00:00:00 2001 From: BENKE Charlie Date: Wed, 22 Feb 2017 16:51:30 +0100 Subject: [PATCH] Add selectform for frst recur option (better usage) --- htdocs/societe/rib.php | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/htdocs/societe/rib.php b/htdocs/societe/rib.php index f77813951c8..06c16a2efe6 100644 --- a/htdocs/societe/rib.php +++ b/htdocs/societe/rib.php @@ -769,13 +769,14 @@ if ($socid && $action == 'edit' && $user->rights->societe->creer) // RUM print ''.$langs->trans("RUM").''; - print ''; + print ''; - // FRSTRECUR - print ''.$langs->trans("WithdrawMode").''; - print ''; + print ''; + $tblArraychoice = array("FRST" => $langs->trans("FRST"), "RECUR" => $langs->trans("RECUR")); + print $form->selectarray("frstrecur", $tblArraychoice, dol_escape_htmltag(GETPOST('frstrecur')?GETPOST('frstrecur'):$account->frstrecur), 0); + print ''; - print ''; + print ''; } print ''; @@ -859,19 +860,21 @@ if ($socid && $action == 'create' && $user->rights->societe->creer) if ($conf->prelevement->enabled) { - print '
'; + print '
'; print ''; // RUM print ''; - print ''; + print ''; - // FRSTRECUR - print ''; - print ''; + print ''; - print '
'.$langs->trans("RUM").''.$langs->trans("RUMWillBeGenerated").'
'.$langs->trans("RUMWillBeGenerated").'
'.$langs->trans("WithdrawMode").'
'; + $tblArraychoice = array("FRST" => $langs->trans("FRST"), "RECUR" => $langs->trans("RECUR")); + print $form->selectarray("frstrecur", $tblArraychoice, (isset($_POST['frstrecur'])?GETPOST('frstrecur'):'FRST'), 0); + print '
'; + + print ''; } print '';