mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-20 03:36:20 +02:00
af6a1b6626
Based on a patch from W. Rossmann (W. Rossmann@SF), https://sourceforge.net/tracker/index.php?func=detail&aid=2974928&group_id=191583&atid=937966 with some modifications, cleanup and adoptions to trunk (especially templates) config.inc.php: - new config option $CONF['domain_quota'] to enable/disable domain-level quota (default: enabled) - new config option $CONF['domain_quota_default'] (default: 2 GB) functions.inc.php - check_quota(): - add code to check the quota sum on a domain - add optional parameter $username (to exclude that username from quota calculation, used by edit-mailbox) edit-domain.php, create-domain.php, admin_edit-domain.tpl, admin_create-domain.tpl: - add input field and handling for domain-level quota list-domain.php, overview-get.tpl, adminlistdomain.tpl: - display allocated and allowed domain quota - beautify quota and max_quota fields - display "unlimited" instead of "-1" edit-mailbox.php: - hand over username to check_quota() git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1042 a1433add-5e2c-0410-b055-b7f2511e0802
31 lines
1.1 KiB
Smarty
31 lines
1.1 KiB
Smarty
<div id="overview">
|
|
<form name="frmOverview" method="get" action="">
|
|
<select class="flat" name="domain" onchange="this.form.submit();">
|
|
{$select_options}
|
|
</select>
|
|
<input class="button" type="submit" name="go" value="{$PALANG.pOverview_button}" />
|
|
</form>
|
|
{#form_search#}
|
|
</div>
|
|
<table id="overview_table">
|
|
<tr>
|
|
<td colspan="5"><h3>{$PALANG.pOverview_title}</h3></td>
|
|
</tr>
|
|
{#tr_header#}
|
|
<td>{$PALANG.pOverview_get_domain}</td>
|
|
<td>{$PALANG.pOverview_get_aliases}</td>
|
|
<td>{$PALANG.pOverview_get_mailboxes}</td>
|
|
{if $CONF.quota===YES}<td>{$PALANG.pOverview_get_quota}</td>{/if}
|
|
{if $CONF.domain_quota===YES}<td>{$PALANG.pAdminList_domain_quota}</td>{/if}
|
|
</tr>
|
|
{foreach from=$domain_properties item=domain}
|
|
{#tr_hilightoff#}
|
|
<td><a href="{#url_list_virtual#}?domain={$domain.domain|escape:"url"}">{$domain.domain}</a></td>
|
|
<td>{$domain.alias_count} / {$domain.aliases}</td>
|
|
<td>{$domain.mailbox_count} / {$domain.mailboxes}</td>
|
|
{if $CONF.quota===YES}<td>{$domain.maxquota}</td>{/if}
|
|
{if $CONF.domain_quota===YES}<td>{$domain.total_quota} / {$domain.quota}</td>{/if}
|
|
</tr>
|
|
{/foreach}
|
|
</table>
|