cn=$p_cn; $this->data=new Tag_SQL($p_cn); } function show_list() { $ret=$this->data->seek(' order by t_tag'); if ( $this->cn->count($ret) == 0) return ""; require_once 'template/tag_list.php'; } function select() { $ret=$this->data->seek(' order by t_tag'); if ( $this->cn->count($ret) == 0) return "aucun tag trouvé"; require_once 'template/tag_select.php'; } function form_add() { $data=$this->data; require_once 'template/tag_detail.php'; } function show_form_add() { echo '

'.' Ajout d\'un dossier (ou tag)'.'

'; $this->form_add(); } function save($p_array) { $this->data->t_id=$p_array['t_id']; $this->data->t_tag=str_ireplace('