noalyss Version-9
follow_up_other_concerned_display_table.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of NOALYSS.
5 *
6 * PhpCompta is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * PhpCompta is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with PhpCompta; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20// Copyright (2002-2020) Author Dany De Bontridder <danydb@noalyss.eu>
21
22if (!defined('ALLOWED'))
23 die('Appel direct ne sont pas permis');
24
25/**
26 * @file
27 * @brief display a table
28 */
29$aColumn = $this->get_option();
30$r='0,1,2';
32for ( $e=0;$e<$nb_column;$e++) {
33 $r.=','.($e+3);
34
35}
36?>
37<?=HtmlInput::filter_table("action_concerned_list_tb1", $r, 1);?>
38<table id="action_concerned_list_tb1" class="result">
39 <tr>
40
41 <th>
42 <?=_("Code")?>
43 </th>
44 <th>
45 <?=_("Nom")?>
46 </th>
47 <th>
48 <?=_("Prénom")?>
49 </th>
50 <?php
51
52 for ($o=0;$o< $nb_column;$o++){
53 echo th($aColumn[$o]["cor_label"]);
54 }
55 ?>
56 <?php
57 $aOther=$this->db->get_array("
58 select (select ad_value from fiche_detail fd1 where fd1.f_id=ap.f_id and ad_id=23) as qcode ,
59 f_id
60 ,ap.ap_id
61 from action_person ap
62 join action_gestion on (ap.ag_id=action_gestion.ag_id)
63 where ap.ag_id=$1 order by 1",[$this->ag_id]);
65 for ($x=0;$x<$nb_other;$x++) {
66
67 echo $this->display_row($aOther[$x]['f_id'],$x,$aColumn);
68 }
69 ?>
70 </tr>
71</table>
th($p_string, $p_extra='', $raw='')
Definition: ac_common.php:58
tr($p_string, $p_extra='')
Definition: ac_common.php:88
$fl ag_id
static filter_table($p_table_id, $p_col, $start_row)
filter the rows in a table and keep the colored row in alternance
$all table
$SecUser db
for($o=0;$o< $nb_column;$o++) $aOther