noalyss Version-9
account_result.php
Go to the documentation of this file.
1<?php
2//This file is part of NOALYSS and is under GPL
3//see licence.txt
4?>
5<fieldset id="asearch" style="height:88%">
6<legend><?php echo _('RĂ©sultats')?></legend>
7<div style="height:88%;overflow:auto;">
8 <?php
9 $limite=5;
10 ?>
11 <table class="result">
12 <tr>
13 <th><?php echo _("Poste comptable")?></th>
14 <th><?php echo _("Libellé")?></th>
15 <th><?php printf (_("Fiche (limite %d)"),$limite); ?></th>
16
17 </tr>
18<?php for ($i=0;$i<sizeof($array);$i++) : ?>
19<tr <?php echo ($i%2==0)?'class="odd"':'class="even"';?>>
20<td>
21<a href="javascript:void(0)" onclick="<?php echo $array[$i]['javascript']?>">
22<span id="val<?php echo $i?>">
23<?php echo strip_tags($array[$i]['pcm_val'])?>
24</span>
25</a>
26</td>
27<td>
28<span id="lib<?php echo $i?>">
29<?php echo strip_tags($array[$i]['pcm_lib'])?>
30</span>
31</td>
32<td>
33 <?php
34 if ( strlen($array[$i]['acode']) >0 ) {
35 if (strpos($array[$i]['acode'], ",") >0 ) {
36
37 $det_qcode= explode(",", $array[$i]['acode']);
38 $sep="";
39 $max=(count($det_qcode)>$limite)?$limite:count($det_qcode);
40 for ($e=0;$e<$max;$e++) {
41 echo $sep.HtmlInput::card_detail($det_qcode[$e],"",'style="display:inline-block"');
42 $sep=" , ";
43 }
44 if ($max < count($det_qcode)) {
45 echo Icon_Action::detail(uniqid(), sprintf("display_all_card('%s','%s')",$dossier_id,$array[$i]['pcm_val']));
46 }
47 } else {
48 echo HtmlInput::card_detail($array[$i]['acode'],"",'style="display:inline-block"');
49 }
50 }
51 ?>
52</td>
53</tr>
54
55
56<?php endfor; ?>
57</table>
58<span style="font-style:italic">
59<?php echo _("Nombre d'enregistrements")." ".$i;?>
60</span>
61
62</div>
63</fieldset>
th($p_string, $p_extra='', $raw='')
Definition: ac_common.php:58
span($p_string, $p_extra='')
Definition: ac_common.php:43
tr($p_string, $p_extra='')
Definition: ac_common.php:88
td($p_string='', $p_extra='')
surround the string with td
Definition: ac_common.php:83
endfor
$opd_description style
$dossier_id
Definition: ajax_poste.php:43
static card_detail($p_qcode, $pname='', $p_style="", $p_nohistory=false, $nofollowup=false)
show the detail of a card
static detail($p_id, $p_javascript)
$all table