master
Phoenix Eve Aspacio 2017-02-26 14:13:34 +08:00 committed by GitHub
parent 63bba4fa4c
commit ee1a66b0a8
1 changed files with 32 additions and 8 deletions

View File

@ -146,6 +146,7 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
</thead> </thead>
<tbody> <tbody>
<?php <?php
if (!empty($domains)) {
foreach (mailbox_get_domains() as $domain) { foreach (mailbox_get_domains() as $domain) {
$mailboxes = mailbox_get_mailboxes($domain); $mailboxes = mailbox_get_mailboxes($domain);
if (!empty($mailboxes)) { if (!empty($mailboxes)) {
@ -185,6 +186,11 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
<tr id="no-data"><td colspan="999" style="text-align: center; font-style: italic;"><?=sprintf($lang['mailbox']['no_record'], $domain);?></td></tr> <tr id="no-data"><td colspan="999" style="text-align: center; font-style: italic;"><?=sprintf($lang['mailbox']['no_record'], $domain);?></td></tr>
<?php <?php
} }
}
} else {
?>
<tr id="no-data"><td colspan="999" style="text-align: center; font-style: italic;">Add a domain first</td></tr>
<?php
} }
?> ?>
</tbody> </tbody>
@ -229,6 +235,7 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
</thead> </thead>
<tbody> <tbody>
<?php <?php
if (!empty($domains)) {
foreach (mailbox_get_domains() as $domain) { foreach (mailbox_get_domains() as $domain) {
$resources = mailbox_get_resources($domain); $resources = mailbox_get_resources($domain);
if (!empty($resources)) { if (!empty($resources)) {
@ -256,6 +263,11 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
<tr id="no-data"><td colspan="999" style="text-align: center; font-style: italic;"><?=sprintf($lang['mailbox']['no_record'], $domain);?></td></tr> <tr id="no-data"><td colspan="999" style="text-align: center; font-style: italic;"><?=sprintf($lang['mailbox']['no_record'], $domain);?></td></tr>
<?php <?php
} }
}
} else {
?>
<tr id="no-data"><td colspan="999" style="text-align: center; font-style: italic;">Add a domain first</td></tr>
<?php
} }
?> ?>
</tbody> </tbody>
@ -298,6 +310,7 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
</thead> </thead>
<tbody> <tbody>
<?php <?php
if (!empty($domains)) {
foreach (mailbox_get_domains() as $domain) { foreach (mailbox_get_domains() as $domain) {
$alias_domains = mailbox_get_alias_domains($domain); $alias_domains = mailbox_get_alias_domains($domain);
if (!empty($alias_domains)) { if (!empty($alias_domains)) {
@ -323,6 +336,11 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
<tr id="no-data"><td colspan="999" style="text-align: center; font-style: italic;"><?=sprintf($lang['mailbox']['no_record'], $domain);?></td></tr> <tr id="no-data"><td colspan="999" style="text-align: center; font-style: italic;"><?=sprintf($lang['mailbox']['no_record'], $domain);?></td></tr>
<?php <?php
} }
}
} else {
?>
<tr id="no-data"><td colspan="999" style="text-align: center; font-style: italic;">Add a domain first</td></tr>
<?php
} }
?> ?>
</tbody> </tbody>
@ -367,6 +385,7 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
</thead> </thead>
<tbody> <tbody>
<?php <?php
if (!empty($domains)) {
foreach (array_merge(mailbox_get_domains(), mailbox_get_alias_domains()) as $domain) { foreach (array_merge(mailbox_get_domains(), mailbox_get_alias_domains()) as $domain) {
$aliases = mailbox_get_aliases($domain); $aliases = mailbox_get_aliases($domain);
if (!empty($aliases)) { if (!empty($aliases)) {
@ -401,6 +420,11 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
<tr id="no-data"><td colspan="999" style="text-align: center; font-style: italic;"><?=sprintf($lang['mailbox']['no_record'], $domain);?></td></tr> <tr id="no-data"><td colspan="999" style="text-align: center; font-style: italic;"><?=sprintf($lang['mailbox']['no_record'], $domain);?></td></tr>
<?php <?php
} }
}
} else {
?>
<tr id="no-data"><td colspan="999" style="text-align: center; font-style: italic;">Add a domain first</td></tr>
<?php
} }
?> ?>
</tbody> </tbody>