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() {
: -