123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- {if isset($search._)}
- {assign var="search" value=$search._}
- {else}
- {assign var="search" value=''}
- {/if}
-
- {#tr_header#}
- {if $CONF.show_status===YES}<td></td>{/if}
- <td>{$PALANG.pOverview_mailbox_username}</td>
- {if $display_mailbox_aliases==true}
- <td>{$PALANG.to}</td>
- {/if}
- <td>{$PALANG.name}</td>
- {if $CONF.quota===YES}<td>{$PALANG.pOverview_mailbox_quota}</td>{/if}
- <td>{$PALANG.last_modified}</td>
- <td>{$PALANG.active}</td>
- {assign var="colspan" value="`$colspan-6`"}
- <td colspan="{$colspan}"> </td>
- </tr>
- {foreach from=$tMailbox item=item key=i}
- {#tr_hilightoff#}
- {if $CONF.show_status===YES}
- <td>{$gen_show_status_mailbox[$i]}</td>
- {/if}
- <td>
- {if $search eq ""}
- {$item.username}
- {else}
- {$item.username|replace:$search:"<span class='searchresult'>$search</span>"}
- {/if}
- </td>
- {if $display_mailbox_aliases==true}
- <td>
- {if $item.goto_mailbox == 1}
- Mailbox<br/>
- {else}
- Forward only<br/>
- {/if}
- {foreach from=$item.goto_other item=item2 key=j}
- {if $search eq ""}
- {$item2}
- {else}
- {$item2|replace:$search:"<span class='searchresult'>$search</span>"}
- {/if}
- <br/>
- {/foreach}
- </td>
- {/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}
- {if $boolconf_used_quotas}
-
-
- {if $divide_quota.quota_width[$i]>90}
- {assign var="quota_level" value="high"}
- {elseif $divide_quota.quota_width[$i]>55}
- {assign var="quota_level" value="mid"}
- {else}
- {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>
- {else}
- {$divide_quota.quota[$i]}
- {/if}
- {/if}
- </td>
- {/if}
- <td>{$item.modified}</td>
- <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"}"
- >{if $item.active==1}{$PALANG.YES}{else}{$PALANG.NO}{/if}</a></td>
- {if $CONF.vacation_control_admin===YES && $CONF.vacation===YES}
- {if $item.v_active!==-1}
- {if $item.v_active==1}
- {assign var="v_active" value=$PALANG.pOverview_vacation_edit}
- {else}
- {assign var="v_active" value=$PALANG.pOverview_vacation_option}
- {/if}
- <td><a href="vacation.php?username={$item.username|escape:"url"}">{$v_active}</a></td>
- {/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}
- <td><a href="edit.php?table=alias&edit={$item.username|escape:"url"}">{$PALANG.alias}</a></td>
- {/if}
- <td><a href="edit.php?table=mailbox&edit={$item.username|escape:"url"}">{$PALANG.edit}</a></td>
- <td><a href="delete.php?table=mailbox&delete={$item.username|escape:"url"}&token={$smarty.session.PFA_token|escape:"url"}"
- onclick="return confirm ('{$PALANG.confirm}{$PALANG.mailboxes}: {$item.username}');">{$PALANG.del}</a></td>
- </tr>
- {/foreach}
- </table>
|