20 require_once NOALYSS_INCLUDE.
'/database/class_tag_sql.php';
35 $ret=$this->data->seek(
' order by t_tag');
36 if ( $this->
cn->count(
$ret) == 0)
return "";
37 require_once NOALYSS_TEMPLATE.
'/tag_list.php';
44 $ret=$this->data->seek(
' order by t_tag');
45 require_once NOALYSS_TEMPLATE.
'/tag_select.php';
53 require_once NOALYSS_TEMPLATE.
'/tag_detail.php';
60 echo
'<h2>'.
' Ajout d\'un dossier (ou tag)'.
'</h2>';
68 $this->data->t_tag= strip_tags(
$p_array[
't_tag']);
69 $this->data->t_description=strip_tags(
$p_array[
't_description']);
75 $this->data->delete();
90 function select_search($p_prefix)
92 $ret=$this->data->seek(' order by t_tag');
93 require_once NOALYSS_TEMPLATE.'/tag_search_select.php';
98 function update_search_cell($p_prefix) {
99 echo '<span id="sp_
'.$p_prefix.$this->data->t_id.'" style="border:1px solid black;margin-
right:5px;
">';
100 echo h($this->data->t_tag);
101 echo HtmlInput::hidden($p_prefix.'tag[]', $this->data->t_id);
102 $js=sprintf("$(
'sp_".$p_prefix.$this->data->t_id."').
remove();
");
103 echo HtmlInput::anchor( SMALLX, "javascript:void(0)
", "onclick=\
"$js\"",
' class="smallbutton " style="padding:0px;display:inline" ');
show_form_add()
Show the tag you can add to a document.
static button_search($p_prefix)
Show a button to select tag for Search.
static add_clear_button($p_prefix)
clear the search cell
__construct($p_cn, $id=-1)
if($show_row!=0) margin right
function trim(s)
remove trailing and heading space
static id()
return the $_REQUEST['gDossier'] after a check
show_list()
Show the list of available tag.
select()
let select a tag to add
form_add()
Display a inner window with the detail of a tag.
Manage the table public.tag.