本文整理匯總了PHP中thesaurus::get_status_list方法的典型用法代碼示例。如果您正苦於以下問題:PHP thesaurus::get_status_list方法的具體用法?PHP thesaurus::get_status_list怎麽用?PHP thesaurus::get_status_list使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類thesaurus
的用法示例。
在下文中一共展示了thesaurus::get_status_list方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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ä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>";
}
示例2: descriptor
function descriptor($id, $name, $error)
{
echo "<fieldset><legend>";
//-----------------
if (!thesaurus::is_descriptor($id)) {
$checkString = "";
echo "kein ";
} else {
$checkString = " checked";
}
echo "Begriff";
if (!thesaurus::is_visible($id)) {
echo " <span class='red'>(versteckt)</span>";
}
echo "</legend>";
// descriptor value
echo form::field("text", "name", $name, 30, "class='{$error}'", "", "", $help = "name-field");
// display ID
echo "<span class='small'>ID = {$id}</span>";
// open tree
echo form::link("opentree", "[+]", "index.php?action=showhyrarchy&id={$id}", "opentree");
// exit edit mode
if (right::write()) {
action::edit();
}
// delete entry
if (thesaurus::child_num($id, 1) == 0) {
$javaText = "Wollen Sie " . $name . " wirklich löschen? Es werden auch alle Links zu diesem Eintrag gelöscht";
echo form::link("delete", "x", "javascript:get_confirm("{$javaText}","index.php?action=deleteid&id={$id}");", "delete");
}
echo "<br>";
// type of descriptor
/* $typeArray = thesaurus::get_type_list();
$entryType = thesaurus::get_entrytype($id);
$entryTypeName = thesaurus::get_entrytype_name($entryType);
$javaText = "Wollen Sie wirklich allen Unterbegriffen von " . $name . " den Begriffstyp " . $entryTypeName . " zuweisen?";
echo form::selector("entrytype",$typeArray,1,"",$entryType,"<span class='small'>Begriffstype</span><br>","","entrytype");
// herite to all childs
echo form::link("inheritance"," Begriffstyp vererben","javascript:get_confirm("$javaText","index.php?id=$id&entrytype=$entryType&action=inherit");","inheritance");
*/
echo "<span class='normal'><i>" . thesaurus::get_name(thesaurus::get_thesaurus($id)) . "</i></span>";
echo "<br>";
// status of descriptor
$statusArray = thesaurus::get_status_list();
echo form::selector("status", $statusArray, 1, "", thesaurus::get_status($id), "<span class='small'>Status</span><br>", "", "statustype");
echo "<br>";
// descriptor is default value for ordered entries
// default place for kandidates defined
$orderDefault = system::getval("val_orderdefault");
if ($orderDefault) {
if (intval($orderDefault) == $id) {
$checkedString = "checked='checked'";
} else {
$defaultString = "<br>(derzeit: <i>'";
$defaultString .= "<a href='index.php?id={$orderDefault}&action=show'>";
$defaultString .= thesaurus::get_name($orderDefault);
$defaultString .= "</a>";
$defaultString .= "'</i>)";
}
} else {
$defaultString = "<br>(Kein Ort für Kandidaten festgelegt)";
}
echo form::field("checkbox", "orderdefault", $id, "", $checkedString, "", "als Standard für Kandidaten festlegen {$defaultString}", "orderdefault");
echo "</fieldset>";
}