use new method folderListHeader()

This commit is contained in:
Uwe Steinmann 2022-01-03 19:14:13 +01:00
parent 771b9674cc
commit cff6b66d1c
3 changed files with 9 additions and 26 deletions

View File

@ -134,13 +134,8 @@ $(document).ready( function() {
}
if($res['folders'] || $res['docs']) {
print "<table id=\"viewfolder-table\" class=\"table table-condensed\">";
print "<thead>\n<tr>\n";
print "<th></th>\n";
print "<th>".getMLText("name")."</th>\n";
print "<th>".getMLText("status")."</th>\n";
print "<th>".getMLText("action")."</th>\n";
print "</tr>\n</thead>\n<tbody>\n";
print $this->folderListHeader();
print "<tbody>\n";
foreach($res['folders'] as $subFolder) {
echo $this->folderListRow($subFolder);
}

View File

@ -49,18 +49,11 @@ class SeedDMS_View_Calendar extends SeedDMS_Theme_Style {
$xsendfile = $this->params['xsendfile'];
if($document) {
// $this->contentHeading(getMLText("timeline_selected_item"));
print "<table id=\"viewfolder-table\" class=\"table table-condensed\">";
print "<thead>\n<tr>\n";
print "<th></th>\n";
print "<th>".getMLText("name")."</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, $previewwidthdetail, $timeout, $xsendfile);
echo $this->documentListRow($document, $previewer);
echo "</tbody>\n</table>\n";
print $this->folderListHeader();
print "<tbody>\n";
$previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidthdetail, $timeout, $xsendfile);
echo $this->documentListRow($document, $previewer);
echo "</tbody>\n</table>\n";
}
if($event) {
// print_r($event);

View File

@ -70,13 +70,8 @@ $(document).ready( function() {
$documents = $selcat->getDocumentsByCategory(10);
if($documents) {
print "<table id=\"viewfolder-table\" class=\"table\">";
print "<thead>\n<tr>\n";
print "<th></th>\n";
print "<th>".getMLText("name")."</th>\n";
print "<th>".getMLText("status")."</th>\n";
print "<th>".getMLText("action")."</th>\n";
print "</tr>\n</thead>\n<tbody>\n";
print $this->folderListHeader();
print "<tbody>\n";
$previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth, $timeout, $xsendfile);
foreach($documents as $doc) {
echo $this->documentListRow($doc, $previewer);