当前位置: 首页>>代码示例>>PHP>>正文


PHP thesaurus::get_type_list方法代码示例

本文整理汇总了PHP中thesaurus::get_type_list方法的典型用法代码示例。如果您正苦于以下问题:PHP thesaurus::get_type_list方法的具体用法?PHP thesaurus::get_type_list怎么用?PHP thesaurus::get_type_list使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在thesaurus的用法示例。


在下文中一共展示了thesaurus::get_type_list方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: form

 function form($searchString)
 {
     if (session::get("hyrarchy")) {
         echo "<div id='search' class='search'>";
     } else {
         echo "<div id='searchbig' class='search'>";
     }
     echo "<form method='GET' action='index.php' name='search'>";
     echo "<b>Suche in</b><br>";
     // Freie Suche
     if (!session::get("searchstart") and !session::get("searchexact")) {
         $checkString = " checked='checked'";
     } else {
         $checkString = "";
     }
     echo form::field("radio", "searchtype", 0, "", $checkString, "", "frei", "search-free");
     // Suche am Wortanfang
     if (session::get("searchstart")) {
         $checkString = " checked='checked'";
     } else {
         $checkString = "";
     }
     echo form::field("radio", "searchtype", 1, "", $checkString, "", "Wortanfang", "search-start");
     // exakte Suche
     if (session::get("searchexact")) {
         $checkString = " checked='checked'";
     } else {
         $checkString = "";
     }
     echo form::field("radio", "searchtype", 2, "", $checkString, "", "exact", "search-exact");
     // search in comment field
     if (session::get("searchcom")) {
         $checkString = " checked='checked'";
     } else {
         $checkString = "";
     }
     echo form::field("checkbox", "searchcom", 1, "", $checkString, "", "Erl&auml;uterungen", "search-comment");
     // search only for ordered entries
     // create array for selector
     $typeArray = thesaurus::get_type_list();
     $statusArray = thesaurus::get_status_list();
     $ownerArray = user::get_users("entry");
     if (count($statusArray)) {
         echo "<br>";
         echo form::selector("searchentrytype", $typeArray, 1, "", session::get("searchentrytype"), "", " Begriffstype ", "searchtype", "");
         echo form::selector("searchstatus", $statusArray, 1, "", session::get("searchstatus"), "", " Status ", "searchstatus", "");
         echo form::selector("searchowner", $ownerArray, 1, "", session::get("searchowner"), "", " Eigentümer mit Einträgen ", "searchowner", "");
     } else {
         echo form::link("", "<span class='small'>Keine beantragten Einträge</span>", "", "no-ordered");
     }
     // search field
     echo "<p><input type='text' size='35' name='searchString' value='" . session::get("search") . "' ";
     echo help::show("search-field", "");
     echo ">";
     echo form::field("submit", "action", "suchen", "", "", " ", "", "search");
     echo form::field("submit", "reset", "zurücksetzen", "", "", " ", "", "newsearch");
     echo "</form></p>";
     echo "</div>";
 }
开发者ID:nibble-arts,项目名称:openthesaurus,代码行数:59,代码来源:search.php


注:本文中的thesaurus::get_type_list方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。