This repository has been archived on 2024-07-18. You can view files and clone it, but cannot push or open issues or pull requests.
lwb5/scripts/site/main/output/manual_search.en.inc

36 lines
848 B
PHP
Raw Normal View History

2016-01-10 11:01:49 +01:00
<?php
include("manual-box.en.inc");
$this->title = "Manual";
$this->addStylesheet("manual");
$this->addScript("manual");
?>
<div id="manpage">
<h2>Search results for '<?=utf8entities($args['text'])?>'</h2>
<?php
if (empty($args['results'])) {
echo " <p>Sorry, no results were found.</p>\n";
} else {
$c = count($args['results']);
echo " <p><b>$c</b> result" . ($c > 1 ? "s were" : " was") . " found:</p>";
echo "<div class='mansection'><ol>";
$error = false;
foreach ($args['results'] as $p) {
$pData = handler::$h->lib->call('readSectionRecord', $p);
if (is_null($pData)) {
$error = true;
continue;
}
echo "<li><a href='?p={$pData['name']}'>{$pData['title']}</a></li>";
}
echo "</ol>";
if ($error) {
echo "<b>Some results could not be displayed because of a database error.</b>";
}
echo "</div>";
}
?>
</div>
</div>