noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 216/219: Task #1378 : select ledger thanks th


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 216/219: Task #1378 : select ledger thanks their type
Date: Mon, 18 Dec 2017 13:23:05 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 3cfd08867bd9bc86c4010d6dacc1d05cd2df17c8
Author: Dany De Bontridder <address@hidden>
Date:   Sat Dec 16 12:27:48 2017 +0100

    Task #1378 : select ledger thanks their type
---
 include/class/acc_ledger_search.class.php | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/include/class/acc_ledger_search.class.php 
b/include/class/acc_ledger_search.class.php
index cd84656..3ad3b47 100644
--- a/include/class/acc_ledger_search.class.php
+++ b/include/class/acc_ledger_search.class.php
@@ -1072,6 +1072,17 @@ class Acc_Ledger_Search
         echo '<form method="GET" id="'.$p_div.'search_frm" onsubmit="return 
hide_ledger_choice(\''.$p_div.'search_frm\')">';
         echo HtmlInput::hidden('nb_jrn', count($p_array));
         echo _('Filtre ').HtmlInput::filter_table($p_div.'tb_jrn', '0,1,2', 2);
+        echo HtmlInput::anchor_action(_('Inverser sel'),' 
toggle_checkbox(\''."{$p_div}search_frm".'\')','sel_'.$p_div,"nav");
+        echo "-";
+        echo HtmlInput::anchor_action(_('Effacer sel'),' 
unselect_checkbox(\''."{$p_div}search_frm".'\')','unsel_'.$p_div,"nav");
+        echo "-";
+        echo HtmlInput::anchor_action(_('Financier'),'  
select_checkbox_attribute(\''."{$p_div}search_frm".'\',\'ledger_type\',\'FIN\') 
','selfin_'.$p_div,"nav");
+        echo "-";
+        echo HtmlInput::anchor_action(_('Vente'),'  
select_checkbox_attribute(\''."{$p_div}search_frm".'\',\'ledger_type\',\'VEN\') 
','selfven_'.$p_div,"nav");
+        echo "-";
+        echo HtmlInput::anchor_action(_('Achat'),'  
select_checkbox_attribute(\''."{$p_div}search_frm".'\',\'ledger_type\',\'ACH\') 
','selfach_'.$p_div,"nav");
+        echo "-";
+        echo HtmlInput::anchor_action(_('Op.Diverses'),'  
select_checkbox_attribute(\''."{$p_div}search_frm".'\',\'ledger_type\',\'ODS\') 
','selfods_'.$p_div,"nav");
         echo '<table class="result" id="'.$p_div.'tb_jrn">';
         echo '<tr>';
         echo th(_('Nom'));
@@ -1080,13 +1091,14 @@ class Acc_Ledger_Search
         echo '</tr>';
         echo '<tr>';
         echo '<td>';
-        echo HtmlInput::button('sel_'.$p_div,_('Inverser la sélection'),' 
onclick = "toggle_checkbox(\''."{$p_div}search_frm".'\')"');
+        
         echo '</td>';
         echo '</tr>';
         for ($e=0;$e<count($p_array);$e++)
         {
             $row=$p_array[$e];
             $r=new ICheckBox($p_div.'r_jrn'.$e,$row['jrn_def_id']);
+            $r->set_attribute("ledger_type", $row['jrn_def_type']);
             $idx=$row['jrn_def_id'];
             if ( $p_selected != null &&  
in_array($row['jrn_def_id'],$p_selected))
             {



reply via email to

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