} else { //creation $title = $msg[thes_creation]; $delete_button = ''; $identifiant_thesaurus = ''; $libelle_thesaurus = ''; $langue_defaut = "<select class='saisie-30em' id='langue_defaut' name='langue_defaut' >"; foreach ($lg1 as $key => $value) { $langue_defaut .= "<option value='" . $key . "' "; if ($key == $lang) { $langue_defaut .= " selected "; } $langue_defaut .= " >" . htmlentities(addslashes($value), ENT_QUOTES, $charset) . "</option>"; } $langue_defaut .= "</select>"; } 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;