Probleme d'affichage sur la page de gestion des mails quand le quota de mail été plein

This commit is contained in:
Alan Garcia 2014-02-28 15:05:36 +00:00
parent 46ed6b2cb1
commit 8fde9a58a2
1 changed files with 23 additions and 21 deletions

View File

@ -63,26 +63,28 @@ if ($fatal) {
if (!empty($error)) { echo "<p class='alert alert-danger'>$error</p>"; }
?>
<table><tr>
<?php
// Mail creation form
if ($quota->cancreate("mail")) {
?>
<table>
<tr>
<td colspan=2>
<?php if ($quota->cancreate("mail")) {
echo '<h3>'._("Create a new mail account")."</h3>";
} else {
echo '<h3>'._("Manage Catch-all")."</h3>";
} ?>
</td>
</tr>
<tr>
<td>
<h3><?php __("Create a new mail account");?></h3>
<?php if ($quota->cancreate("mail")) { ?>
<form method="post" action="mail_doadd.php" id="main" name="mail_create">
<input type="text" class="int intleft" style="text-align: right" name="mail_arg" value="<?php ehe($mail_arg); ?>" size="32" id="mail_arg" maxlength="255" /><span id="emaildom" class="int intright"><?php echo "@".$domain; ?></span>
<input type="hidden" name="domain_id" value="<?php echo $domain_id;?>" />
<input type="submit" name="submit" class="inb add" value="<?php __("Create this email address"); ?>" onClick="return false_if_empty('mail_arg', '<?php echo addslashes(_("Can't have empty mail."));?>');" />
<?php }?>
<span class="inb configure"><a href="mail_manage_catchall.php?domain_id=<?php echo $domain_id?>"><?php __("Manage Catch-all for this domain");?></a></span>
<?php if ($quota->cancreate("mail")) { ?>
</form>
<?php } // $quota->cancreate("mail") ?>
</td>
<?php
}
?>
<td valign='bottom'>
<td>
<span class="inb configure" valign='bottom'><a href="mail_manage_catchall.php?domain_id=<?php echo $domain_id?>"><?php __("Manage Catch-all for this domain");?></a></span>
</td>
</tr>
</table>