9 $res=
h2(_(
"Aucune étiquette disponible"),
' class="notice"').
18<?php echo
HtmlInput::button_action(_(
'Uniquement actif'),
'show_only_row(\''.$p_prefix.
'tag_tb_id'.
'\',\
'tag_status\',\'Y\')');?>
20<table class="result" id="<?php echo $p_prefix;?>tag_tb_id">
26 <?php echo _("Description")?>
30$gDossier=Dossier::id();
31 for ($i=0;$i<$max;$i++):
32 $row=Database::fetch_array($ret, $i);
33 $attr=sprintf('tag_status=
"%s"',$row['t_actif
']);
35 <tr <?=$attr?> class="<?php echo (($i%2==0)?'even
':'odd
');?>">
38 $js=sprintf("search_add_tag('%s
','%s
','%s
','t
')",$gDossier,$row['t_id'],$p_prefix);
39 echo HtmlInput::anchor($row['t_tag
'], "", "onclick=\"$js\"");
44 echo h($row['t_description
']);
49 if ( $row['t_actif
'] == 'N
') {
61 $tab_tag->set_content(ob_get_contents());
66$tab_tag_group=new Html_Tab($p_prefix."tab_tag_group",_("Groupe"));
67$aGroup=$this->cn->get_array("select tg_id, tg_name from tag_group order by 2 desc");
68$nb_agroup=count($aGroup);
72 <th><?=_("Groupe")?></th>
74 <?php for ($i=0;$i<$nb_agroup;$i++):?>
78 $js=sprintf("search_add_tag('%s
','%s
','%s
','g
')",$gDossier,$aGroup[$i]['tg_id
'],$p_prefix);
79 echo HtmlInput::anchor($aGroup[$i]['tg_name
'], "", "onclick=\"$js\"");
89$tab_tag_group->set_content(ob_get_contents());
93$output=new Output_Html_Tab();
94$output->add($tab_tag);
95$output->add($tab_tag_group);
101<?=HtmlInput::button_close($p_prefix.'tag_div
')?>
104 show_only_row('<?=$p_prefix?>tag_tb_id
','tag_status
','Y
');
105 <?=$output->build_js($p_prefix."tab_tag");?>
108$res =ob_get_contents();
h2($p_string, $p_class="", $raw="")