new layout of folder/document list

remove columns for version and owner. Show this information below
title. Also show date of creation and last modification.
This commit is contained in:
Uwe Steinmann 2013-05-31 14:33:54 +02:00
parent 8e7eae836c
commit 5820840a2a

View File

@ -184,9 +184,9 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
print "<thead>\n<tr>\n"; print "<thead>\n<tr>\n";
print "<th></th>\n"; print "<th></th>\n";
print "<th><a href=\"../out/out.ViewFolder.php?folderid=". $folderid .($orderby=="n"?"":"&orderby=n")."\">".getMLText("name")."</a></th>\n"; print "<th><a href=\"../out/out.ViewFolder.php?folderid=". $folderid .($orderby=="n"?"":"&orderby=n")."\">".getMLText("name")."</a></th>\n";
print "<th>".getMLText("owner")."</th>\n"; // print "<th>".getMLText("owner")."</th>\n";
print "<th>".getMLText("status")."</th>\n"; print "<th>".getMLText("status")."</th>\n";
print "<th>".getMLText("version")."</th>\n"; // print "<th>".getMLText("version")."</th>\n";
print "<th>".getMLText("action")."</th>\n"; print "<th>".getMLText("action")."</th>\n";
print "</tr>\n</thead>\n<tbody>\n"; print "</tr>\n</thead>\n<tbody>\n";
} }
@ -207,11 +207,12 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
// print "<td><img src=\"images/folder_closed.gif\" width=18 height=18 border=0></td>"; // print "<td><img src=\"images/folder_closed.gif\" width=18 height=18 border=0></td>";
print "<td><a rel=\"folder_".$subFolder->getID()."\" draggable=\"true\" ondragstart=\"onDragStartFolder(event);\" href=\"out.ViewFolder.php?folderid=".$subFolder->getID()."&showtree=".$showtree."\"><img draggable=\"false\" src=\"".$this->imgpath."folder.png\" width=\"24\" height=\"24\" border=0></a></td>\n"; print "<td><a rel=\"folder_".$subFolder->getID()."\" draggable=\"true\" ondragstart=\"onDragStartFolder(event);\" href=\"out.ViewFolder.php?folderid=".$subFolder->getID()."&showtree=".$showtree."\"><img draggable=\"false\" src=\"".$this->imgpath."folder.png\" width=\"24\" height=\"24\" border=0></a></td>\n";
print "<td><a href=\"out.ViewFolder.php?folderid=".$subFolder->getID()."&showtree=".$showtree."\">" . htmlspecialchars($subFolder->getName()) . "</a>"; print "<td><a href=\"out.ViewFolder.php?folderid=".$subFolder->getID()."&showtree=".$showtree."\">" . htmlspecialchars($subFolder->getName()) . "</a>";
print "<br /><span style=\"font-size: 85%; font-style: italic; color: #666;\">".getMLText('owner').": <b>".htmlspecialchars($owner->getFullName())."</b>, ".getMLText('creation_date').": <b>".date('Y-m-d', $subFolder->getDate())."</b></span>";
if($comment) { if($comment) {
print "<br /><span style=\"font-size: 85%;\">".htmlspecialchars($comment)."</span>"; print "<br /><span style=\"font-size: 85%;\">".htmlspecialchars($comment)."</span>";
} }
print "</td>\n"; print "</td>\n";
print "<td>".htmlspecialchars($owner->getFullName())."</td>"; // print "<td>".htmlspecialchars($owner->getFullName())."</td>";
print "<td colspan=\"1\"><small>"; print "<td colspan=\"1\"><small>";
if($enableRecursiveCount) { if($enableRecursiveCount) {
if($user->isAdmin()) { if($user->isAdmin()) {
@ -232,7 +233,7 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
print count($subsub)." ".getMLText("folders")."<br />".count($subdoc)." ".getMLText("documents"); print count($subsub)." ".getMLText("folders")."<br />".count($subdoc)." ".getMLText("documents");
} }
print "</small></td>"; print "</small></td>";
print "<td></td>"; // print "<td></td>";
print "<td>"; print "<td>";
print "<div class=\"list-action\">"; print "<div class=\"list-action\">";
if($subFolder->getAccessMode($user) >= M_ALL) { if($subFolder->getAccessMode($user) >= M_ALL) {
@ -301,11 +302,12 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
print "<td><img draggable=\"false\" class=\"mimeicon\" src=\"".$this->getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\"></td>"; print "<td><img draggable=\"false\" class=\"mimeicon\" src=\"".$this->getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\"></td>";
print "<td><a href=\"out.ViewDocument.php?documentid=".$docID."&showtree=".$showtree."\">" . htmlspecialchars($document->getName()) . "</a>"; print "<td><a href=\"out.ViewDocument.php?documentid=".$docID."&showtree=".$showtree."\">" . htmlspecialchars($document->getName()) . "</a>";
print "<br /><span style=\"font-size: 85%; font-style: italic; color: #666; \">".getMLText('owner').": <b>".htmlspecialchars($owner->getFullName())."</b>, ".getMLText('creation_date').": <b>".date('Y-m-d', $document->getDate())."</b>, ".getMLText('version')." <b>".$version."</b> - <b>".date('Y-m-d', $latestContent->getDate())."</b></span>";
if($comment) { if($comment) {
print "<br /><span style=\"font-size: 85%;\">".htmlspecialchars($comment)."</span>"; print "<br /><span style=\"font-size: 85%;\">".htmlspecialchars($comment)."</span>";
} }
print "</td>\n"; print "</td>\n";
print "<td>".htmlspecialchars($owner->getFullName())."</td>"; // print "<td>".htmlspecialchars($owner->getFullName())."</td>";
print "<td>"; print "<td>";
$attentionstr = ''; $attentionstr = '';
if ( $document->isLocked() ) { if ( $document->isLocked() ) {
@ -322,7 +324,7 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
if(count($links)) if(count($links))
print count($links)." ".getMLText("linked_documents")."<br />"; print count($links)." ".getMLText("linked_documents")."<br />";
print getOverallStatusText($status["status"])."</small></td>"; print getOverallStatusText($status["status"])."</small></td>";
print "<td>".$version."</td>"; // print "<td>".$version."</td>";
print "<td>"; print "<td>";
print "<div class=\"list-action\">"; print "<div class=\"list-action\">";
if($document->getAccessMode($user) >= M_ALL) { if($document->getAccessMode($user) >= M_ALL) {