noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 02/05: Task #1282 Print Balance : highlight s


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 02/05: Task #1282 Print Balance : highlight sum
Date: Mon, 21 Mar 2016 09:00:37 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 6e6adcb48759367e5c3e5d0d5cb381fb22e2f03c
Author: Dany De Bontridder <address@hidden>
Date:   Sat Mar 19 14:39:38 2016 +0100

    Task #1282 Print Balance : highlight sum
---
 include/balance.inc.php |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/include/balance.inc.php b/include/balance.inc.php
index 310c4db..68e81c8 100644
--- a/include/balance.inc.php
+++ b/include/balance.inc.php
@@ -323,6 +323,7 @@ if ( isset($_GET['view'] ) )
     $lvl3_old='';
 
     bcscale(2);
+    $nb_row = count($row);
     foreach ($row as $r)
     {
         $i++;
@@ -343,7 +344,7 @@ if ( isset($_GET['view'] ) )
            if ( ${'lvl'.$ind.'_old'} != mb_substr($r['poste'],0,$ind))
              {
 
-               echo '<tr >';
+               echo '<tr class="highlight">';
                echo td(${'lvl'.$ind.'_old'},'style="font-weight:bold;"');
                echo td(${'lvl'.$ind.'_old'}." "._("Total niveau")." 
".$ind,'style="font-weight:bold;"');
                 if ($previous==1) {
@@ -379,6 +380,10 @@ if ( isset($_GET['view'] ) )
              $lvl2[$a]=bcadd($lvl2[$a],$r[$a]);
              $lvl3[$a]=bcadd($lvl3[$a],$r[$a]);
            }
+       // For the Total row , there is no accounting
+        if ( $r['poste'] == "") {
+            $tr="highlight";
+        }
         echo '<TR class="'.$tr.'">';
         echo td($view_history);
         echo td(h($r['label']));



reply via email to

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