mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-20 11:38:42 +02:00
e079e85461
- new, small script to change the 'active' status - also include CSRF protection token edit.php: - remove handling of 'active' to make it more readable *list*.tpl: - change links to use editactive.php, add CSRF token configs/menu.conf - add url_editactive git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1566 a1433add-5e2c-0410-b055-b7f2511e0802
45 lines
2.0 KiB
Smarty
45 lines
2.0 KiB
Smarty
<div id="overview">
|
|
<form name="frmOverview" method="post" action="">
|
|
<select name="fUsername" onchange="this.form.submit();">
|
|
{$select_options}
|
|
</select>
|
|
<input class="button" type="submit" name="go" value="{$PALANG.go}" />
|
|
</form>
|
|
{#form_search#}
|
|
</div>
|
|
{if $domain_properties}
|
|
<table id="admin_table">
|
|
{#tr_header#}
|
|
<td>{$PALANG.domain}</td>
|
|
<td>{$PALANG.description}</td>
|
|
<td>{$PALANG.aliases}</td>
|
|
<td>{$PALANG.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}
|
|
{if $CONF.transport==YES}<td>{$PALANG.transport}</td>{/if}
|
|
<td>{$PALANG.pAdminList_domain_backupmx}</td>
|
|
<td>{$PALANG.last_modified}</td>
|
|
<td>{$PALANG.active}</td>
|
|
<td colspan="2"> </td>
|
|
</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.description}</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}
|
|
{if $CONF.transport==YES}<td>{$domain.transport}</td>{/if}
|
|
<td>{$domain._backupmx}</td>
|
|
<td>{$domain.modified}</td>
|
|
<td><a href="{#url_editactive#}domain&id={$domain.domain|escape:"url"}&active={if ($domain.active==0)}1{else}0{/if}&token={$smarty.session.PFA_token|escape:"url"}">{$domain._active}</a></td>
|
|
<td><a href="{#url_edit_domain#}&edit={$domain.domain|escape:"url"}">{$PALANG.edit}</a></td>
|
|
<td><a href="{#url_delete#}?table=domain&delete={$domain.domain|escape:"url"}&token={$smarty.session.PFA_token|escape:"url"}"
|
|
onclick="return confirm ('{$PALANG.confirm_domain}{$PALANG.domain}: {$domain.domain}')">{$PALANG.del}</a></td>
|
|
</tr>
|
|
{/foreach}
|
|
</table>
|
|
{/if}
|
|
<br /><a href="{#url_edit_domain#}" class="button">{$PALANG.pAdminMenu_create_domain}</a><br />
|