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

_______________________________________________
Phpcompta  est un logiciel libre de comptabilit&#233; en ligne 
(http://www.phpcompta.eu)
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev

Reply via email to