mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 13:11:31 +00:00
list documents in workflow, add button to substitute user
This commit is contained in:
parent
c15b7c4802
commit
c0a1ed57bb
|
@ -95,12 +95,36 @@ $(document).ready( function() {
|
||||||
echo "</td></tr>\n";
|
echo "</td></tr>\n";
|
||||||
$documents = $seluser->getDocuments();
|
$documents = $seluser->getDocuments();
|
||||||
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();
|
||||||
|
echo "<tr><td>".getMLText('documents_locked')."</td><td>".count($documents)."</td></tr>\n";
|
||||||
|
$reviewStatus = $seluser->getReviewStatus();
|
||||||
|
if($reviewStatus['indstatus']) {
|
||||||
|
$i = 0;
|
||||||
|
foreach($reviewStatus['indstatus'] as $rv) {
|
||||||
|
if($rv['status'] == 0) {
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
echo "<tr><td>".getMLText('pending_reviews')."</td><td>".$i."</td></tr>\n";
|
||||||
|
}
|
||||||
|
$approvalStatus = $seluser->getApprovalStatus();
|
||||||
|
if($approvalStatus['indstatus']) {
|
||||||
|
$i = 0;
|
||||||
|
foreach($approvalStatus['indstatus'] as $rv) {
|
||||||
|
if($rv['status'] == 0) {
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
echo "<tr><td>".getMLText('pending_approvals')."</td><td>".$i."</td></tr>\n";
|
||||||
|
}
|
||||||
$sessions = $sessionmgr->getUserSessions($seluser);
|
$sessions = $sessionmgr->getUserSessions($seluser);
|
||||||
if($sessions) {
|
if($sessions) {
|
||||||
$session = array_shift($sessions);
|
$session = array_shift($sessions);
|
||||||
echo "<tr><td>".getMLText('lastaccess')."</td><td>".getLongReadableDate($session->getLastAccess())."</td></tr>\n";
|
echo "<tr><td>".getMLText('lastaccess')."</td><td>".getLongReadableDate($session->getLastAccess())."</td></tr>\n";
|
||||||
}
|
}
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
|
|
||||||
|
echo "<a href=\"../op/op.SubstituteUser.php?userid=".$seluser->getID()."\" class=\"btn btn-primary\">".getMLText("substitute_user")."</a>\n";
|
||||||
}
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
@ -429,7 +453,7 @@ $(document).ready( function() {
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<div class="well">
|
<div class="well">
|
||||||
<?php echo getMLText("selection")?>:
|
<?php echo getMLText("selection")?>:
|
||||||
<select class="chzn-select" id="selector" class="span9">
|
<select class="chzn-select" id="selector">
|
||||||
<option value="-1"><?php echo getMLText("choose_user")?>
|
<option value="-1"><?php echo getMLText("choose_user")?>
|
||||||
<option value="0"><?php echo getMLText("add_user")?>
|
<option value="0"><?php echo getMLText("add_user")?>
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Reference in New Issue
Block a user