phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r5669 - phpcompta/tags/rel671/include/template


From: phpcompta-dev
Subject: [Phpcompta-dev] r5669 - phpcompta/tags/rel671/include/template
Date: Fri, 10 Jan 2014 19:15:52 +0100 (CET)

Author: danydb
Date: 2014-01-10 19:15:52 +0100 (Fri, 10 Jan 2014)
New Revision: 5669

Modified:
   phpcompta/tags/rel671/include/template/ledger_detail_ach.php
   phpcompta/tags/rel671/include/template/ledger_detail_misc.php
   phpcompta/tags/rel671/include/template/ledger_detail_ven.php
Log:
improve appearance

Modified: phpcompta/tags/rel671/include/template/ledger_detail_ach.php
===================================================================
--- phpcompta/tags/rel671/include/template/ledger_detail_ach.php        
2014-01-10 18:15:39 UTC (rev 5668)
+++ phpcompta/tags/rel671/include/template/ledger_detail_ach.php        
2014-01-10 18:15:52 UTC (rev 5669)
@@ -226,7 +226,8 @@
                             $row.=td('');
                         }
                     }
-                    echo tr($row);
+                     $class=($e%2==0)?' class="even"':'class="odd"';
+                     echo tr($row,$class);
                 }
                 if ($owner->MY_TVA_USE == 'Y')
                     $row = td(_('Total'), ' 
style="font-style:italic;text-align:right;font-weight: bolder;width:auto" 
colspan="6"');
@@ -309,7 +310,9 @@
                         $montant = td(nbm($q[$e]['j_montant']), 'class="num"');
                         $row.=($q[$e]['j_debit'] == 't') ? $montant : td('');
                         $row.=($q[$e]['j_debit'] == 'f') ? $montant : td('');
-                        echo tr($row);
+                        $class=($e%2==0)?' class="even"':'class="odd"';
+
+                        echo tr($row,$class);
                     }
                     ?>
             </table>

Modified: phpcompta/tags/rel671/include/template/ledger_detail_misc.php
===================================================================
--- phpcompta/tags/rel671/include/template/ledger_detail_misc.php       
2014-01-10 18:15:39 UTC (rev 5668)
+++ phpcompta/tags/rel671/include/template/ledger_detail_misc.php       
2014-01-10 18:15:52 UTC (rev 5669)
@@ -163,8 +163,10 @@
        $row.=td('');
       }
     }
-    echo tr($row);
+    $class=($e%2==0)?' class="even"':'class="odd"';
 
+    echo tr($row,$class);
+
   }
 ?>
 </table>

Modified: phpcompta/tags/rel671/include/template/ledger_detail_ven.php
===================================================================
--- phpcompta/tags/rel671/include/template/ledger_detail_ven.php        
2014-01-10 18:15:39 UTC (rev 5668)
+++ phpcompta/tags/rel671/include/template/ledger_detail_ven.php        
2014-01-10 18:15:52 UTC (rev 5669)
@@ -219,7 +219,8 @@
                             $row.=td('');
                         }
                     }
-                    echo tr($row);
+                     $class=($e%2==0)?' class="even"':'class="odd"';
+                     echo tr($row,$class);
                 }
                 if ($owner->MY_TVA_USE == 'Y')
                     $row = td(_('Total'), ' 
style="font-style:italic;text-align:right;font-weight: bolder;" colspan="5"');
@@ -302,7 +303,8 @@
                         $montant = td(nbm($q['j_montant']), 'class="num"');
                         $row.=($q['j_debit'] == 't') ? $montant : td('');
                         $row.=($q['j_debit'] == 'f') ? $montant : td('');
-                        echo tr($row);
+                        $class=($e%2==0)?' class="even"':'class="odd"';
+                        echo tr($row,$class);
                     }
                     ?>
             </table>



---
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]