本文整理汇总了PHP中action::listit方法的典型用法代码示例。如果您正苦于以下问题:PHP action::listit方法的具体用法?PHP action::listit怎么用?PHP action::listit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类action
的用法示例。
在下文中一共展示了action::listit方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
function display($searchResult)
{
if ($searchResult) {
echo "<div id='result' class='search'>";
echo "<b>Suchergebnis - </b>";
echo " <i class='normal'>" . count($searchResult) . " Treffer</i>";
echo form::link("delete", "x", "index.php?action=hidesearch", "close-search");
action::listit("search", $searchResult);
foreach ($searchResult as $entry) {
$nameArray = thesaurus::get_descriptor($entry[ID]);
export::descriptor($nameArray[ID], session::get("search"), "SHOW");
echo "<hr>";
}
// set parent
if (session::get(show) != 0) {
$parent = session::get(show);
} else {
$parent = system::getval("val_orderdefault");
}
// sugest new entry if orderdefault is set or OB is displayed
if ($parent) {
form::insert_entry(array('parent' => $parent, 'action' => 'add', ""), array(), session::get(search));
} else {
echo "<p>Kein Oberbegriff für neuen Begriff gesetzt.</p>";
}
echo "</div>";
} else {
echo "<div id='result' class='search'>";
echo "<span class='red'>Kein Eintrag gefunden</span>";
echo form::link("delete", "x", "index.php?action=hidesearch", "close-search");
// set parent
if (session::get(show) != 0) {
$parent = session::get(show);
} else {
$parent = system::getval("val_orderdefault");
}
// sugest new entry if orderdefault is set or OB is displayed
if ($parent) {
form::insert_entry(array('parent' => $parent, 'action' => 'add', ""), array(), session::get(search));
} else {
echo "<p>Kein Oberbegriff für neuen Begriff gesetzt.</p>";
}
echo "</div>";
}
}
示例2: show
function show()
{
if (system::getval(debug)) {
echo "<div id='login_debug'>";
} else {
echo "<div id='login'>";
}
if ($userID = session::get("user")) {
// change password
if ($_GET[action] == "change") {
echo "<form method='get' action='index.php'>";
echo form::field("password", "password", "", "", "", "<i>Neues Passort</i>", "", "newpassword");
echo form::field("submit", "b1", "ändern");
echo form::field("hidden", "action", "changedo");
echo "</form>";
} else {
echo "<span class='normal'>Angemeldet: </span><span class='red'>" . user::name($userID) . " </span>";
echo form::link("", " - abmelden ", "index.php?action=logout", "logout");
echo form::link("", " - Passwort ändern ", "index.php?action=change", "change-password");
// if su display admin
echo form::link("", " - Administration", "admin.php", "admin");
if ($_SESSION['show']) {
echo form::link("", " - Import into <b>" . thesaurus::name($_SESSION['show']) . "</b>", "import.php?id=" . $_SESSION['show'], "import");
}
// menu switches
action::hyrarchy();
// toggle hyrarchy off / on
action::descriptor();
action::visible();
action::tooltips();
// toggle tooltips off / on
if (right::write()) {
action::edit();
}
// show edit function
action::listit();
action::debug();
}
} else {
echo "<span class='normal'>";
echo "<form method='get' action='index.php'>";
echo "<i>Benutzername </i><input type='text' name='user' value='{$user}'>";
echo " <i>Passwort </i><input type='password' name='password'>";
echo " <input type='submit' name='action' value='anmelden'>";
echo "<input type='hidden' name='action' value='login'>";
echo "</form>";
echo "</span>";
}
// display javascript status
/* echo "<span class='small'>";
if (session::get("JS")) echo "JavaScript aktiv";
else echo "kein Javascript";
echo "</span>";*/
echo "</div>";
}