From 9146bb336e460dc342242e214cabe2d883adbb9d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 31 Aug 2017 02:34:07 +0200 Subject: [PATCH] Work on merging all payment modes in one page --- htdocs/core/class/html.form.class.php | 7 +- htdocs/core/class/html.formactions.class.php | 2 +- .../install/mysql/migration/6.0.0-7.0.0.sql | 6 + htdocs/langs/en_US/paybox.lang | 2 +- htdocs/langs/en_US/paypal.lang | 8 +- htdocs/langs/en_US/stripe.lang | 2 +- htdocs/paybox/admin/paybox.php | 26 +- htdocs/paypal/admin/paypal.php | 24 +- htdocs/paypal/lib/paypal.lib.php | 2 +- htdocs/public/onlinesign/newonlinesign.php | 2 +- htdocs/public/paybox/newpayment.php | 20 +- htdocs/public/paybox/paymentko.php | 22 +- htdocs/public/paybox/paymentok.php | 12 +- htdocs/public/payment/newpayment.php | 451 +++++++++++++++--- htdocs/public/payment/paymentko.php | 55 +-- htdocs/public/payment/paymentok.php | 190 ++++---- htdocs/public/paypal/newpayment.php | 27 +- htdocs/public/paypal/paymentko.php | 8 +- htdocs/public/paypal/paymentok.php | 20 +- htdocs/public/stripe/newpayment.php | 20 +- htdocs/public/stripe/paymentko.php | 18 +- htdocs/public/stripe/paymentok.php | 16 +- htdocs/stripe/admin/stripe.php | 24 +- htdocs/theme/eldy/style.css.php | 44 +- 24 files changed, 665 insertions(+), 343 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 3ff082a9ec1..8a5f13a8366 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -628,9 +628,10 @@ class Form * @param string $htmloption Options html on select object * @param integer $maxlength Max length for labels (0=no limit) * @param string $morecss More css class + * @param string $usecodeaskey 'code3'=Use code on 3 alpha as key, 'code2"=Use code on 2 alpha as key * @return string HTML string with select */ - function select_country($selected='',$htmlname='country_id',$htmloption='',$maxlength=0,$morecss='minwidth300') + function select_country($selected='',$htmlname='country_id',$htmloption='',$maxlength=0,$morecss='minwidth300',$usecodeaskey='') { global $conf,$langs; @@ -684,11 +685,11 @@ class Form if ($selected && $selected != '-1' && ($selected == $row['rowid'] || $selected == $row['code_iso'] || $selected == $row['code_iso3'] || $selected == $row['label']) ) { $foundselected=true; - $out.= '