From c0a1ed57bbc252d6bd02a8689bb3db5db043bfc5 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 10 Feb 2016 10:04:24 +0100 Subject: [PATCH] list documents in workflow, add button to substitute user --- views/bootstrap/class.UsrMgr.php | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/views/bootstrap/class.UsrMgr.php b/views/bootstrap/class.UsrMgr.php index c30199630..add28e9fc 100644 --- a/views/bootstrap/class.UsrMgr.php +++ b/views/bootstrap/class.UsrMgr.php @@ -95,12 +95,36 @@ $(document).ready( function() { echo "\n"; $documents = $seluser->getDocuments(); echo "".getMLText('documents')."".count($documents)."\n"; + $documents = $seluser->getDocumentsLocked(); + echo "".getMLText('documents_locked')."".count($documents)."\n"; + $reviewStatus = $seluser->getReviewStatus(); + if($reviewStatus['indstatus']) { + $i = 0; + foreach($reviewStatus['indstatus'] as $rv) { + if($rv['status'] == 0) { + $i++; + } + } + echo "".getMLText('pending_reviews')."".$i."\n"; + } + $approvalStatus = $seluser->getApprovalStatus(); + if($approvalStatus['indstatus']) { + $i = 0; + foreach($approvalStatus['indstatus'] as $rv) { + if($rv['status'] == 0) { + $i++; + } + } + echo "".getMLText('pending_approvals')."".$i."\n"; + } $sessions = $sessionmgr->getUserSessions($seluser); if($sessions) { $session = array_shift($sessions); echo "".getMLText('lastaccess')."".getLongReadableDate($session->getLastAccess())."\n"; } echo ""; + + echo "getID()."\" class=\"btn btn-primary\">".getMLText("substitute_user")."\n"; } } /* }}} */ @@ -429,7 +453,7 @@ $(document).ready( function() {
: -