mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 20:51:30 +00:00
show pending reviews/approvals/workflows only for configured workflow mode
This commit is contained in:
parent
86ee3fb13e
commit
65ce04d175
|
@ -82,6 +82,7 @@ $(document).ready( function() {
|
||||||
$dms = $this->params['dms'];
|
$dms = $this->params['dms'];
|
||||||
$seluser = $this->params['seluser'];
|
$seluser = $this->params['seluser'];
|
||||||
$quota = $this->params['quota'];
|
$quota = $this->params['quota'];
|
||||||
|
$workflowmode = $this->params['workflowmode'];
|
||||||
|
|
||||||
if($seluser) {
|
if($seluser) {
|
||||||
$sessionmgr = new SeedDMS_SessionMgr($dms->getDB());
|
$sessionmgr = new SeedDMS_SessionMgr($dms->getDB());
|
||||||
|
@ -97,25 +98,34 @@ $(document).ready( function() {
|
||||||
echo "<tr><td>".getMLText('documents')."</td><td>".count($documents)."</td></tr>\n";
|
echo "<tr><td>".getMLText('documents')."</td><td>".count($documents)."</td></tr>\n";
|
||||||
$documents = $seluser->getDocumentsLocked();
|
$documents = $seluser->getDocumentsLocked();
|
||||||
echo "<tr><td>".getMLText('documents_locked')."</td><td>".count($documents)."</td></tr>\n";
|
echo "<tr><td>".getMLText('documents_locked')."</td><td>".count($documents)."</td></tr>\n";
|
||||||
$reviewStatus = $seluser->getReviewStatus();
|
if($workflowmode == "traditional") {
|
||||||
if($reviewStatus['indstatus']) {
|
$reviewStatus = $seluser->getReviewStatus();
|
||||||
$i = 0;
|
if($reviewStatus['indstatus']) {
|
||||||
foreach($reviewStatus['indstatus'] as $rv) {
|
$i = 0;
|
||||||
if($rv['status'] == 0) {
|
foreach($reviewStatus['indstatus'] as $rv) {
|
||||||
$i++;
|
if($rv['status'] == 0) {
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
echo "<tr><td>".getMLText('pending_reviews')."</td><td>".$i."</td></tr>\n";
|
||||||
}
|
}
|
||||||
echo "<tr><td>".getMLText('pending_reviews')."</td><td>".$i."</td></tr>\n";
|
|
||||||
}
|
}
|
||||||
$approvalStatus = $seluser->getApprovalStatus();
|
if($workflowmode == "traditional" || $workflowmode == 'traditional_only_approval') {
|
||||||
if($approvalStatus['indstatus']) {
|
$approvalStatus = $seluser->getApprovalStatus();
|
||||||
$i = 0;
|
if($approvalStatus['indstatus']) {
|
||||||
foreach($approvalStatus['indstatus'] as $rv) {
|
$i = 0;
|
||||||
if($rv['status'] == 0) {
|
foreach($approvalStatus['indstatus'] as $rv) {
|
||||||
$i++;
|
if($rv['status'] == 0) {
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
echo "<tr><td>".getMLText('pending_approvals')."</td><td>".$i."</td></tr>\n";
|
||||||
}
|
}
|
||||||
echo "<tr><td>".getMLText('pending_approvals')."</td><td>".$i."</td></tr>\n";
|
}
|
||||||
|
if($workflowmode == 'advanced') {
|
||||||
|
$workflowStatus = $seluser->getWorkflowStatus();
|
||||||
|
if($workflowStatus['u'])
|
||||||
|
echo "<tr><td>".getMLText('pending_workflows')."</td><td>".count($workflowStatus['u'])."</td></tr>\n";
|
||||||
}
|
}
|
||||||
$sessions = $sessionmgr->getUserSessions($seluser);
|
$sessions = $sessionmgr->getUserSessions($seluser);
|
||||||
if($sessions) {
|
if($sessions) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user