noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
follow_up-view_list.php
Go to the documentation of this file.
1<?php
2/*
3 * This file is part of NOALYSS.
4 *
5 * NOALYSS is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * NOALYSS is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with NOALYSS; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18*/
19// Copyright Author Dany De Bontridder danydb@aevalys.eu 13/02/24
20/*!
21 * \file
22 * \brief display list of followup
23 */
24global $cn;
25$cn=$this->db;
26$array=$cn->get_array($sql);
27if (empty ($array)) {
28 echo_warning("Aucun suivi ");
29 return;
30}
32echo \HtmlInput::filter_table("view_list_tb", "0,1,2,3,4,5", 1);
33?>
34
35<table class="result" id="view_list_tb">
36 <thead>
37
38 <tr>
39 <th>Date</th>
40 <th>Référence</th>
41 <th>Titre</th>
42 <th>QCODE</th>
43 <th>Dernier commentaire</th>
44 <th>Etat</th>
45 <th></th>
46 </tr>
47 </thead>
48 <tbody>
49 <?php
50 foreach($array as $item) {
51 $even=($idx%2==0)?'class="odd"':'class="even"';
52 $idx++;
53 ?>
55 <td><?=$item['my_date']?></td>
56 <td>
57 <?php
58 echo \HtmlInput::detail_action($item['ag_id'], $item['ag_ref']);
59
60
61 ?>
62
63 </td>
64 <td><?=h($item['ag_title'])?></td>
65 <td><?=h($item['qcode'])?></td>
66 <td><?=$item['last_comment_date_str']?></td>
67 <td><?=h($item['s_value'])?></td>
68 <td>
69
70 <?php
71 if ($item['tags']!="") {
72 $aColor = explode(",", $item["tags_color"]);
73 $aTags = explode(",", $item["tags"]);
74 $nb_tag = count($aTags);
75 for ($x = 0; $x < $nb_tag; $x++) {
76 printf('<span style="font-size:75%%;padding:1px;border-color:transparent" class="tagcell tagcell-color%s">%s</span>', $aColor[$x], $aTags[$x]);
77 printf("&nbsp;");
78 } // end loop $x
79
80 }
81 ?>
82 </td>
83 </tr>
84 <?php
85 }
86
87 ?>
88 </tbody>
89</table>
th($p_string, $p_extra='', $raw='')
Definition ac_common.php:58
echo_warning($p_string)
warns
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
h( $row[ 'oa_description'])
$all table