当前位置: 首页>>代码示例>>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;未经允许,请勿转载。