39 parent::__construct($p_cn,
$p_id);
47 $ret=parent::query_active_tag();
48 require_once NOALYSS_TEMPLATE.
'/tag_select.php';
59 'onclick="search_display_tag('.
Dossier::id().
',\''.$p_prefix.
'\',\
'Tag_Action\')"',
"smallbutton");
76 function update_search_cell($p_prefix)
78 $data=$this->get_data();
79 printf ('<span id="sp_%s%s
" class="tagcell tagcell-color%s
">',$p_prefix,$data->t_id,$data->t_color);
81 echo HtmlInput::hidden($p_prefix.'tag[]', $data->t_id);
82 $js=sprintf("$(
'sp_".$p_prefix.$data->t_id."').remove();
");
83 echo Icon_Action::trash(uniqid(), $js);
90 function select_search($p_prefix,$title=true)
93 $ret=$this->get_data()->seek(' order by t_tag');
94 require_once NOALYSS_TEMPLATE.'/tag_search_select.php';
95 if ($title) return HtmlInput::title_box('Tag', $p_prefix.'tag_div').$res;
catch(Exception $exc) if(! $g_user->can_write_action($ag_id)) $r
static id()
return the 'gDossier' value after a check
concerns the tags linked to an action
select($p_prefix="")
let select a tag to add
static add_clear_button($p_prefix)
clear the search cell
static select_tag_search($p_prefix)
Show a button to select tag for Search.
__construct($p_cn, $p_id=-1)
Tag operations or actions to linked them together.