diff --git a/views/bootstrap/class.AddDocument.php b/views/bootstrap/class.AddDocument.php index 96b2d1e64..534b33f54 100644 --- a/views/bootstrap/class.AddDocument.php +++ b/views/bootstrap/class.AddDocument.php @@ -222,7 +222,7 @@ $(document).ready(function() { @@ -262,6 +262,7 @@ $(document).ready(function() { @@ -372,7 +373,7 @@ $(document).ready(function() { ?> - + contentSubHeading(getMLText("assign_approvers")); ?> diff --git a/views/bootstrap/class.AdminTools.php b/views/bootstrap/class.AdminTools.php index 4c8f3f84c..c6061edf2 100644 --- a/views/bootstrap/class.AdminTools.php +++ b/views/bootstrap/class.AdminTools.php @@ -62,7 +62,7 @@ class SeedDMS_View_AdminTools extends SeedDMS_Bootstrap_Style {
params['workflowmode'] != 'traditional') { + if($this->params['workflowmode'] == 'advanced') { ?>

diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 169753515..c855e1be4 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -494,8 +494,9 @@ $(document).ready(function () { echo "
  • ".getMLText("documents_in_process")."
  • \n"; echo "
  • ".getMLText("all_documents")."
  • \n"; - if($this->params['workflowmode'] == 'traditional') { - echo "
  • ".getMLText("review_summary")."
  • \n"; + if($this->params['workflowmode'] == 'traditional' || $this->params['workflowmode'] == 'traditional_only_approval') { + if($this->params['workflowmode'] == 'traditional') + echo "
  • ".getMLText("review_summary")."
  • \n"; echo "
  • ".getMLText("approval_summary")."
  • \n"; } else { echo "
  • ".getMLText("workflow_summary")."
  • \n"; @@ -527,7 +528,7 @@ $(document).ready(function () { echo "
  • ".getMLText("global_default_keywords")."
  • \n"; echo "
  • ".getMLText("global_document_categories")."
  • \n"; echo "
  • ".getMLText("global_attributedefinitions")."
  • \n"; - if($this->params['workflowmode'] != 'traditional') { + if($this->params['workflowmode'] == 'advanced') { echo "
  • ".getMLText("global_workflows")."
  • \n"; echo "
  • ".getMLText("global_workflow_states")."
  • \n"; echo "
  • ".getMLText("global_workflow_actions")."
  • \n"; diff --git a/views/bootstrap/class.MyDocuments.php b/views/bootstrap/class.MyDocuments.php index feb6ff95e..3b05e95fa 100644 --- a/views/bootstrap/class.MyDocuments.php +++ b/views/bootstrap/class.MyDocuments.php @@ -57,7 +57,7 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { exit; } - if($workflowmode == 'traditional') { + if($workflowmode == 'traditional' || $workflowmode == 'traditional_only_approval') { // Get document list for the current user. $reviewStatus = $user->getReviewStatus(); $approvalStatus = $user->getApprovalStatus(); @@ -137,91 +137,93 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { } // List the documents where a review has been requested. - $this->contentHeading(getMLText("documents_to_review")); - $this->contentContainerStart(); - $printheader=true; - $iRev = array(); - $dList = array(); - foreach ($reviewStatus["indstatus"] as $st) { - - if ( $st["status"]==0 && isset($docIdx[$st["documentID"]][$st["version"]]) && !in_array($st["documentID"], $dList) ) { - $dList[] = $st["documentID"]; - $document = $dms->getDocument($st["documentID"]); + if($workflowmode == 'traditional') { + $this->contentHeading(getMLText("documents_to_review")); + $this->contentContainerStart(); + $printheader=true; + $iRev = array(); + $dList = array(); + foreach ($reviewStatus["indstatus"] as $st) { - if ($printheader){ - print ""; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n\n"; - $printheader=false; + if ( $st["status"]==0 && isset($docIdx[$st["documentID"]][$st["version"]]) && !in_array($st["documentID"], $dList) ) { + $dList[] = $st["documentID"]; + $document = $dms->getDocument($st["documentID"]); + + if ($printheader){ + print "
    ".getMLText("name")."".getMLText("owner")."".getMLText("version")."".getMLText("last_update")."".getMLText("expires")."
    "; + print "\n\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n\n\n"; + $printheader=false; + } + + print "\n"; + $latestContent = $document->getLatestContent(); + $previewer->createPreview($latestContent); + print ""; + print ""; + print ""; + print ""; + print ""; + print "".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"])).""; + print "\n"; } + } + foreach ($reviewStatus["grpstatus"] as $st) { - print "\n"; - $latestContent = $document->getLatestContent(); - $previewer->createPreview($latestContent); - print ""; - print ""; - print ""; - print ""; - print ""; - print "".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"])).""; - print "\n"; - } - } - foreach ($reviewStatus["grpstatus"] as $st) { - - if (!in_array($st["documentID"], $iRev) && $st["status"]==0 && isset($docIdx[$st["documentID"]][$st["version"]]) && !in_array($st["documentID"], $dList) && $docIdx[$st["documentID"]][$st["version"]]['owner'] != $user->getId()) { - $dList[] = $st["documentID"]; - $document = $dms->getDocument($st["documentID"]); + if (!in_array($st["documentID"], $iRev) && $st["status"]==0 && isset($docIdx[$st["documentID"]][$st["version"]]) && !in_array($st["documentID"], $dList) && $docIdx[$st["documentID"]][$st["version"]]['owner'] != $user->getId()) { + $dList[] = $st["documentID"]; + $document = $dms->getDocument($st["documentID"]); - if ($printheader){ - print "
    ".getMLText("name")."".getMLText("owner")."".getMLText("version")."".getMLText("last_update")."".getMLText("expires")."
    "; + if($previewer->hasPreview($latestContent)) { + print "getID()."&version=".$latestContent->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; + } else { + print "getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; + } + print "".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."".$st["version"]."".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"]) ."
    "; - if($previewer->hasPreview($latestContent)) { - print "getID()."&version=".$latestContent->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; - } else { - print "getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; - } - print "".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."".$st["version"]."".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"]) ."
    "; - print "\n\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n"; - print "\n\n\n"; - $printheader=false; - } + if ($printheader){ + print "
    ".getMLText("name")."".getMLText("owner")."".getMLText("version")."".getMLText("last_update")."".getMLText("expires")."
    "; + print "\n\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n\n\n"; + $printheader=false; + } - print "\n"; - $latestContent = $document->getLatestContent(); - $previewer->createPreview($latestContent); - print "\n"; + $latestContent = $document->getLatestContent(); + $previewer->createPreview($latestContent); + print ""; + print ""; + print ""; + print ""; + print ""; + print "".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"])).""; + print "\n"; } - print ""; - print ""; - print ""; - print ""; - print ""; - print "".(!$docIdx[$st["documentID"]][$st["version"]]["expires"] ? "-":getReadableDate($docIdx[$st["documentID"]][$st["version"]]["expires"])).""; - print "\n"; } + if (!$printheader){ + echo "\n
    ".getMLText("name")."".getMLText("owner")."".getMLText("version")."".getMLText("last_update")."".getMLText("expires")."
    "; - if($previewer->hasPreview($latestContent)) { - print "getID()."&version=".$latestContent->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; - } else { - print "getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; + print "
    "; + if($previewer->hasPreview($latestContent)) { + print "getID()."&version=".$latestContent->getVersion()."&width=".$previewwidth."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; + } else { + print "getMimeIcon($latestContent->getFileType())."\" title=\"".htmlspecialchars($latestContent->getMimeType())."\">"; + } + print "".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."".$st["version"]."".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"])."
    ".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["name"])."".htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["ownerName"])."".$st["version"]."".$st["date"]." ". htmlspecialchars($docIdx[$st["documentID"]][$st["version"]]["statusName"])."
    "; + }else{ + printMLText("no_docs_to_review"); + } + $this->contentContainerEnd(); } - if (!$printheader){ - echo "\n"; - }else{ - printMLText("no_docs_to_review"); - } - $this->contentContainerEnd(); // List the documents where an approval has been requested. $this->contentHeading(getMLText("documents_to_approve")); @@ -306,11 +308,12 @@ class SeedDMS_View_MyDocuments extends SeedDMS_Bootstrap_Style { $this->contentContainerEnd(); } else { - - $this->contentHeading(getMLText("documents_to_review")); - $this->contentContainerStart(); - printMLText("no_review_needed"); - $this->contentContainerEnd(); + if($workflowmode == 'traditional') { + $this->contentHeading(getMLText("documents_to_review")); + $this->contentContainerStart(); + printMLText("no_review_needed"); + $this->contentContainerEnd(); + } $this->contentHeading(getMLText("documents_to_approve")); $this->contentContainerStart(); printMLText("no_approval_needed"); diff --git a/views/bootstrap/class.Search.php b/views/bootstrap/class.Search.php index 93ca7f720..1da09cad8 100644 --- a/views/bootstrap/class.Search.php +++ b/views/bootstrap/class.Search.php @@ -240,8 +240,10 @@ class SeedDMS_View_Search extends SeedDMS_Bootstrap_Style { : + + diff --git a/views/bootstrap/class.UsrMgr.php b/views/bootstrap/class.UsrMgr.php index 286767155..df17159d4 100644 --- a/views/bootstrap/class.UsrMgr.php +++ b/views/bootstrap/class.UsrMgr.php @@ -185,6 +185,7 @@ class SeedDMS_View_UsrMgr extends SeedDMS_Bootstrap_Style { @@ -236,7 +237,9 @@ class SeedDMS_View_UsrMgr extends SeedDMS_Bootstrap_Style { - + :