mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 17:05:46 +00:00
use same user list as for Acl manager
This commit is contained in:
parent
1175f6f9c5
commit
304a5d804e
|
@ -77,11 +77,29 @@ $(document).ready( function() {
|
|||
if($selrole) {
|
||||
$this->contentHeading(getMLText("role_info"));
|
||||
$users = $selrole->getUsers();
|
||||
echo "<table class=\"table table-condensed\">\n";
|
||||
foreach($users as $cuser) {
|
||||
echo "<tr><td>".htmlspecialchars($cuser->getFullName())."</td><td></td></tr>\n";
|
||||
if($users) {
|
||||
echo "<table class=\"table table-condensed\"><thead><tr><th>".getMLText('name')."</th><th></th></tr></thead><tbody>\n";
|
||||
foreach($users as $currUser) {
|
||||
echo "<tr>";
|
||||
echo "<td>";
|
||||
echo htmlspecialchars($currUser->getFullName())." (".htmlspecialchars($currUser->getLogin()).")";
|
||||
echo "<br /><a href=\"mailto:".$currUser->getEmail()."\">".htmlspecialchars($currUser->getEmail())."</a>";
|
||||
if($currUser->getComment())
|
||||
echo "<br /><small>".htmlspecialchars($currUser->getComment())."</small>";
|
||||
echo "</td>";
|
||||
echo "<td>";
|
||||
echo htmlspecialchars($this->html_link('RemoveUser', array('userid'=>$currUser->getID()), array(), '<i class="icon-remove"></i>'));
|
||||
if($this->check_access(array('UsrMgr', 'RemoveUser'))) {
|
||||
echo "<div class=\"list-action\">";
|
||||
echo $this->html_link('UsrMgr', array('userid'=>$currUser->getID()), array(), '<i class="icon-edit"></i>', false);
|
||||
echo $this->html_link('RemoveUser', array('userid'=>$currUser->getID()), array(), '<i class="icon-remove"></i>', false);
|
||||
echo "</div>";
|
||||
}
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
echo "</tbody></table>";
|
||||
}
|
||||
echo "</table>";
|
||||
}
|
||||
} /* }}} */
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user