noalyss Version-9
fiche_def_list.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of NOALYSS.
5 *
6 * NOALYSS 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 * NOALYSS 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 NOALYSS; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20/* $Revision$ */
21
22// Copyright Author Dany De Bontridder danydb@aevalys.eu
23
24/**
25 * @file
26 * @brief show all the categories of card fiche_def
27 *
28 */
30?>
31<div id="list_cat_div" class="content">
32 <?php echo _("Cherche"); echo HtmlInput::filter_table("fiche_def_tb", "0,1,2,3,4", "1"); ?>
33<table id="fiche_def_tb" class="result">
34 <tR>
35 <th>
36 <?php echo $tab->get_header(0)?>
37 </th>
38 <th>
39 <?php echo $tab->get_header(1)?>
40 </th>
41 <th>
42 <?php echo $tab->get_header(2)?>
43 </th>
44 <th>
45 <?php echo $tab->get_header(3)?>
46 </th>
47 <th>
48 Description
49 </th>
50 </tR>
51<?php
53for ($i=0;$i<$max;$i++):
54 $class=($i%2==0)?' class="even" ':' class="odd" ';
56?>
57 <tr <?php echo $class?> >
58 <td>
59 <?php echo HtmlInput::anchor(h($row['fd_label']), "javascript:void(0)", "onclick=\"detail_category_show('detail_category_div','".$dossier."','".$row['fd_id']."')\"")?>
60 </td>
61 <td>
62 <?php echo h($row['fd_class_base'])?>
63 </td>
64 <td>
65 <?php
66 $v=($row['fd_create_account']=='t')?_("Automatique"):_("Manuel");
67 echo $v;
68 ?>
69 </td>
70 <td>
71 <?php echo $row['frd_text']?>
72 </td>
73 <td>
74 <?php echo h($row['fd_description']) ?>
75 </td>
76 </tr>
77
78
79<?php
80endfor;
81?>
82</table>
83<?php
84echo HtmlInput::button("cat_fiche_def_add",_("Ajout d'une nouvelle catégorie"), "onclick=\"detail_category_show('detail_category_div','".$dossier."','-1')\"");
85?>
86</div>
87<div id="detail_category_div" style="display:none"">
88
89</div>
th($p_string, $p_extra='', $raw='')
Definition: ac_common.php:58
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'])
$opd_description style
$dossier
$class
static fetch_array($ret, $p_indice=0, $p_mode=PGSQL_ASSOC)
wrapper for the function pg_fetch_array
static num_row($ret)
wrapper for the function pg_num_rows
static id()
return the 'gDossier' value after a check
static filter_table($p_table_id, $p_col, $start_row)
filter the rows in a table and keep the colored row in alternance
static button($p_name, $p_value, $p_javascript="", $p_class="smallbutton")
static anchor($p_text, $p_url="", $p_js="", $p_style=' class="line" ', $p_title="click", array $p_attribute=[])
Return a simple anchor with a url or a javascript if $p_js is not null then p_url will be javascript:...
$all table
endfor