diff --git a/htdocs/compta/ajaxpayment.php b/htdocs/compta/ajaxpayment.php index fa09707e543..9b23a1bd67a 100644 --- a/htdocs/compta/ajaxpayment.php +++ b/htdocs/compta/ajaxpayment.php @@ -22,8 +22,8 @@ * \version ajaxpayment.php,v 1.0 */ -if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); -if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); +//if (! defined('NOREQUIREUSER')) define('NOREQUIREUSER','1'); +//if (! defined('NOREQUIREDB')) define('NOREQUIREDB','1'); if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1'); //if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1'); if (! defined('NOCSRFCHECK')) define('NOCSRFCHECK','1'); diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php index 997745b1754..64eaea3a7f4 100644 --- a/htdocs/compta/paiement.php +++ b/htdocs/compta/paiement.php @@ -24,7 +24,7 @@ * \file htdocs/compta/paiement.php * \ingroup compta * \brief Page to create a payment - * \version $Id: paiement.php,v 1.109 2011/07/04 16:39:48 cdelambert Exp $ + * \version $Id: paiement.php,v 1.110 2011/07/11 09:32:35 cdelambert Exp $ */ require('../main.inc.php'); @@ -272,14 +272,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie jQuery(\'.fieldrequireddyn\').removeClass(\'fieldrequired\'); } }); - }); - '."\n"; - } - - if (! empty($conf->global->MAIN_JS_ON_PAYMENT)) - { - print "\n".''."\n"; } - print '
'; + print ''; print ''; print ''; print ''; @@ -367,18 +360,18 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie print ''.$langs->trans('Comments').''; $rowspan=5; - if (! empty($conf->global->MAIN_JS_ON_PAYMENT)) $rowspan++; + if ($conf->use_javascript_ajax) $rowspan++; // Payment mode print ''.$langs->trans('PaymentMode').''; $html->select_types_paiements((GETPOST('paiementcode')?GETPOST('paiementcode'):$facture->mode_reglement_code),'paiementcode','',2); print "\n"; print ''; - print ''; + print ''; print ''; // Payment amount - if (! empty($conf->global->MAIN_JS_ON_PAYMENT)) + if ($conf->use_javascript_ajax) { print ''.$langs->trans('AmountPayment').''; print ''; @@ -519,7 +512,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie if ($action != 'add_paiement') { - if (! empty($conf->global->MAIN_JS_ON_PAYMENT)) + if ($conf->use_javascript_ajax) { print img_picto($langs->trans('AddRemind'),'rightarrow.png','id="'.$objp->facid.'" "'); } @@ -678,5 +671,5 @@ if (! GETPOST('action')) $db->close(); -llxFooter('$Date: 2011/07/04 16:39:48 $ - $Revision: 1.109 $'); +llxFooter('$Date: 2011/07/11 09:32:35 $ - $Revision: 1.110 $'); ?>