You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
4.2 KiB
Smarty
102 lines
4.2 KiB
Smarty
7 years ago
|
{assign var="file" value=$smarty.config.url_list_virtual}
|
||
|
<div id="overview" class="panel panel-default">
|
||
|
<div class="panel-heading"><div class="row">
|
||
|
<div class="col-md-5">
|
||
|
<form name="frmOverview" method="get" action="{$smarty.config.url_list_virtual}">
|
||
|
{html_options name='domain' class='form-control' output=$domain_list values=$domain_list selected=$domain_selected onchange="this.form.submit();"}
|
||
|
<input type="hidden" name="limit" value="0" />
|
||
|
<noscript><input class="button" type="submit" name="go" value="{$PALANG.go}" /></noscript>
|
||
|
</form>
|
||
|
</div>
|
||
|
<div class="col-md-5 col-md-offset-2 text-right">{#form_search#}</div>
|
||
|
</div></div>
|
||
|
<div class="panel-body">
|
||
|
<div class="text-center">
|
||
|
{if isset($search._)}
|
||
|
<h4>{$PALANG.pSearch_welcome} {$search._}</h4>
|
||
|
{else}
|
||
|
<h4>{$PALANG.pOverview_welcome}{$fDomain} :</h4>
|
||
|
<ul>
|
||
|
<li>{$PALANG.aliases}: {$limit.alias_count} / {$limit.aliases}</li>
|
||
|
<li>{$PALANG.mailboxes}: {$limit.mailbox_count} / {$limit.mailboxes}</li>
|
||
|
</ul>
|
||
|
{/if}
|
||
|
</div>
|
||
|
<hr/>
|
||
|
<div class="row"><div class="col-md-12 text-center">{$PALANG.show}
|
||
|
{if isset($search._)}
|
||
|
{assign var="searchsuffix" value="&search[_]={$search._}"}
|
||
|
{else}
|
||
|
{assign var="searchsuffix" value=""}
|
||
|
{/if}
|
||
|
|
||
|
{if $tab=='all'}<span class='active'>{$PALANG.all}</span>
|
||
|
{else}<a href="?domain={$smarty.get.domain}&tab=all{$searchsuffix}">{$PALANG.all}</a>{/if}
|
||
|
{if $tab=='mailbox'}<span class='active'>{$PALANG.pOverview_mailbox_title}</span>
|
||
|
{else}<a href="?domain={$smarty.get.domain}&tab=mailbox{$searchsuffix}">{$PALANG.pOverview_mailbox_title}</a>{/if}
|
||
|
{if $tab=='alias'}<span class='active'>{$PALANG.pOverview_alias_title}</span>
|
||
|
{else}<a href="?domain={$smarty.get.domain}&tab=alias{$searchsuffix}">{$PALANG.pOverview_alias_title}</a>{/if}
|
||
|
{if $boolconf_alias_domain}
|
||
|
{if $tab=='alias_domain'}<span class='active'>{$PALANG.pOverview_alias_domain_title}</span>
|
||
|
{else}<a href="?domain={$smarty.get.domain}&tab=alias_domain{$searchsuffix}">{$PALANG.pOverview_alias_domain_title}</a>{/if}
|
||
|
{/if}
|
||
|
</div></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="clearfix"></div><br/>
|
||
|
{*** Domain Aliases ***}
|
||
|
{if $boolconf_alias_domain}
|
||
|
{if $tab=='alias_domain' || $tab=='all'}
|
||
|
{include file="list-virtual_alias_domain.tpl"}
|
||
|
{/if}
|
||
|
{/if}
|
||
|
{if $tab=='all'}<div class="clearfix"></div><br/>{/if}
|
||
|
{*** Aliases ***}
|
||
|
{if $tab=='alias' || $tab=='all'}
|
||
|
{$nav_bar_alias.top}
|
||
|
{include file="list-virtual_alias.tpl"}
|
||
|
{$nav_bar_alias.bottom}
|
||
|
{/if}
|
||
|
{if $tab=='all'}<div class="clearfix"></div><br/>{/if}
|
||
|
{if $tab=='mailbox' || $tab=='all'}
|
||
|
<div id="overview" class="panel panel-default">
|
||
|
{$nav_bar_mailbox.top}
|
||
|
{assign var="colspan" value=9}
|
||
|
{if $CONF.vacation_control_admin===YES}{assign var="colspan" value="`$colspan+1`"}{/if}
|
||
|
{if $CONF.alias_control_admin===YES}{assign var="colspan" value="`$colspan+1`"}{/if}
|
||
|
<table class="table table-hover" id="mailbox_table">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th style="text-align:center;" colspan="{$colspan}">{$PALANG.pOverview_mailbox_title}</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
{if $tMailbox}
|
||
|
{include file="list-virtual_mailbox.tpl"}
|
||
|
{else}</table>
|
||
|
{/if}
|
||
|
<div class="panel-footer">
|
||
|
<div class="btn-toolbar" role="toolbar">
|
||
|
<div class="btn-group pull-right">
|
||
|
{$nav_bar_mailbox.bottom}
|
||
|
{if $tCanAddMailbox}
|
||
|
<a href="{#url_create_mailbox#}&domain={$fDomain|escape:"url"}" role="button" class="btn btn-default"><span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span> {$PALANG.add_mailbox}</a>
|
||
|
{/if}
|
||
|
<a role="button" class="btn btn-default" href="list.php?table=mailbox&output=csv"><span class="glyphicon glyphicon-export" aria-hidden="true"></span> {$PALANG.download_csv}</a>
|
||
|
</div></div></div>
|
||
|
</div>
|
||
|
{/if}
|
||
|
{if $CONF.show_status===YES && $CONF.show_status_key===YES}
|
||
|
<br/><br/>
|
||
|
{if $CONF.show_undeliverable===YES}
|
||
|
<span style='background-color:{$CONF.show_undeliverable_color};'>{$CONF.show_status_text}</span>={$PALANG.pStatus_undeliverable}
|
||
|
{/if}
|
||
|
{if $CONF.show_popimap===YES}
|
||
|
<span style='background-color:{$CONF.show_popimap_color};'>{$CONF.show_status_text}</span>={$PALANG.pStatus_popimap}
|
||
|
{/if}
|
||
|
{if $CONF.show_custom_domains|@count>0}
|
||
|
{foreach from=$CONF.show_custom_domains item=item key=i}
|
||
|
<span style='background-color:{$CONF.show_custom_colors[$i]};'>{$CONF.show_status_text}</span>={$PALANG.pStatus_custom}{$item}
|
||
|
{/foreach}
|
||
|
{/if}
|
||
|
{/if}
|