";
+ print "";
+ /*
+ print "";
+ */
$previewer = new SeedDMS_Preview_Previewer($cachedir, 100);
$previewer->createPreview($latestContent);
+ if ($viewonlinefiletypes && in_array(strtolower($latestContent->getFileType()), $viewonlinefiletypes))
+ print "getVersion()."\">";
+ else
+ print "getVersion()."\">";
if($previewer->hasPreview($latestContent)) {
print(" getID()."&version=".$latestContent->getVersion()."&width=100\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">");
+ } else {
+ print " getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">";
}
+ print "";
print " | \n";
- print "".$latestContent->getVersion()." | \n";
- print "\n";
+ print "\n";
print "- ".$latestContent->getOriginalFileName() ."
\n";
+ print "- ".getMLText('version').": ".$latestContent->getVersion()."
\n";
if ($file_exists)
- print "- ". SeedDMS_Core_File::format_filesize($latestContent->getFileSize()) ." ".htmlspecialchars($latestContent->getMimeType())."
";
+ print "- ". SeedDMS_Core_File::format_filesize($latestContent->getFileSize()) .", ".htmlspecialchars($latestContent->getMimeType())."
";
else print "- ".getMLText("document_deleted")."
";
$updatingUser = $latestContent->getUser();
@@ -314,7 +323,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
print "- ".getLongReadableDate($latestContent->getDate())."
";
print " \n";
- print "\n";
+ print "\n";
$attributes = $latestContent->getAttributes();
if($attributes) {
foreach($attributes as $attribute) {
@@ -335,15 +344,22 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
print "";
- print "";
+ print "";
+ print "";
echo " | ";
@@ -565,9 +581,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
$this->contentContainerStart();
if($user->isAdmin()) {
if(SeedDMS_Core_DMS::checkIfEqual($workflow->getInitState(), $latestContent->getWorkflowState())) {
- print " ";
+ print "";
} else {
- print "";
+ print "";
}
}
@@ -746,8 +762,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
print "";
print "\n\n";
print " | \n";
- print "".getMLText("version")." | \n";
- print "".getMLText("file")." | \n";
+ print "".getMLText("file")." | \n";
print "".getMLText("comment")." | \n";
print "".getMLText("status")." | \n";
print " | \n";
@@ -763,23 +778,33 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
$file_exists=file_exists($dms->contentDir . $version->getPath());
print " \n";
- print " | \n";
}
@@ -843,18 +875,19 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
$responsibleUser = $file->getUser();
print "";
- print "";
+ print " | ";
print "\n";
- print "- ".$file->getOriginalFileName() ."
\n";
+ print "- ".htmlspecialchars($file->getName())."
\n";
+ print "- ".htmlspecialchars($file->getOriginalFileName())."
\n";
if ($file_exists)
- print "- ". filesize($dms->contentDir . $file->getPath()) ." bytes ".htmlspecialchars($file->getMimeType())."
";
+ print "- ".SeedDMS_Core_File::format_filesize(filesize($dms->contentDir . $file->getPath())) ." bytes, ".htmlspecialchars($file->getMimeType())."
";
else print "- ".htmlspecialchars($file->getMimeType())." - ".getMLText("document_deleted")."
";
print "- ".getMLText("uploaded_by")." getEmail()."\">".htmlspecialchars($responsibleUser->getFullName())."
";
@@ -890,7 +923,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
print " | \n";
print " | \n";
print "".getMLText("comment")." | \n";
- print "".getMLText("document_link_by")." | \n";
+ print " | \n";
print " | \n";
print " | | \n\n\n";
@@ -909,9 +942,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
print "";
print "getID()."\" class=\"linklist\">".htmlspecialchars($targetDoc->getName())." | ";
print "".htmlspecialchars($targetDoc->getComment())." | ";
- print "".htmlspecialchars($responsibleUser->getFullName());
+ print " | ".getMLText("document_link_by")." ".htmlspecialchars($responsibleUser->getFullName());
if (($user->getID() == $responsibleUser->getID()) || ($document->getAccessMode($user) == M_ALL ))
- print ", ".getMLText("document_link_public").": ".(($link->isPublic()) ? getMLText("yes") : getMLText("no"));
+ print " ".getMLText("document_link_public").": ".(($link->isPublic()) ? getMLText("yes") : getMLText("no"));
print " | ";
print "";
if (($user->getID() == $responsibleUser->getID()) || ($document->getAccessMode($user) == M_ALL ))
| | |