mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 04:31:32 +00:00
show status log
This commit is contained in:
parent
4dd2dc87af
commit
7211f4b10a
|
@ -303,6 +303,22 @@ class SeedDMS_View_DocumentVersionDetail extends SeedDMS_Bootstrap_Style {
|
||||||
$this->contentContainerEnd();
|
$this->contentContainerEnd();
|
||||||
|
|
||||||
if($user->isAdmin()) {
|
if($user->isAdmin()) {
|
||||||
|
$this->contentHeading(getMLText("status"));
|
||||||
|
$this->contentContainerStart();
|
||||||
|
$statuslog = $version->getStatusLog();
|
||||||
|
echo "<table class=\"table table-condensed\"><thead>";
|
||||||
|
echo "<th>".getMLText('date')."</th><th>".getMLText('status')."</th><th>".getMLText('user')."</th><th>".getMLText('comment')."</th></tr>\n";
|
||||||
|
echo "</thead><tbody>";
|
||||||
|
foreach($statuslog as $entry) {
|
||||||
|
if($suser = $dms->getUser($entry['userID']))
|
||||||
|
$fullname = $suser->getFullName();
|
||||||
|
else
|
||||||
|
$fullname = "--";
|
||||||
|
echo "<tr><td>".$entry['date']."</td><td>".getOverallStatusText($entry['status'])."</td><td>".$fullname."</td><td>".$entry['comment']."</td></tr>\n";
|
||||||
|
}
|
||||||
|
print "</tbody>\n</table>\n";
|
||||||
|
$this->contentContainerEnd();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Reference in New Issue
Block a user