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,28 +63,30 @@ if ($fatal) {
if (!empty($error)) { echo "<p class='alert alert-danger'>$error</p>"; } if (!empty($error)) { echo "<p class='alert alert-danger'>$error</p>"; }
?> ?>
<table><tr> <table>
<?php <tr>
// Mail creation form <td colspan=2>
if ($quota->cancreate("mail")) { <?php if ($quota->cancreate("mail")) {
?> echo '<h3>'._("Create a new mail account")."</h3>";
<td> } else {
<h3><?php __("Create a new mail account");?></h3> echo '<h3>'._("Manage Catch-all")."</h3>";
<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> </td>
<input type="hidden" name="domain_id" value="<?php echo $domain_id;?>" /> </tr>
<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."));?>');" /> <tr>
<?php }?> <td>
<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")) { ?> <?php if ($quota->cancreate("mail")) { ?>
</form> <form method="post" action="mail_doadd.php" id="main" name="mail_create">
</td> <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>
<?php <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."));?>');" />
?> </form>
<td valign='bottom'> <?php } // $quota->cancreate("mail") ?>
</td> </td>
</tr> <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> </table>
<br /> <br />