noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 127/162: Translation + use of httpInput


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 127/162: Translation + use of httpInput
Date: Sat, 11 Jul 2020 13:24:00 -0400 (EDT)

sparkyx pushed a commit to annotated tag E-4
in repository noalyss.

commit 8555b69d4d1e9948a03b0d48f08f89fe7281148b
Author: Dany De Bontridder <danydb@noalyss.eu>
AuthorDate: Fri Dec 28 10:00:06 2018 +0100

    Translation + use of httpInput
---
 include/compta_ods.inc.php | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/include/compta_ods.inc.php b/include/compta_ods.inc.php
index cab936d..0c15d15 100644
--- a/include/compta_ods.inc.php
+++ b/include/compta_ods.inc.php
@@ -40,8 +40,10 @@ global $g_user,$http;
 
 $cn = Dossier::connect();
 
-$id_predef = (isset($_REQUEST['p_jrn_predef'])) ? $_REQUEST['p_jrn_predef'] : 
-1;
-$id_ledger = (isset($_REQUEST['p_jrn'])) ? $_REQUEST['p_jrn'] : $id_predef;
+
+$id_predef = $http->request('p_jrn_predef','number',-1);
+$id_ledger = $http->request('p_jrn','number',$id_predef);
+
 $ledger = new Acc_Ledger($cn, $id_ledger);
 $first_ledger = $ledger->get_first('ODS');
 if ( empty ($first_ledger))
@@ -91,7 +93,7 @@ elseif (isset($_POST['save']))
                $ledger->save($array);
                $jr_id = $cn->get_value('select jr_id from jrn where 
jr_internal=$1', array($ledger->internal));
 
-               echo '<h2> Op&eacute;ration enregistr&eacute;e  Piece ' . 
h($ledger->pj) . '</h2>';
+               echo '<h2>'._("Opération enregistrée")._("Piece") . 
h($ledger->pj) . '</h2>';
                if (strcmp($ledger->pj, $_POST['e_pj']) != 0)
                {
                        echo '<h3 class="notice">' . _('Attention numéro pièce 
existante, elle a du être adaptée') . '</h3>';



reply via email to

[Prev in Thread] Current Thread [Next in Thread]