List active/inactive accounts on admin.php

This commit is contained in:
Victor LABORIE 2017-12-15 23:00:51 +01:00
parent bb37f0010b
commit 4051c294fb

View file

@ -78,6 +78,7 @@ if (!empty($_POST['delete'])) {
<thead>
<tr>
<th><strong>Nom du compte</strong></th>
<th width="80px">Actif</th>
<th>Quota</th>
<th width="50px">Suppr</th>
</tr>
@ -88,6 +89,11 @@ if (!empty($_POST['delete'])) {
$accounts = $domain->getAccounts();
foreach ($accounts as $account) {
print '<tr><td style="text-align:left;"><a href="compte.php?domain='.$domain->getName().'&account='.$account->getUid().'">' .$account->getName().' &lt;'.$account->getUid().'&gt;</a></td>';
if ($account->isActive()) {
print '<td>Oui</td>';
} else {
print '<td>Non</td>';
}
print '<td>' .getquota($account->getUid(),'user'). '</td>';
print '<td><button type="submit" name="account" value="'.$account->getUid().'"><span class="glyphicon glyphicon-trash"></span></button></td>';
print '</tr>';