noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
account_result.php
Go to the documentation of this file.
00001 <?php
00002 //This file is part of NOALYSS and is under GPL 
00003 //see licence.txt
00004 ?>
00005 <fieldset id="asearch" style="height:88%">
00006 <legend><?php echo _('Résultats')?></legend>
00007 <div style="height:88%;overflow:auto;">
00008         <?php
00009                 $limite=5;
00010                 ?>
00011     <table class="result">
00012         <tr>
00013                 <th><?php echo _("Poste comptable")?></th>
00014                 <th><?php echo _("Libellé")?></th>
00015                 <th><?php printf (_("Fiche (limite %d)"),$limite); ?></th>
00016 
00017         </tr>
00018 <?php for ($i=0;$i<sizeof($array);$i++) : ?>
00019 <tr <?php echo ($i%2==0)?'class="odd"':'class="even"';?>>
00020 <td>
00021 <a href="javascript:void(0)" onclick="<?php echo $array[$i]['javascript']?>">
00022 <span  id="val<?php echo $i?>">
00023 <?php echo $array[$i]['pcm_val']?>
00024 </span>
00025 </a>
00026 </td>
00027 <td>
00028 <span id="lib<?php echo $i?>">
00029 <?php echo $array[$i]['pcm_lib']?>
00030 </span>
00031 </td>
00032 <td>
00033         <?php
00034         if ( strlen($array[$i]['acode']) >0 ) {
00035                 if (strpos($array[$i]['acode'], ",") >0 ) {
00036 
00037                         $det_qcode=  explode(",", $array[$i]['acode']);
00038                         $sep="";
00039                         $max=(count($det_qcode)>$limite)?$limite:count($det_qcode);
00040                         for ($e=0;$e<$max;$e++) {
00041                                 echo $sep.HtmlInput::card_detail($det_qcode[$e]);
00042                                 $sep=" , ";
00043                         }
00044                         if ($max < count($det_qcode)) {
00045                                 echo "...";
00046                         }
00047                 } else {
00048                         echo HtmlInput::card_detail($array[$i]['acode']);
00049                 }
00050         }
00051         ?>
00052 </td>
00053 </tr>
00054 
00055 
00056 <?php endfor; ?>
00057 </table>
00058 <span style="font-style:italic">
00059 <?php echo _("Nombre d'enregistrements")." ".$i;?>
00060 </span>
00061 
00062 </div>
00063 </fieldset>
 All Data Structures Namespaces Files Functions Variables Enumerations