";
+ //print " | ";
+ if (in_array(2, $searchin)) {
+ $docName = $this->markQuery(htmlspecialchars($document->getName()), "i");
+ } else {
+ $docName = htmlspecialchars($document->getName());
+ }
+ print "getID()."\">";
+ if($previewer->hasPreview($lc)) {
+ print "getID()."&version=".$lc->getVersion()."&width=40\" title=\"".htmlspecialchars($lc->getMimeType())."\">";
+ } else {
+ print "getMimeIcon($lc->getFileType())."\" title=\"".htmlspecialchars($lc->getMimeType())."\">";
+ }
+ print " | ";
+ print "getID()."\">/";
+ $folder = $document->getFolder();
+ $path = $folder->getPath();
+ for ($i = 1; $i < count($path); $i++) {
+ print htmlspecialchars($path[$i]->getName())."/";
+ }
+ print $docName;
+ print "";
+ if($comment) {
+ print " ".htmlspecialchars($comment)."";
+ }
+ print " | ";
- $attributes = $lc->getAttributes();
- print "";
- print "\n";
- $attributes = $lc->getAttributes();
- if($attributes) {
- foreach($attributes as $attribute) {
- $attrdef = $attribute->getAttributeDefinition();
- print "- ".htmlspecialchars($attrdef->getName()).": ".htmlspecialchars($attribute->getValue())."
\n";
- }
+ $attributes = $lc->getAttributes();
+ print "";
+ print "\n";
+ $attributes = $lc->getAttributes();
+ if($attributes) {
+ foreach($attributes as $attribute) {
+ $attrdef = $attribute->getAttributeDefinition();
+ print "- ".htmlspecialchars($attrdef->getName()).": ".htmlspecialchars($attribute->getValue())."
\n";
}
- print " \n";
- print " | ";
+ }
+ print " \n";
+ print " | ";
- $owner = $document->getOwner();
- print "".htmlspecialchars($owner->getFullName())." | ";
- $display_status=$lc->getStatus();
- print "".getOverallStatusText($display_status["status"]). " | ";
+ $owner = $document->getOwner();
+ print "".htmlspecialchars($owner->getFullName())." | ";
+ $display_status=$lc->getStatus();
+ print "".getOverallStatusText($display_status["status"]). " | ";
- print "".$lc->getVersion()." | ";
+ print "".$lc->getVersion()." | ";
// print "".$comment." | ";
- print "
\n";
+ print "\n";
} elseif(get_class($entry) == 'LetoDMS_Core_Folder') {
$folder = $entry;
- $foldercount++;
if (in_array(2, $searchin)) {
$folderName = $this->markQuery(htmlspecialchars($folder->getName()), "i");
} else {