Go to the documentation of this file.00001 <?php
00002
00003
00004 ?><table class="result" style="width:80%;margin-left:10%">
00005 <tr>
00006 <th>
00007 <?php echo _("N°")?>
00008 </th>
00009 <th>
00010 <?php echo _("Date")?>
00011 </th>
00012 <th>
00013 <?php echo _("N° op")?>
00014 </th>
00015 <th>
00016 <?php echo _("n° pièce")?>
00017 </th>
00018 <th>
00019 <?php echo _("Libellé")?>
00020 </th>
00021 <th style="text-align:right">
00022 <?php echo _("Montant")?>
00023 </th>
00024 </tr>
00025 <?php
00026 for ($i=0;$i<count($array);$i++) {
00027
00028 $r='';
00029 $r.=td($i);
00030 $r.=td(format_date($array[$i]['first']['jr_date']));
00031 $detail=sprintf('<a class="detail" href="javascript:modifyOperation(\'%s\',%d)">%s</a>',
00032 $array[$i]['first']['jr_id'],$gDossier,$array[$i]['first']['jr_internal']);
00033 $r.=td($detail);
00034 $r.=td($array[$i]['first']['jr_pj_number']);
00035 $r.=td($array[$i]['first']['jr_comment']);
00036 $r.=td(nbm($array[$i]['first']['jr_montant']),'style="text-align:right"');
00037 echo tr($r);
00038
00039 $ret=$acc_reconciliation->db->execute('detail_quant',array($array[$i]['first']['jr_id']));
00040 $acc_reconciliation->show_detail($ret);
00041 if ( isset($array[$i]['depend']) )
00042 {
00043 $limit=count($array[$i]['depend'])-1;
00044 for ($e=0;$e<count($array[$i]['depend']);$e++) {
00045 $r='';
00046 $r.=td($i);
00047 $r.=td(format_date($array[$i]['depend'][$e]['jr_date']));
00048 $detail=sprintf('<a class="detail" href="javascript:modifyOperation(\'%s\',%d)">%s</a>',
00049 $array[$i]['depend'][$e]['jr_id'],$gDossier,$array[$i]['depend'][$e]['jr_internal']);
00050 $r.=td($detail);
00051 $r.=td($array[$i]['depend'][$e]['jr_pj_number']);
00052 $r.=td($array[$i]['depend'][$e]['jr_comment']);
00053 $r.=td(nbm($array[$i]['depend'][$e]['jr_montant']),'style="text-align:right"');
00054 if ( $e==$limit)
00055 echo '<tr style="border-bottom: 1px solid #4f4f7d;">'.$r.'</tr>';
00056 else
00057 echo tr($r);
00058 $ret=$acc_reconciliation->db->execute('detail_quant',array($array[$i]['depend'][$e]['jr_id']));
00059 $acc_reconciliation->show_detail($ret);
00060 }
00061
00062 }
00063 }
00064 ?>
00065 </table>