Author: danydb
Date: 2014-01-04 21:13:27 +0100 (Sat, 04 Jan 2014)
New Revision: 643

Modified:
   trunk/rapport_avance/include/template/formulaire_listing.php
   trunk/rapport_avance/include/template/rapav_listing_to_list.php
Log:
Liste avec lignes altern?\195?\169es

Modified: trunk/rapport_avance/include/template/formulaire_listing.php
===================================================================
--- trunk/rapport_avance/include/template/formulaire_listing.php        
2014-01-04 20:08:35 UTC (rev 642)
+++ trunk/rapport_avance/include/template/formulaire_listing.php        
2014-01-04 20:13:27 UTC (rev 643)
@@ -39,8 +39,9 @@
        </tr>
 <?php 
        for ($i=0;$i<count($alist);$i++):
+            $class=($i%2==0)?'class="odd"':'class="even"';
 ?>
-       <tr>
+       <tr <?php echo $class; ?>>
                <td>
                        <?php echo h($alist[$i]['f_title'])?>
                </td>

Modified: trunk/rapport_avance/include/template/rapav_listing_to_list.php
===================================================================
--- trunk/rapport_avance/include/template/rapav_listing_to_list.php     
2014-01-04 20:08:35 UTC (rev 642)
+++ trunk/rapport_avance/include/template/rapav_listing_to_list.php     
2014-01-04 20:13:27 UTC (rev 643)
@@ -15,6 +15,8 @@
     <?php
     $max=Database::num_row($res);
     for ($i=0;$i<$max;$i++):
+            $class=($i%2==0)?'class="odd"':'class="even"';
+
         $row=  Database::fetch_array($res, $i);
      $arg = array(
             'gDossier' => Dossier::id(),
@@ -25,7 +27,7 @@
             'cout' => 'listing_definition_div_id');
         $json = 'listing_definition(' . str_replace('"', "'", 
json_encode($arg)) . ')';
     ?>
-    <tr>
+       <tr <?php echo $class; ?>>
         <td>
             <?php echo HtmlInput::anchor(h($row['l_name']),'',' 
onclick="'.$json.'"'); ?>
         </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