mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +00:00
make it look like Review/Approval summary
This commit is contained in:
parent
0f072fc9a9
commit
2ef409c197
|
@ -70,46 +70,27 @@ class SeedDMS_View_WorkflowSummary extends SeedDMS_Theme_Style {
|
||||||
$document = $dms->getDocument($st['document']);
|
$document = $dms->getDocument($st['document']);
|
||||||
if($document)
|
if($document)
|
||||||
$version = $document->getContentByVersion($st['version']);
|
$version = $document->getContentByVersion($st['version']);
|
||||||
$workflow = $dms->getWorkflow($st['workflow']);
|
|
||||||
$state = $dms->getWorkflowState($st['state']);
|
|
||||||
$owner = $document->getOwner();
|
|
||||||
$moduser = $dms->getUser($st['userid']);
|
$moduser = $dms->getUser($st['userid']);
|
||||||
|
|
||||||
if ($document && $version) {
|
if ($document && $version) {
|
||||||
|
|
||||||
if ($printheader){
|
if ($printheader){
|
||||||
print "<table class=\"table table-condensed\">";
|
print "<table class=\"table table-condensed table-sm\">";
|
||||||
print "<thead>\n<tr>\n";
|
print "<thead>\n<tr>\n";
|
||||||
print "<th></th>\n";
|
print "<th></th>\n";
|
||||||
print "<th>".getMLText("name")."</th>\n";
|
print "<th>".getMLText("name")."</th>\n";
|
||||||
print "<th>".getMLText("version")."</th>\n";
|
print "<th>".getMLText("status")."</th>\n";
|
||||||
print "<th>".getMLText("owner")."</th>\n";
|
print "<th>".getMLText("action")."</th>\n";
|
||||||
print "<th>".getMLText("workflow")."</th>\n";
|
|
||||||
print "<th>".getMLText("workflow_state")."</th>\n";
|
|
||||||
print "<th>".getMLText("last_update")."</th>\n";
|
print "<th>".getMLText("last_update")."</th>\n";
|
||||||
print "<th>".getMLText("expires")."</th>\n";
|
|
||||||
print "</tr>\n</thead>\n<tbody>\n";
|
print "</tr>\n</thead>\n<tbody>\n";
|
||||||
$printheader=false;
|
$printheader=false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$previewer->createPreview($version);
|
echo $this->documentListRowStart($document, $class);
|
||||||
print "<tr>\n";
|
echo $this->documentListRow($document, $previewer, true, $st['version']);
|
||||||
print "<td><a href=\"../op/op.Download.php?documentid=".$document->getID()."&version=".$st['version']."\">";
|
print "<td><small>".getLongReadableDate($st["date"])."<br />". htmlspecialchars($moduser->getFullName()) ."</small></td>";
|
||||||
if($previewer->hasPreview($version)) {
|
echo $this->documentListRowEnd($document);
|
||||||
print "<img class=\"mimeicon\" width=\"".$previewwidth."\" src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$version->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($version->getMimeType())."\">";
|
$iRev[] = $document->getId();
|
||||||
} else {
|
|
||||||
print "<img class=\"mimeicon\" width=\"".$previewwidth."\" src=\"".$this->getMimeIcon($version->getFileType())."\" title=\"".htmlspecialchars($version->getMimeType())."\">";
|
|
||||||
}
|
|
||||||
print "</a></td>";
|
|
||||||
print "<td><a href=\"out.DocumentVersionDetail.php?documentid=".$st["document"]."&version=".$st["version"]."\">".htmlspecialchars($document->getName());
|
|
||||||
print "</a></td>";
|
|
||||||
print "<td>".$st["version"]."</td>";
|
|
||||||
print "<td>".htmlspecialchars($owner->getFullName())."</td>";
|
|
||||||
print "<td>".$workflow->getName()."</td>";
|
|
||||||
print "<td>".$state->getName()."</td>";
|
|
||||||
print "<td>".$st["date"]." ". htmlspecialchars($moduser->getFullName()) ."</td>";
|
|
||||||
print "<td>".(!$document->expires() ? "-":getReadableDate($document->getExpires()))."</td>";
|
|
||||||
print "</tr>\n";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!$printheader) {
|
if (!$printheader) {
|
||||||
|
@ -125,45 +106,27 @@ class SeedDMS_View_WorkflowSummary extends SeedDMS_Theme_Style {
|
||||||
$document = $dms->getDocument($st['document']);
|
$document = $dms->getDocument($st['document']);
|
||||||
if($document)
|
if($document)
|
||||||
$version = $document->getContentByVersion($st['version']);
|
$version = $document->getContentByVersion($st['version']);
|
||||||
$workflow = $dms->getWorkflow($st['workflow']);
|
|
||||||
$state = $dms->getWorkflowState($st['state']);
|
|
||||||
$owner = $document->getOwner();
|
|
||||||
$modgroup = $dms->getGroup($st['groupid']);
|
$modgroup = $dms->getGroup($st['groupid']);
|
||||||
|
|
||||||
if (!in_array($st["document"], $iRev) && $document && $version) {
|
if (!in_array($st["document"], $iRev) && $document && $version) {
|
||||||
|
|
||||||
if ($printheader){
|
if ($printheader){
|
||||||
print "<table class=\"table table-condensed\">";
|
print "<table class=\"table table-condensed table-sm\">";
|
||||||
print "<thead>\n<tr>\n";
|
print "<thead>\n<tr>\n";
|
||||||
print "<th></th>\n";
|
print "<th></th>\n";
|
||||||
print "<th>".getMLText("name")."</th>\n";
|
print "<th>".getMLText("name")."</th>\n";
|
||||||
print "<th>".getMLText("version")."</th>\n";
|
print "<th>".getMLText("status")."</th>\n";
|
||||||
print "<th>".getMLText("owner")."</th>\n";
|
print "<th>".getMLText("action")."</th>\n";
|
||||||
print "<th>".getMLText("workflow")."</th>\n";
|
|
||||||
print "<th>".getMLText("workflow_state")."</th>\n";
|
|
||||||
print "<th>".getMLText("last_update")."</th>\n";
|
print "<th>".getMLText("last_update")."</th>\n";
|
||||||
print "<th>".getMLText("expires")."</th>\n";
|
|
||||||
print "</tr>\n</thead>\n<tbody>\n";
|
print "</tr>\n</thead>\n<tbody>\n";
|
||||||
$printheader=false;
|
$printheader=false;
|
||||||
}
|
|
||||||
|
|
||||||
$previewer->createPreview($version);
|
|
||||||
print "<tr>\n";
|
|
||||||
print "<td><a href=\"../op/op.Download.php?documentid=".$document->getID()."&version=".$st['version']."\">";
|
|
||||||
if($previewer->hasPreview($version)) {
|
|
||||||
print "<img class=\"mimeicon\" width=\"".$previewwidth."\" src=\"../op/op.Preview.php?documentid=".$document->getID()."&version=".$version->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($version->getMimeType())."\">";
|
|
||||||
} else {
|
|
||||||
print "<img class=\"mimeicon\" width=\"".$previewwidth."\" src=\"".$this->getMimeIcon($version->getFileType())."\" title=\"".htmlspecialchars($version->getMimeType())."\">";
|
|
||||||
}
|
}
|
||||||
print "</a></td>";
|
|
||||||
print "<td><a href=\"out.DocumentVersionDetail.php?documentid=".$st["document"]."&version=".$st["version"]."\">".htmlspecialchars($document->getName())."</a></td>";
|
echo $this->documentListRowStart($document, $class);
|
||||||
print "<td>".$st["version"]."</td>";
|
echo $this->documentListRow($document, $previewer, true, $st['version']);
|
||||||
print "<td>".htmlspecialchars($owner->getFullName())."</td>";
|
print "<td><small>".getLongReadableDate($st["date"])."<br />". htmlspecialchars($moduser->getFullName()) ."</small></td>";
|
||||||
print "<td>".$workflow->getName()."</td>";
|
echo $this->documentListRowEnd($document);
|
||||||
print "<td>".$state->getName()."</td>";
|
$iRev[] = $document->getId();
|
||||||
print "<td>".$st["date"]." ". htmlspecialchars($modgroup->getName()) ."</td>";
|
|
||||||
print "<td>".(!$document->expires() ? "-":getReadableDate($document->getExpires()))."</td>";
|
|
||||||
print "</tr>\n";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!$printheader) {
|
if (!$printheader) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user