4 ?><
h1><?php echo $str_name;?></
h1>
5 Période du <?php echo $str_start?> à <?php echo $str_end;?>
6 <?php
for (
$i=0;
$i<count($aCat);
$i++):
7 <?php
if (count($aItem[
$i])==0)
continue;?>
13 <?php
for (
$e=0;
$e<count($aItem[
$i]);
$e++):?>
14 <
table class=
"result" style=
"margin-bottom:3px">
17 <?php echo
'<h2>'.
h($aItem[
$i][
$e][
'fi_text']).
'</h2>';?>
24 <
td style=
"font-weight:bold;border:1px solid black">
25 <?php echo _(
'Période')?></
td>
26 <?php
for ($h=0;$h<count($aPeriode);$h++):?>
27 <
td style=
"text-align:center;font-weight:bold;border:1px solid black">
28 <?php echo $aPeriode[$h][
'myear'];?>
31 <
td style=
"text-align:center;font-weight:bold;border:1px solid black;"><?php echo _(
'Totaux');?></
td>
38 <?php
for ($h=0;$h<count($aPeriode);$h++):?>
42 if (count($aPerMonth[
$i]) != 0 ){
43 for ($x=0;$x<count($aPerMonth[
$i]);$x++) {
45 if ($aPeriode[$h][
'p_id']==$aPerMonth[
$i][$x][
'fi_pid'] &&
46 $aItem[
$i][
$e][
'fi_card']==$aPerMonth[
$i][$x][
'fi_card'] &&
47 $aItem[
$i][
$e][
'fi_account']==$aPerMonth[
$i][$x][
'fi_account']
71 <?php echo _(
'Réel');
$tot=0;?>
73 <?php
for ($h=0;$h<count($aPeriode);$h++):?>
84 <?php echo _(
'Total réel');
89 <?php
for ($h = 0; $h < count($aPeriode); $h++):?>
102 <?php echo _(
'Différence');?>
104 <?php
for ($h=0;$h<count($aPeriode);$h++):?>
108 if ( ($aItem[
$i][
$e][
'fi_debit'] ==
'C' &&
$diff < 0) || ($aItem[
$i][
$e][
'fi_debit'] ==
'D' &&
$diff > 0))
110 echo
'<td style="text-align:right;background-color:red;color:white">';
114 echo
'<td style="text-align:right;">';
118 echo
'<td style="text-align:right;background-color:green;color:white">';
128 <?php echo _(
'Diff. cumul.');
$cum=0.0; ?>
130 <?php
for ($h=0;$h<count($aPeriode);$h++):?>
135 if ( ($aItem[
$i][
$e][
'fi_debit'] ==
'C' &&
$cum < 0) || ($aItem[
$i][
$e][
'fi_debit'] ==
'D' &&
$cum > 0))
137 echo
'<td style="text-align:right;background-color:red;color:white">';
141 echo
'<td style="text-align:right;">';
146 echo
'<td style="text-align:right;background-color:green;color:white">';
154 if ( ($aItem[
$i][
$e][
'fi_debit'] ==
'C' &&
$cum < 0) || ($aItem[
$i][
$e][
'fi_debit'] ==
'D' &&
$cum > 0))
156 echo
'<td style="text-align:right;background-color:red;color:white">';
160 echo
'<td style="text-align:right;background-color:green;color:white">';
189 <?php
if ( ! empty (
$error) ) : ?>
191 Désolé il y a des formules incorrectes
192 <ul
style=
"list-style-type:none">