[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 02/12: #0001736: PHP7 comptability
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 02/12: #0001736: PHP7 comptability |
Date: |
Thu, 12 Sep 2019 16:01:23 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 26ceb85a30e19d7249590233b78692e53ba0cc89
Author: Dany De Bontridder <address@hidden>
Date: Mon Sep 9 19:15:47 2019 +0200
#0001736: PHP7 comptability
---
include/ajax/ajax_anc_search.php | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/include/ajax/ajax_anc_search.php b/include/ajax/ajax_anc_search.php
index 5a4711c..00c114e 100644
--- a/include/ajax/ajax_anc_search.php
+++ b/include/ajax/ajax_anc_search.php
@@ -52,8 +52,11 @@ echo $texte->input();
echo '</span>';
echo dossier::hidden();
$hid=new IHidden();
-echo $hid->input("c1",$_REQUEST['c1']);
-echo $hid->input("c2",$_REQUEST['c2']);
+$c1=$http->request('c1');
+$c2=$http->request('c2');
+
+echo $hid->input("c1",$c1);
+echo $hid->input("c2",$c2);
echo $hid->input("go");
echo HtmlInput::submit("go",_("Recherche"));
echo '</form>';
@@ -61,15 +64,15 @@ echo '</form>';
if ( isset($_REQUEST['go']))
{
$cn=Dossier::connect();
- $plan=new Anc_Plan($cn,$_REQUEST['c2']);
- $plan->pa_id=$_REQUEST['c2'];
+ $plan=new Anc_Plan($cn,$c2);
+ $plan->pa_id=$c2;
if ( $plan->exist()==false)
exit(_("Ce plan n'existe pas"));
-
+ $plabel=$http->request("plabel");
$sql="select po_name , po_description from poste_analytique ".
"where pa_id=$1 and ".
" (po_name ~* $2 or po_description ~* $3) order by po_name";
-
$array=$cn->get_array($sql,array($_REQUEST['c2'],$_REQUEST['plabel'],$_REQUEST['plabel']));
+ $array=$cn->get_array($sql,array($_c2,$plabel,$plabel));
if (empty($array) == true)
{
@@ -81,7 +84,7 @@ if ( isset($_REQUEST['go']))
foreach ($array as $line)
{
$js=sprintf("onclick=\"$('%s').value='%s';removeDiv('%s')\"",
- $_REQUEST['c1'],
+ $c1,
$line['po_name'],$ctl);
echo '<tr>'.
- [Noalyss-commit] [noalyss] branch master updated (dcd880f -> f4d6c5c), Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 03/12: PDFLand has now his own file, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 05/12: Periode : order by date asc, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 01/12: #0001736: PHP7 comptability, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 02/12: #0001736: PHP7 comptability,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 04/12: Data_SQL database connexion private, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 08/12: Bug : for customer without vat, there is not variable e_march_x_tva, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 07/12: Code cleaning : remove dead code, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 06/12: Periode : when searching for a ledger , you can set a periode, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 12/12: Merge branch 'dev7109', Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 11/12: Mantis #0001442: CA - facilité de manipulation - effacement Button for cleaning detail analytique in operation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 10/12: Version set to 7.1, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 09/12: Improve Doxygen, Dany De Bontridder, 2019/09/12