new layout

one table line per user
This commit is contained in:
Uwe Steinmann 2013-02-19 09:57:48 +01:00
parent d0c2daa6a6
commit 5975710302

View File

@ -43,62 +43,44 @@ class SeedDMS_View_UserList extends SeedDMS_Bootstrap_Style {
$this->pageNavigation("", "admin_tools"); $this->pageNavigation("", "admin_tools");
$this->contentHeading(getMLText("user_list")); $this->contentHeading(getMLText("user_list"));
$this->contentContainerStart(); $this->contentContainerStart();
foreach ($allUsers as $currUser) {
if ($currUser->isGuest())
continue;
$this->contentSubHeading(getMLText("user") . ": \"" . $currUser->getFullName() . "\"");
?> ?>
<table class="table-condensed">
<tr> <table class="table table-condensed">
<td><?php printMLText("user_login");?>:</td> <tr><th></th><th><?php printMLText('name'); ?></th><th><?php printMLText('groups'); ?></th><th></th><th></th></tr>
<td><?php print $currUser->getLogin();?></td> <?php
</tr> foreach ($allUsers as $currUser) {
<tr> echo "<tr>";
<td><?php printMLText("user_name");?>:</td> echo "<td>";
<td><?php print $currUser->getFullName();?></td> if ($currUser->hasImage())
</tr> print "<img width=\"50\" src=\"".$httproot . "out/out.UserImage.php?userid=".$currUser->getId()."\">";
<tr> echo "</td>";
<td><?php printMLText("email");?>:</td> echo "<td>";
<td><a href="mailto:<?php print $currUser->getEmail();?>"><?php print $currUser->getEmail();?></a></td> echo $currUser->getFullName()." (".$currUser->getLogin().")<br />";
</tr> echo "<a href=\"mailto:".$currUser->getEmail()."\">".$currUser->getEmail()."</a><br />";
<tr> echo "<small>".$currUser->getComment()."</small>";
<td><?php printMLText("comment");?>:</td> echo "</td>";
<td><?php print $currUser->getComment();?></td> echo "<td>";
</tr>
<tr>
<td><?php printMLText("groups");?>:</td>
<td>
<?php
$groups = $currUser->getGroups(); $groups = $currUser->getGroups();
if (count($groups) == 0) { if (count($groups) != 0) {
printMLText("no_groups");
}
else {
for ($j = 0; $j < count($groups); $j++) { for ($j = 0; $j < count($groups); $j++) {
print $groups[$j]->getName(); print $groups[$j]->getName();
if ($j +1 < count($groups)) if ($j +1 < count($groups))
print ", "; print ", ";
} }
} }
?> echo "</td>";
</td> echo "<td>";
</tr> if($currUser->getQuota() != 0)
<tr> echo SeedDMS_Core_File::format_filesize($currUser->getQuota())."<br />";
<td><?php printMLText("user_image");?>:</td> echo SeedDMS_Core_File::format_filesize($currUser->getUsedDiskSpace())."<br />";
<td> echo "</td>";
<?php echo "<td>";
if ($currUser->hasImage()) echo "<a href=\"../out/out.UsrMgr.php?userid=".$currUser->getID()."\"><i class=\"icon-edit\"></i></a> ";
print "<img src=\"".$httproot . "out/out.UserImage.php?userid=".$currUser->getId()."\">"; echo "<a href=\"../out/out.RemoveUser.php?userid=".$currUser->getID()."\"><i class=\"icon-remove\"></i></a>";
else echo "</td>";
printMLText("no_user_image"); echo "</tr>";
?>
</td>
</tr>
</table>
<?php
} }
echo "</table>";
$this->contentContainerEnd(); $this->contentContainerEnd();
$this->htmlEndPage(); $this->htmlEndPage();