本文整理匯總了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;