call hook searchListHeader

This commit is contained in:
Uwe Steinmann 2017-03-02 20:00:56 +01:00
parent 83e888b9c9
commit 2d9f3f8494

View File

@ -454,14 +454,19 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style {
$this->pageList($pageNumber, $totalpages, "../out/out.Search.php", $urlparams); $this->pageList($pageNumber, $totalpages, "../out/out.Search.php", $urlparams);
// $this->contentContainerStart(); // $this->contentContainerStart();
print "<table class=\"table table-hover\">"; $txt = $this->callHook('searchListHeader', $folder, $orderby);
print "<thead>\n<tr>\n"; if(is_string($txt))
print "<th></th>\n"; echo $txt;
print "<th>".getMLText("name")."</th>\n"; else {
print "<th>".getMLText("attributes")."</th>\n"; print "<table class=\"table table-hover\">";
print "<th>".getMLText("status")."</th>\n"; print "<thead>\n<tr>\n";
print "<th>".getMLText("action")."</th>\n"; print "<th></th>\n";
print "</tr>\n</thead>\n<tbody>\n"; print "<th>".getMLText("name")."</th>\n";
print "<th>".getMLText("attributes")."</th>\n";
print "<th>".getMLText("status")."</th>\n";
print "<th>".getMLText("action")."</th>\n";
print "</tr>\n</thead>\n<tbody>\n";
}
$previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth, $timeout); $previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth, $timeout);
foreach ($entries as $entry) { foreach ($entries as $entry) {