phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r5129 - phpcompta/tags/rel650/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r5129 - phpcompta/tags/rel650/include
Date: Mon, 1 Oct 2012 21:30:21 +0200 (CEST)

Author: danydb
Date: 2012-10-01 21:30:20 +0200 (Mon, 01 Oct 2012)
New Revision: 5129

Modified:
   phpcompta/tags/rel650/include/impress_gl_comptes.inc.php
Log:
Grand Livre : surlign?\195?\169 ligne paire

Modified: phpcompta/tags/rel650/include/impress_gl_comptes.inc.php
===================================================================
--- phpcompta/tags/rel650/include/impress_gl_comptes.inc.php    2012-10-01 
19:23:16 UTC (rev 5128)
+++ phpcompta/tags/rel650/include/impress_gl_comptes.inc.php    2012-10-01 
19:30:20 UTC (rev 5129)
@@ -168,7 +168,8 @@
             continue;
         }
 
-        echo '<tr>
+
+        echo '<tr >
         <td colspan="8" style="width:auto">
         <h2 class="info">'. $poste_id['pcm_val'].' '.h($Poste->label).'</h2>
         </td>
@@ -189,6 +190,7 @@
         $solde_d = 0.0;
         $solde_c = 0.0;
        bcscale(2);
+       $i=0;
         foreach ($Poste->row as $detail)
         {
          if ($a==0) {var_dump($detail);$a=1;}
@@ -217,7 +219,9 @@
             }
                        $side="&nbsp;".$Poste->get_amount_side($solde);
            $letter=($detail['letter']!=-1)?hi($detail['letter']):'';
-            echo '<tr>
+               $i++;
+               if (($i % 2 ) == 0) $class="odd"; else $class="even";
+            echo '<tr class="'.$class.'">
             <td>'.$detail['j_date_fmt'].'</td>
             
<td>'.HtmlInput::detail_op($detail['jr_id'],$detail['jr_internal']).'</td>
             <td>'.$detail['description'].'</td>
@@ -228,7 +232,7 @@
             <td  style="text-align:right;color:red">'.$letter.'</td>
             </tr>';
         }
-        echo '<tr>
+        echo '<tr >
         <td>'.''.'</td>
         <td>'.''.'</td>
         <td>'.'<b>'.'Total du compte '.$poste_id['pcm_val'].'</b>'.'</td>



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu



reply via email to

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