mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
do not show table of documents if there are no documents
This commit is contained in:
parent
b0747e74f0
commit
99fbf808fd
|
@ -63,18 +63,20 @@ $(document).ready( function() {
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
|
|
||||||
$documents = $selcat->getDocumentsByCategory(10);
|
$documents = $selcat->getDocumentsByCategory(10);
|
||||||
print "<table id=\"viewfolder-table\" class=\"table\">";
|
if($documents) {
|
||||||
print "<thead>\n<tr>\n";
|
print "<table id=\"viewfolder-table\" class=\"table\">";
|
||||||
print "<th></th>\n";
|
print "<thead>\n<tr>\n";
|
||||||
print "<th>".getMLText("name")."</th>\n";
|
print "<th></th>\n";
|
||||||
print "<th>".getMLText("status")."</th>\n";
|
print "<th>".getMLText("name")."</th>\n";
|
||||||
print "<th>".getMLText("action")."</th>\n";
|
print "<th>".getMLText("status")."</th>\n";
|
||||||
print "</tr>\n</thead>\n<tbody>\n";
|
print "<th>".getMLText("action")."</th>\n";
|
||||||
$previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth, $timeout);
|
print "</tr>\n</thead>\n<tbody>\n";
|
||||||
foreach($documents as $doc) {
|
$previewer = new SeedDMS_Preview_Previewer($cachedir, $previewwidth, $timeout);
|
||||||
echo $this->documentListRow($doc, $previewer);
|
foreach($documents as $doc) {
|
||||||
|
echo $this->documentListRow($doc, $previewer);
|
||||||
|
}
|
||||||
|
print "</tbody></table>";
|
||||||
}
|
}
|
||||||
print "</tbody></table>";
|
|
||||||
}
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user