noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 02/33: Cosmetic : add button close for filter


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 02/33: Cosmetic : add button close for filter, dialog box search operation, TVA
Date: Thu, 11 Nov 2021 06:02:41 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 5d70f21dfaa7df5db8aa5db71e321ab661676959
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Thu Sep 30 15:22:30 2021 +0200

    Cosmetic : add button close for filter, dialog box search operation, TVA
---
 html/ajax_misc.php                                 | 2 +-
 include/ajax/ajax_search_filter.php                | 1 +
 include/class/acc_ledger_search.class.php          | 3 ++-
 unit-test/include/class/acc_ledger_search.Test.php | 4 +++-
 4 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/html/ajax_misc.php b/html/ajax_misc.php
index 4ed267d..4f154a2 100644
--- a/html/ajax_misc.php
+++ b/html/ajax_misc.php
@@ -568,8 +568,8 @@ EOF;
                        $r.='</tr>';
                }
                $r.='</TABLE>';
+                $r.=HtmlInput::button_close("tva_select");
                $r.='</div>';
-                
                $html = escape_xml($r);
 
                header('Content-type: text/xml; charset=UTF-8');
diff --git a/include/ajax/ajax_search_filter.php 
b/include/ajax/ajax_search_filter.php
index 1d58a86..cc1d1d0 100644
--- a/include/ajax/ajax_search_filter.php
+++ b/include/ajax/ajax_search_filter.php
@@ -173,6 +173,7 @@ if ($op=="display_search_filter")
 
         printf("</li>");
     }
+    echo HtmlInput::button_close("boxfilter".$p_div);
     return;
 }
 //-----------------------------------------------------------------------------
diff --git a/include/class/acc_ledger_search.class.php 
b/include/class/acc_ledger_search.class.php
index 33d9838..f6e6b14 100644
--- a/include/class/acc_ledger_search.class.php
+++ b/include/class/acc_ledger_search.class.php
@@ -687,7 +687,7 @@ class Acc_Ledger_Search
         $r='';
         $r.='<div id="search_form" style="display:none">';
         $r.=HtmlInput::title_box(_('Recherche'), "search_form", "hide", "", 
"n");
-        $r.='<FORM METHOD="GET">';
+        $r.='<FORM METHOD="GET" >';
         $r.=$this->search_form();
         
         $r.=HtmlInput::submit('search', _('Rechercher'));
@@ -714,6 +714,7 @@ class Acc_Ledger_Search
 
 
 
+        $r.=HtmlInput::button_hide("search_form");
         $r.='</FORM>';
 
         $r.='</div>';
diff --git a/unit-test/include/class/acc_ledger_search.Test.php 
b/unit-test/include/class/acc_ledger_search.Test.php
index a1fbe72..f3f0b03 100644
--- a/unit-test/include/class/acc_ledger_search.Test.php
+++ b/unit-test/include/class/acc_ledger_search.Test.php
@@ -87,7 +87,9 @@ class Acc_Ledger_Test extends TestCase
          put_global(array(["key"=>"ac","value"=>"phpunit"]));
         $ledger=new Acc_Ledger_Search('ALL');
         $r=$ledger->display_search_form();
-        $this->assertEquals(9546,strlen($r),"Size of the html string for 
display_search_form");
+        \Noalyss\Facility::save_file(__DIR__."/file", 
"acc_ledger_search-test_display_search_form.html", $r);
+        $this->assertEquals(9665,strlen($r),"Size of the html string for 
display_search_form see "
+                . 
__DIR__."/file/acc_ledger_search-test_display_search_form.html ");
     }
     /**
      * @covers ::build_search_filter



reply via email to

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