analyser(); $lg = $langages->table; //Récuperation de la liste des langues définies pour les thésaurus $thes_liste_trad = thesaurus::getTranslationsList(); $lg1 = array(); foreach($thes_liste_trad as $dummykey=>$item) { if ($lg[$item]!= '') $lg1[$item] = $lg[$item]; } if($id_thes) { //modification $title = $msg[thes_modification]; $delete_button = ""; // on récupère les données du thesaurus $thes = new thesaurus($id_thes); $identifiant_thesaurus = "
"; $identifiant_thesaurus.= ""; $libelle_thesaurus = $thes->libelle_thesaurus; $langue_defaut = htmlentities(addslashes($lg[$thes->langue_defaut]),ENT_QUOTES, $charset); } else { //creation $title = $msg[thes_creation]; $delete_button = ''; $identifiant_thesaurus = ''; $libelle_thesaurus = ''; $langue_defaut = ""; } if(($id_thes) && thesaurus::hasCateg($id_thes)){ $thes_form = str_replace('!!thesaurus_as_categ!!', "oui", $thes_form); }else{ $thes_form = str_replace('!!thesaurus_as_categ!!', "non", $thes_form); } $thes_form = str_replace('!!id_thes!!', $id_thes, $thes_form); $thes_form = str_replace('!!form_title!!', $title, $thes_form); $thes_form = str_replace('!!identifiant_thesaurus!!', $identifiant_thesaurus, $thes_form); $thes_form = str_replace('!!libelle_thesaurus!!', $libelle_thesaurus, $thes_form); $thes_form = str_replace('!!langue_defaut!!', $langue_defaut, $thes_form); $thes_form = str_replace('!!update_url!!', $update_url, $thes_form); $thes_form = str_replace('!!delete_url!!', $delete_url, $thes_form); $thes_form = str_replace('!!cancel_url!!', $cancel_url, $thes_form); $thes_form = str_replace('!!delete_button!!', $delete_button, $thes_form); print $thes_form;