5Pé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">
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++):?>
47if (count($aPerMonth[
$i]) != 0 ){
48 for ($x=0;$x<count($aPerMonth[
$i]);$x++) {
50 printf (
" \$aItem [$i] [$e] = %s",$aItem[
$i][
$e][
'fi_amount']);
51 echo
p(
"\$aPeriode[$h]['p_id']==\$aPerMonth[$i][$x]['fi_pid'] ".
52 $aPeriode[$h][
'p_id'].
"==".$aPerMonth[
$i][$x][
'fi_pid'] );
55 echo
p(
" \$aItem[$i][$e]['fi_account']==\$aPerMonth[$i][$x]['fi_account']".
56 $aItem[
$i][
$e][
'fi_account'].
"==".$aPerMonth[
$i][$x][
'fi_account']);
57 if (
$aPeriode[$h][
'p_id']==$aPerMonth[
$i][$x][
'fi_pid']) {
58 echo
p(
"\$aPeriode[$h]['p_id']==\$aPerMonth[$i][$x]['fi_pid'] YES");
60 echo
p(
"\$aPeriode[$h]['p_id']==\$aPerMonth[$i][$x]['fi_pid'] NO");
63 if ($aItem[
$i][
$e][
'fi_account']==$aPerMonth[
$i][$x][
'fi_account']) {
64 echo
p(
"\$aItem[$i][$e]['fi_account']==\$aPerMonth[$i][$x]['fi_account']YES");
66 echo
p(
"\$aItem[$i][$e]['fi_account']==\$aPerMonth[$i][$x]['fi_account']NO");
68 echo
p(
"\$aItem[$i][$e]['fi_account'] [".$aItem[
$i][
$e][
'fi_account'].
"]");
69 echo
p(
"\$aPerMonth[$i][$x]['fi_account'] [".$aPerMonth[
$i][$x][
'fi_account'].
"]");
73 $aPeriode[$h][
'p_id']==$aPerMonth[
$i][$x][
'fi_pid'] &&
74 trim($aItem[
$i][
$e][
'fi_account'])==trim($aPerMonth[
$i][$x][
'fi_account'])
78 if ( DEBUGNOALYSS > 1 ){
79 echo
p(
"\$aPerMonth[$i][$x]['fi_amount']".$aPerMonth[
$i][$x][
'fi_amount']);
80 echo
"\$amount = $amount ";
106<?php
for ($h=0;$h<count(
$aPeriode);$h++):?>
108 <?php echo
nbm( $aReal[
$i][
$e][$h]);
119 <?=_(
'Total estimé')?>
135 <?php echo _(
'Total réel');
140 <?php
for ($h = 0; $h < count(
$aPeriode); $h++):?>
153<?php echo _(
'Différence');?>
155<?php
for ($h=0;$h<count(
$aPeriode);$h++):?>
161 echo
'<td style="text-align:right;">';
165 echo
'<td style="text-align:right;background-color:green;color:white">';
168 echo
'<td style="text-align:right;background-color:red;color:white">';
172 echo
'<td style="text-align:right;background-color:green;color:white">';
183<?php echo _(
'Diff. cumul.');
$cum=0.0; ?>
186<?php
for ($h=0;$h<count(
$aPeriode);$h++):?>
199 $strColorCell=
'<td style="text-align:right;background-color:green;color:white">';
202 $strColorCell=
'<td style="text-align:right;background-color:red;color:white">';
238<?php
if ( ! empty (
$error) ) : ?>
240Désolé il y a des formules incorrectes
241<ul
style=
"list-style-type:none">
h1($p_string, $p_class="")
tr($p_string, $p_extra='')
td($p_string='', $p_extra='')
surround the string with td
nbm($p_number, $p_dec=2)
format the number with a sep.
return false Description text align
h( $row[ 'oa_description'])
if(! empty( $error)) for($i=0;$i< count($error);$i++)( $last !=$error[$i]) $last
for($h=0;$h< count($aPeriode);$h++) $amount_initial
if($h==0) if(count($aPerMonth[$i]) !=0) $amount
if( $delta< 0) elseif( $delta==0)