mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +00:00
add column with role
This commit is contained in:
parent
85ac4314f5
commit
535012f844
|
@ -48,7 +48,7 @@ class SeedDMS_View_SubstituteUser extends SeedDMS_Bootstrap_Style {
|
||||||
$this->contentContainerStart();
|
$this->contentContainerStart();
|
||||||
?>
|
?>
|
||||||
<table class="table table-condensed">
|
<table class="table table-condensed">
|
||||||
<tr><th><?php printMLText('name'); ?></th><th><?php printMLText('email');?></th><th><?php printMLText('groups'); ?></th><th></th></tr>
|
<thead><tr><th><?php printMLText('name'); ?></th><th><?php printMLText('email');?></th><th><?php printMLText('role'); ?></th><th><?php printMLText('groups'); ?></th><th></th></tr></thead><tbody>
|
||||||
<?php
|
<?php
|
||||||
foreach ($allUsers as $currUser) {
|
foreach ($allUsers as $currUser) {
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
|
@ -60,6 +60,9 @@ class SeedDMS_View_SubstituteUser extends SeedDMS_Bootstrap_Style {
|
||||||
echo "<a href=\"mailto:".htmlspecialchars($currUser->getEmail())."\">".htmlspecialchars($currUser->getEmail())."</a><br />";
|
echo "<a href=\"mailto:".htmlspecialchars($currUser->getEmail())."\">".htmlspecialchars($currUser->getEmail())."</a><br />";
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
|
echo htmlspecialchars($currUser->getRole()->getName());
|
||||||
|
echo "</td>";
|
||||||
|
echo "<td>";
|
||||||
$groups = $currUser->getGroups();
|
$groups = $currUser->getGroups();
|
||||||
if (count($groups) != 0) {
|
if (count($groups) != 0) {
|
||||||
for ($j = 0; $j < count($groups); $j++) {
|
for ($j = 0; $j < count($groups); $j++) {
|
||||||
|
@ -76,7 +79,7 @@ class SeedDMS_View_SubstituteUser extends SeedDMS_Bootstrap_Style {
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
echo "</tr>";
|
echo "</tr>";
|
||||||
}
|
}
|
||||||
echo "</table>";
|
echo "</tbody></table>";
|
||||||
$this->contentContainerEnd();
|
$this->contentContainerEnd();
|
||||||
|
|
||||||
$this->htmlEndPage();
|
$this->htmlEndPage();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user