diff --git a/views/bootstrap/class.MyDocuments.php b/views/bootstrap/class.MyDocuments.php index 115268d1e..7269de562 100644 --- a/views/bootstrap/class.MyDocuments.php +++ b/views/bootstrap/class.MyDocuments.php @@ -374,6 +374,7 @@ $(document).ready( function() { } if (count($resArr)>0) { + if(0) { // Create an array to hold all of these results, and index the array by // document id. This makes it easier to retrieve document ID information // later on and saves us having to repeatedly poll the database every time @@ -446,6 +447,45 @@ $(document).ready( function() { }else{ printMLText("no_docs_to_check"); } + } else { + // List the documents where a review has been requested. + $this->contentHeading(getMLText("documents_to_process")); + + $printheader=true; + $iRev = array(); + $dList = array(); + foreach ($resArr as $res) { + + if ( $res['id'] ) { + $dList[] = $res["id"]; + $document = $dms->getDocument($res["id"]); + $document->verifyLastestContentExpriry(); + + if ($printheader){ + print ""; + print "\n\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n"; + print "\n\n\n"; + $printheader=false; + } + + $txt = $this->callHook('documentListItem', $document, $previewer); + if(is_string($txt)) + echo $txt; + else { + echo $this->documentListRow($document, $previewer, false, $res['version']); + } + } + } + if (!$printheader){ + echo "\n
".getMLText("name")."".getMLText("status")."".getMLText("action")."
"; + }else{ + printMLText("no_docs_to_check"); + } + } } } /* }}} */