- corrected output of clipboard

This commit is contained in:
steinm 2013-02-02 15:58:52 +00:00
parent 3198f0a40d
commit d8f43bef3a

View File

@ -338,8 +338,12 @@ class LetoDMS_Bootstrap_Style extends LetoDMS_View_Common {
echo "<ul class=\"nav\">\n";
echo "<li id=\"first\"><a href=\"../out/out.MyDocuments.php?inProcess=1\">".getMLText("documents_in_process")."</a></li>\n";
echo "<li><a href=\"../out/out.MyDocuments.php\">".getMLText("all_documents")."</a></li>\n";
if($this->params['workflowmode'] == 'traditional') {
echo "<li><a href=\"../out/out.ReviewSummary.php\">".getMLText("review_summary")."</a></li>\n";
echo "<li><a href=\"../out/out.ApprovalSummary.php\">".getMLText("approval_summary")."</a></li>\n";
} else {
echo "<li><a href=\"../out/out.WorkflowSummary.php\">".getMLText("workflow_summary")."</a></li>\n";
}
echo "</ul>\n";
return;
} /* }}} */
@ -1011,7 +1015,7 @@ class LetoDMS_Bootstrap_Style extends LetoDMS_View_Common {
if($clipboard['folders']) {
//echo "<tr><th colspan=\"3\">Folders</th></tr>\n";
foreach($clipboard['folders'] as $folderid) {
$folder = $dms->getFolder($folderid);
if($folder = $dms->getFolder($folderid)) {
$comment = $folder->getComment();
if (strlen($comment) > 150) $comment = substr($comment, 0, 147) . "...";
print "<tr rel=\"folder_".$folder->getID()."\" class=\"folder\" ondragover=\"allowDrop(event)\" ondrop=\"onDrop(event)\">";
@ -1028,11 +1032,12 @@ class LetoDMS_Bootstrap_Style extends LetoDMS_View_Common {
print "</tr>\n";
}
}
}
$previewer = new LetoDMS_Preview_Previewer($this->params['cachedir'], 40);
if($clipboard['docs']) {
//echo "<tr><th colspan=\"3\">Documents</th></tr>\n";
foreach($clipboard['docs'] as $docid) {
$document = $dms->getDocument($docid);
if($document = $dms->getDocument($docid)) {
$comment = $document->getComment();
if (strlen($comment) > 150) $comment = substr($comment, 0, 147) . "...";
if($latestContent = $document->getLatestContent()) {
@ -1065,6 +1070,7 @@ class LetoDMS_Bootstrap_Style extends LetoDMS_View_Common {
}
}
}
}
print "</table>";
echo "</div>\n";
} /* }}} */