當前位置: 首頁>>代碼示例>>PHP>>正文


PHP thesaurus::hasCateg方法代碼示例

本文整理匯總了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;
開發者ID:noble82,項目名稱:proyectos-ULS,代碼行數:31,代碼來源:thes_form.inc.php


注:本文中的thesaurus::hasCateg方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。