altocompta/include/template/impress_reconciliation.php
Dany De Bontridder 0cc29d1881 Bug : autocomplete do not work with FIN
Bug impress date were not verified
Cosmetic bug : table too large for impress->fiche->balance
Cosmetic bug : table too large for impress->rapprochement
Bug : protection against special char in card name, in autocomplete (fid.php fid_card.php)
Improve : progression for the historic of card
2010-07-29 17:11:39 +00:00

55 lines
No EOL
1.3 KiB
PHP

<table class="result" style="width:80%;margin-left:10%">
<tr>
<th>
</th>
<th>
Date
</th>
<th>
op
</th>
<th>
pièce
</th>
<th>
Libellé
</th>
<th>
Montant
</th>
</tr>
<?
for ($i=0;$i<count($array);$i++) {
$r='';
$r.=td($i);
$r.=td(format_date($array[$i]['first']['jr_date']));
$detail=sprintf('<a class="detail" href="javascript:modifyOperation(\'%s\',%d)">%s</a>',
$array[$i]['first']['jr_id'],$gDossier,$array[$i]['first']['jr_internal']);
$r.=td($detail);
$r.=td($array[$i]['first']['jr_pj_number']);
$r.=td($array[$i]['first']['jr_comment']);
$r.=td($array[$i]['first']['jr_montant']);
echo tr($r);
if ( isset($array[$i]['depend']) )
{
$limit=count($array[$i]['depend'])-1;
for ($e=0;$e<count($array[$i]['depend']);$e++) {
$r='';
$r.=td($i);
$r.=td(format_date($array[$i]['depend'][$e]['jr_date']));
$detail=sprintf('<a class="detail" href="javascript:modifyOperation(\'%s\',%d)">%s</a>',
$array[$i]['depend'][$e]['jr_id'],$gDossier,$array[$i]['depend'][$e]['jr_internal']);
$r.=td($detail);
$r.=td($array[$i]['depend'][$e]['jr_pj_number']);
$r.=td($array[$i]['depend'][$e]['jr_comment']);
$r.=td($array[$i]['depend'][$e]['jr_montant']);
if ( $e==$limit)
echo '<tr style="border-bottom: 1px solid #4f4f7d;">'.$r.'</tr>';
else
echo tr($r);
}
}
}
?>
</table>