use buttons for downloading review/approval file

This commit is contained in:
Uwe Steinmann 2015-06-12 08:04:23 +02:00
parent 220329c1b8
commit 212e345cdc

View File

@ -518,7 +518,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
print "<td>".htmlspecialchars($r["comment"]); print "<td>".htmlspecialchars($r["comment"]);
if($r['file']) { if($r['file']) {
echo "<br />"; echo "<br />";
echo "<a href=\"../op/op.Download.php?documentid=".$documentid."&reviewlogid=".$r['reviewLogID']."\">".getMLText('download')."</a>"; echo "<a href=\"../op/op.Download.php?documentid=".$documentid."&reviewlogid=".$r['reviewLogID']."\" class=\"btn btn-mini\"><i class=\"icon-download\"></i> ".getMLText('download')."</a>";
} }
print "</td>\n"; print "</td>\n";
print "<td>".getReviewStatusText($r["status"])."</td>\n"; print "<td>".getReviewStatusText($r["status"])."</td>\n";
@ -587,7 +587,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
print "<td>".htmlspecialchars($a["comment"]); print "<td>".htmlspecialchars($a["comment"]);
if($a['file']) { if($a['file']) {
echo "<br />"; echo "<br />";
echo "<a href=\"../op/op.Download.php?documentid=".$documentid."&approvelogid=".$a['approveLogId']."\">".getMLText('download')."</a>"; echo "<a href=\"../op/op.Download.php?documentid=".$documentid."&approvelogid=".$a['approveLogId']."\" class=\"btn btn-mini\"><i class=\"icon-download\"></i> ".getMLText('download')."</a>";
} }
echo "</td>\n"; echo "</td>\n";
print "<td>".getApprovalStatusText($a["status"])."</td>\n"; print "<td>".getApprovalStatusText($a["status"])."</td>\n";
@ -661,6 +661,10 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
echo "</i>"; echo "</i>";
if($rec['comment']) if($rec['comment'])
echo "<br />".htmlspecialchars($rec['comment']); echo "<br />".htmlspecialchars($rec['comment']);
if($rec['file']) {
echo "<br />";
echo "<a href=\"../op/op.Download.php?documentid=".$documentid."&reviewlogid=".$rec['reviewLogID']."\" class=\"btn btn-mini\"><i class=\"icon-download\"></i> ".getMLText('download')."</a>";
}
echo "</td>"; echo "</td>";
echo "<td>"; echo "<td>";
echo getApprovalStatusText($rec["status"]); echo getApprovalStatusText($rec["status"]);
@ -714,6 +718,10 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
echo "</i>"; echo "</i>";
if($rec['comment']) if($rec['comment'])
echo "<br />".htmlspecialchars($rec['comment']); echo "<br />".htmlspecialchars($rec['comment']);
if($rec['file']) {
echo "<br />";
echo "<a href=\"../op/op.Download.php?documentid=".$documentid."&approvelogid=".$rec['approveLogID']."\" class=\"btn btn-mini\"><i class=\"icon-download\"></i> ".getMLText('download')."</a>";
}
echo "</td>"; echo "</td>";
echo "<td>"; echo "<td>";
echo getApprovalStatusText($rec["status"]); echo getApprovalStatusText($rec["status"]);