noalyss Version-9
tag_list.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?><?php
6$max=$this->cn->count($ret);
7echo HtmlInput::filter_table("tag_tb", '0,1', '1');
9?>
10<table id="tag_tb">
11 <tr>
12 <th>
13 <?php echo _("Tag")?>
14 </th>
15 <th>
16 <?php echo _("Description")?>
17 </th>
18
19 <th>
20 <?php echo _("Actif")?>
21 </th>
22
23 </tr>
24<?php
26$ac=$http->request('ac');
27
28 for ($i=0;$i<$max;$i++):
30 ?>
31 <tr class="<?php echo (($i%2==0)?'even':'odd');?>">
32 <td class="tagcell-color<?=$row['t_color']?>">
33 <?php
34 $js=sprintf("show_tag('%s','%s','%s','p')",$gDossier,$ac,$row['t_id']);
35 echo HtmlInput::anchor($row['t_tag'], "", "onclick=\"$js\"");
36 ?>
37 </td>
38 <td>
39 <?php
40 echo $row['t_description'];
41 ?>
42 </td>
43
44 <td>
45 <?php
46 $id=sprintf("tag_onoff%d",$row['t_id']);
47 // Activate button
48 if ( $row['t_actif'] == "Y") {
49 $js=sprintf("activate_tag('%s','%s')",$nDossier,$row['t_id']);
51 } else {
52 $js=sprintf("activate_tag('%s','%s')",$nDossier,$row['t_id']);
54
55 }
56 ?>
57 </td>
58 </tr>
59<?php
61 ?>
62</table>
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
$input_from cn
Definition: balance.inc.php:66
static fetch_array($ret, $p_indice=0, $p_mode=PGSQL_ASSOC)
wrapper for the function pg_fetch_array
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 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:...
manage the http input (get , post, request) and extract from an array
static iconoff($p_id, $p_javascript, $p_style="")
Display a icon OFF.
static iconon($p_id, $p_javascript, $p_style="")
Display a icon ON.
$all table
$js
Definition: tag_list.php:34
$http
Definition: tag_list.php:5
$ac
Definition: tag_list.php:26
$nDossier
Definition: tag_list.php:8
$max
Definition: tag_list.php:6
endfor
Definition: tag_list.php:60
$id
Definition: tag_list.php:46