</thead> <tbody> <?php // On n'imprime pas la dernière ligne car elle correspondra forcément à for ($i = 0; $i < max(count($depenses), count($recettes)); $i++) { echo '<tr>'; if (isset($depenses[$i])) { echo $depenses[$i]; } else { echo '<td class="coucou" colspan="3"></td>'; } if (isset($recettes[$i])) { echo $recettes[$i]; } else { echo '<td class="coucou" colspan="3"></td>'; } echo "</tr>\n"; } ?> <tr> <td colspan="2"><b>Total</b></td><td><b><?php echo format_montant($total_depenses); ?> </b></td> <td colspan="2"><b>Total</b></td><td><b><?php echo format_montant($total_recettes); ?> </b></td> </tr> </tbody> </table>
} ?> <tr class="table-treso-ligne"> <td><?php echo $poste->getNom(); ?> </td> <td> <?php echo format_progressbar($_sum, $_total); ?> </td> <?php echo format_montant($_total); ?> <td> <div class="btn-group pull-right"> <a href="<?php echo url_for('transaction_new_with_budget_poste', array('asso_id' => $assos->getPrimaryKey(), 'poste_id' => $poste->getPrimaryKey())); ?> " class="btn"><i class="icon-plus"></i> Transaction</a> <a href="<?php echo url_for('budget_poste_edit', $poste); ?> " class="btn"><i class="icon-pencil"></i> Editer</a> <a href="<?php echo url_for('budget_poste_delete', $poste); ?> " class="btn btn-danger"><i class="icon-trash icon-white"></i></a>