noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
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<div style="height:88%;overflow:auto;">
7 <?php
9 ?>
10 <table class="result">
11 <tr>
12 <th><?php echo _("Poste comptable")?></th>
13 <th><?php echo _("Libellé")?></th>
14 <th><?php printf (_("Fiche (limite %d)"),$limite); ?></th>
15
16 </tr>
17<?php for ($i=0;$i<sizeof($array);$i++) : ?>
18<tr <?php echo ($i%2==0)?'class="odd"':'class="even"';?>>
19<td>
20<a href="javascript:void(0)" onclick="<?php echo $array[$i]['javascript']?>">
21<span id="val<?php echo $i?>">
22<?php echo strip_tags($array[$i]['pcm_val'])?>
23</span>
24</a>
25</td>
26<td>
27<span id="lib<?php echo $i?>">
28<?php echo strip_tags($array[$i]['pcm_lib'])?>
29</span>
30</td>
31<td>
32 <?php
33 if ( strlen($array[$i]['acode']) >0 ) {
34 if (strpos($array[$i]['acode'], ",") >0 ) {
35
36 $det_qcode= explode(",", $array[$i]['acode']);
37 $sep="";
38 $max=(count($det_qcode)>$limite)?$limite:count($det_qcode);
39 for ($e=0;$e<$max;$e++) {
40 echo $sep.HtmlInput::card_detail($det_qcode[$e],"",'style="display:inline-block"');
41 $sep=" , ";
42 }
43 if ($max < count($det_qcode)) {
44 echo Icon_Action::detail(uniqid(), sprintf("display_all_card('%s','%s')",$dossier_id,$array[$i]['pcm_val']));
45 }
46 } else {
47 echo HtmlInput::card_detail($array[$i]['acode'],"",'style="display:inline-block"');
48 }
49 }
50 ?>
51</td>
52</tr>
53
54
55<?php endfor; ?>
56</table>
57<span style="font-style:italic">
58<?php echo _("Nombre d'enregistrements")." ".$i;?>
59</span>
60
61</div>
62</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
$limite
$dossier_id
$opd_description style
_("actif, passif,charge,...")
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