noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 24/219: Code improve : Replace HtmlInput::gen


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 24/219: Code improve : Replace HtmlInput::generate_id obsolete , fix bug in the filter for detail history
Date: Mon, 18 Dec 2017 13:22:29 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 711b3b8f1dfc366fc749c426000278d87e5c05aa
Author: Dany De Bontridder <address@hidden>
Date:   Fri Jul 28 11:51:32 2017 +0200

    Code improve : Replace HtmlInput::generate_id obsolete , fix bug in the 
filter for detail history
---
 include/class/acc_account_ledger.class.php | 2 +-
 include/class/fiche.class.php              | 2 +-
 include/lib/html_input.class.php           | 2 +-
 include/template/detail-action.php         | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/class/acc_account_ledger.class.php 
b/include/class/acc_account_ledger.class.php
index 4dedf61..0ccb3de 100644
--- a/include/class/acc_account_ledger.class.php
+++ b/include/class/acc_account_ledger.class.php
@@ -700,7 +700,7 @@ class Acc_Account_Ledger
      * @return html string
      */
     function filter_history($p_table_id) {
-        return _('Filtre rapide').' '.HtmlInput::filter_table($p_table_id, 
'0,1,2,3,5,6,7', 1);
+        return _('Filtre rapide').' '.HtmlInput::filter_table($p_table_id, 
'0,1,2,3,4,5,6,7', 1);
     }
     static function test_me()
     {
diff --git a/include/class/fiche.class.php b/include/class/fiche.class.php
index e18e4e5..4fe2b10 100644
--- a/include/class/fiche.class.php
+++ b/include/class/fiche.class.php
@@ -2043,7 +2043,7 @@ class Fiche
      */
 
     function filter_history($p_table_id) {
-        return _('Cherche').' '.HtmlInput::filter_table($p_table_id, 
'0,1,2,3,5,6,7', 1);
+        return _('Cherche').' '.HtmlInput::filter_table($p_table_id, 
'0,1,2,3,4,5,6,7', 1);
     }
 }
 
diff --git a/include/lib/html_input.class.php b/include/lib/html_input.class.php
index bb794ad..0a3e510 100755
--- a/include/lib/html_input.class.php
+++ b/include/lib/html_input.class.php
@@ -536,7 +536,7 @@ class HtmlInput
     static function 
button_image($javascript,$id="xx",$p_class='class="button"',$p_image="")
     {
         if ($id=="xx"){
-            $id=HtmlInput::generate_id("xx");
+            $id=uniqid("xx");
         }
         $r="";
         $r.='<image id="'.$id.'" '.$p_class.' onclick="'.$javascript.'"  
src="'.$p_image.'" />';
diff --git a/include/template/detail-action.php 
b/include/template/detail-action.php
index 496e6f0..bd31a80 100644
--- a/include/template/detail-action.php
+++ b/include/template/detail-action.php
@@ -1,7 +1,7 @@
 <?php
 //This file is part of NOALYSS and is under GPL 
 //see licence.txt
-$uniq=HtmlInput::generate_id("tab");
+$uniq=uniqid("tab",TRUE);
 ?><div>
 <div style="float:left;">
 



reply via email to

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