noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
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');
8$nDossier=Dossier::id();
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
25$gDossier=Dossier::id();
26$ac=$http->request('ac');
27
28 for ($i=0;$i<$max;$i++):
29 $row=Database::fetch_array($ret, $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
$nDossier
if(isset( $_REQUEST[ 'show'])) if(isset($_REQUEST['del'])) $ac
$input_from cn
_("actif, passif,charge,...")
contains the class for connecting to Noalyss
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