本文整理汇总了PHP中thesaurus::hasCateg方法的典型用法代码示例。如果您正苦于以下问题:PHP thesaurus::hasCateg方法的具体用法?PHP thesaurus::hasCateg怎么用?PHP thesaurus::hasCateg使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类thesaurus
的用法示例。
在下文中一共展示了thesaurus::hasCateg方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
} 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;