altocompta/include/template/account_result.php
Dany De Bontridder d350f8476b task #0000813: plan comptable - quick code
Visible dans le popup quand on remplit les fiches et dans CFGPCMN
2013-05-11 17:18:19 +00:00

45 lines
No EOL
892 B
PHP

<fieldset id="asearch" style="height:88%">
<legend><? echo _('Résultats')?></legend>
<div style="height:88%;overflow:auto;">
<table>
<? for ($i=0;$i<sizeof($array);$i++) : ?>
<tr>
<td>
<a href="javascript:void(0)" onclick="<?=$array[$i]['javascript']?>">
<span id="val<?=$i?>">
<?=$array[$i]['pcm_val']?>
</span>
</a>
</td>
<td>
<span id="lib<?=$i?>">
<?=$array[$i]['pcm_lib']?>
</span>
</td>
<td>
<?php
if ( strlen($array[$i]['acode']) >0 ) {
if (strpos($array[$i]['acode'], ",") >0 ) {
$det_qcode= split(",", $array[$i]['acode']);
$sep="";
for ($e=0;$e<count($det_qcode);$e++) {
echo $sep.HtmlInput::card_detail($det_qcode[$e]);
$sep=" , ";
}
} else {
echo HtmlInput::card_detail($array[$i]['acode']);
}
}
?>
</td>
</tr>
<? endfor; ?>
</table>
<span style="font-style:italic">
<? echo _("Nombre d'enregistrements")." ".$i;?>
</span>
</div>
</fieldset>