2015-04-06 16:17:25 +02:00
|
|
|
{if isset($search._)}
|
|
|
|
{assign var="search" value=$search._}
|
|
|
|
{else}
|
|
|
|
{assign var="search" value=''}
|
|
|
|
{/if}
|
|
|
|
|
2020-09-28 21:32:57 +02:00
|
|
|
<thead>
|
2009-11-05 15:55:39 +01:00
|
|
|
{#tr_header#}
|
2020-09-28 21:32:57 +02:00
|
|
|
{if $CONF.show_status===YES}<th></th>{/if}
|
|
|
|
<th>{$PALANG.pOverview_mailbox_username}</th>
|
2009-11-05 15:55:39 +01:00
|
|
|
{if $display_mailbox_aliases==true}
|
2020-09-28 21:32:57 +02:00
|
|
|
<th>{$PALANG.to}</th>
|
2009-11-05 15:55:39 +01:00
|
|
|
{/if}
|
2020-09-28 21:32:57 +02:00
|
|
|
<th>{$PALANG.name}</th>
|
|
|
|
{if $CONF.quota===YES}<th>{$PALANG.pOverview_mailbox_quota}</th>{/if}
|
|
|
|
<th>{$PALANG.last_modified}</th>
|
|
|
|
<th>{$PALANG.active}</th>
|
2009-11-05 15:55:39 +01:00
|
|
|
{assign var="colspan" value="`$colspan-6`"}
|
2020-09-28 21:32:57 +02:00
|
|
|
<th colspan="{$colspan}"> </th>
|
2009-11-05 15:55:39 +01:00
|
|
|
</tr>
|
2020-09-28 21:32:57 +02:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2009-11-05 15:55:39 +01:00
|
|
|
{foreach from=$tMailbox item=item key=i}
|
2020-09-28 21:32:57 +02:00
|
|
|
<tr>
|
2009-11-05 15:55:39 +01:00
|
|
|
{if $CONF.show_status===YES}
|
|
|
|
<td>{$gen_show_status_mailbox[$i]}</td>
|
|
|
|
{/if}
|
2010-09-27 01:14:42 +02:00
|
|
|
<td>
|
|
|
|
{if $search eq ""}
|
|
|
|
{$item.username}
|
|
|
|
{else}
|
|
|
|
{$item.username|replace:$search:"<span class='searchresult'>$search</span>"}
|
|
|
|
{/if}
|
|
|
|
</td>
|
2009-11-05 15:55:39 +01:00
|
|
|
{if $display_mailbox_aliases==true}
|
|
|
|
<td>
|
2010-09-27 01:14:42 +02:00
|
|
|
{if $item.goto_mailbox == 1}
|
|
|
|
Mailbox<br/>
|
|
|
|
{else}
|
|
|
|
Forward only<br/>
|
|
|
|
{/if}
|
2009-11-05 15:55:39 +01:00
|
|
|
{foreach from=$item.goto_other item=item2 key=j}
|
2010-09-27 01:14:42 +02:00
|
|
|
{if $search eq ""}
|
|
|
|
{$item2}
|
|
|
|
{else}
|
|
|
|
{$item2|replace:$search:"<span class='searchresult'>$search</span>"}
|
|
|
|
{/if}
|
|
|
|
<br/>
|
2009-11-05 15:55:39 +01:00
|
|
|
{/foreach}
|
2009-11-22 14:49:58 +01:00
|
|
|
</td>
|
2009-11-05 15:55:39 +01:00
|
|
|
{/if}
|
|
|
|
<td>{$item.name}</td>
|
|
|
|
{if $CONF.quota===YES}
|
|
|
|
<td>
|
|
|
|
{if $item.quota==0}
|
|
|
|
{$PALANG.pOverview_unlimited}
|
|
|
|
{elseif $item.quota<0}
|
|
|
|
{$PALANG.pOverview_disabled}
|
|
|
|
{else}
|
2009-11-22 14:49:58 +01:00
|
|
|
{if $boolconf_used_quotas}
|
2011-08-08 20:39:03 +02:00
|
|
|
|
2019-07-19 22:38:03 +02:00
|
|
|
|
|
|
|
{if $divide_quota.percent[$i] > $CONF.quota_level_high_pct}
|
2011-08-08 20:39:03 +02:00
|
|
|
{assign var="quota_level" value="high"}
|
2019-07-19 22:38:03 +02:00
|
|
|
{elseif $divide_quota.percent[$i] > $CONF.quota_level_med_pct}
|
2011-08-08 20:39:03 +02:00
|
|
|
{assign var="quota_level" value="mid"}
|
2019-07-19 22:38:03 +02:00
|
|
|
{else}
|
2011-08-08 20:39:03 +02:00
|
|
|
{assign var="quota_level" value="low"}
|
|
|
|
{/if}
|
|
|
|
<div class="quota quota_{$quota_level}" style="width:{$divide_quota.quota_width[$i]}px;"></div>
|
|
|
|
<div class="quota_bg"></div></div>
|
|
|
|
<div class="quota_text quota_text_{$quota_level}">{$divide_quota.current[$i]} / {$divide_quota.quota[$i]}</div>
|
2014-05-19 00:30:21 +02:00
|
|
|
{else}
|
|
|
|
{$divide_quota.quota[$i]}
|
2009-11-22 14:49:58 +01:00
|
|
|
{/if}
|
2009-11-05 15:55:39 +01:00
|
|
|
{/if}
|
|
|
|
</td>
|
|
|
|
{/if}
|
|
|
|
<td>{$item.modified}</td>
|
2013-11-10 23:22:22 +01:00
|
|
|
<td><a href="{#url_editactive#}mailbox&id={$item.username|escape:"url"}&active={if ($item.active==0)}1{else}0{/if}&token={$smarty.session.PFA_token|escape:"url"}"
|
2013-04-01 22:25:33 +02:00
|
|
|
>{if $item.active==1}{$PALANG.YES}{else}{$PALANG.NO}{/if}</a></td>
|
2009-11-05 15:55:39 +01:00
|
|
|
{if $CONF.vacation_control_admin===YES && $CONF.vacation===YES}
|
|
|
|
{if $item.v_active!==-1}
|
|
|
|
{if $item.v_active==1}
|
2010-09-27 01:14:42 +02:00
|
|
|
{assign var="v_active" value=$PALANG.pOverview_vacation_edit}
|
2009-11-05 15:55:39 +01:00
|
|
|
{else}
|
2010-09-27 01:14:42 +02:00
|
|
|
{assign var="v_active" value=$PALANG.pOverview_vacation_option}
|
2009-11-05 15:55:39 +01:00
|
|
|
{/if}
|
2021-01-07 20:39:49 +01:00
|
|
|
<td><a class="btn btn-warning" href="vacation.php?username={$item.username|escape:"url"}">{$v_active}</a></td>
|
2009-11-05 15:55:39 +01:00
|
|
|
{/if}
|
|
|
|
{else}
|
|
|
|
<td> </td>
|
|
|
|
{/if}
|
|
|
|
{assign var="edit_aliases" value=0}
|
|
|
|
{if $authentication_has_role.global_admin!==true && $CONF.alias_control_admin===YES}{assign var="edit_aliases" value=1}{/if}
|
|
|
|
{if $authentication_has_role.global_admin==true && $CONF.alias_control===YES}{assign var="edit_aliases" value=1}{/if}
|
|
|
|
{if $edit_aliases==1}
|
2021-01-07 20:39:49 +01:00
|
|
|
<td><a class="btn btn-primary" href="edit.php?table=alias&edit={$item.username|escape:"url"}">{$PALANG.alias}</a></td>
|
2009-11-05 15:55:39 +01:00
|
|
|
{/if}
|
2021-01-07 20:39:49 +01:00
|
|
|
<td><a class="btn btn-primary" href="edit.php?table=mailbox&edit={$item.username|escape:"url"}">{$PALANG.edit}</a></td>
|
2020-09-28 21:32:57 +02:00
|
|
|
<td>
|
|
|
|
<form method="post" action="delete.php">
|
|
|
|
<input type="hidden" name="table" value="mailbox">
|
|
|
|
<input type="hidden" name="delete" value="{$item.username|escape:"quotes"}">
|
|
|
|
<input type="hidden" name="token" value="{$smarty.session.PFA_token|escape:"quotes"}">
|
|
|
|
<button type="submit" class="btn btn-danger" onclick="return confirm ('{$PALANG.confirm}{$PALANG.mailboxes}: {$item.username}');">
|
|
|
|
{$PALANG.del}
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</td>
|
2009-11-05 15:55:39 +01:00
|
|
|
</tr>
|
|
|
|
{/foreach}
|
2020-09-28 21:32:57 +02:00
|
|
|
</tbody>
|
2009-11-05 15:55:39 +01:00
|
|
|
</table>
|