list-virtual_mailbox.tpl 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. {if isset($search._)}
  2. {assign var="search" value=$search._}
  3. {else}
  4. {assign var="search" value=''}
  5. {/if}
  6. {#tr_header#}
  7. {if $CONF.show_status===YES}<td></td>{/if}
  8. <td>{$PALANG.pOverview_mailbox_username}</td>
  9. {if $display_mailbox_aliases==true}
  10. <td>{$PALANG.to}</td>
  11. {/if}
  12. <td>{$PALANG.name}</td>
  13. {if $CONF.quota===YES}<td>{$PALANG.pOverview_mailbox_quota}</td>{/if}
  14. <td>{$PALANG.last_modified}</td>
  15. <td>{$PALANG.active}</td>
  16. {assign var="colspan" value="`$colspan-6`"}
  17. <td colspan="{$colspan}">&nbsp;</td>
  18. </tr>
  19. {foreach from=$tMailbox item=item key=i}
  20. {#tr_hilightoff#}
  21. {if $CONF.show_status===YES}
  22. <td>{$gen_show_status_mailbox[$i]}</td>
  23. {/if}
  24. <td>
  25. {if $search eq ""}
  26. {$item.username}
  27. {else}
  28. {$item.username|replace:$search:"<span class='searchresult'>$search</span>"}
  29. {/if}
  30. </td>
  31. {if $display_mailbox_aliases==true}
  32. <td>
  33. {if $item.goto_mailbox == 1}
  34. Mailbox<br/>
  35. {else}
  36. Forward only<br/>
  37. {/if}
  38. {foreach from=$item.goto_other item=item2 key=j}
  39. {if $search eq ""}
  40. {$item2}
  41. {else}
  42. {$item2|replace:$search:"<span class='searchresult'>$search</span>"}
  43. {/if}
  44. <br/>
  45. {/foreach}
  46. </td>
  47. {/if}
  48. <td>{$item.name}</td>
  49. {if $CONF.quota===YES}
  50. <td>
  51. {if $item.quota==0}
  52. {$PALANG.pOverview_unlimited}
  53. {elseif $item.quota<0}
  54. {$PALANG.pOverview_disabled}
  55. {else}
  56. {if $boolconf_used_quotas}
  57. {if $divide_quota.quota_width[$i]>90}
  58. {assign var="quota_level" value="high"}
  59. {elseif $divide_quota.quota_width[$i]>55}
  60. {assign var="quota_level" value="mid"}
  61. {else}
  62. {assign var="quota_level" value="low"}
  63. {/if}
  64. <div class="quota quota_{$quota_level}" style="width:{$divide_quota.quota_width[$i]}px;"></div>
  65. <div class="quota_bg"></div></div>
  66. <div class="quota_text quota_text_{$quota_level}">{$divide_quota.current[$i]} / {$divide_quota.quota[$i]}</div>
  67. {else}
  68. {$divide_quota.quota[$i]}
  69. {/if}
  70. {/if}
  71. </td>
  72. {/if}
  73. <td>{$item.modified}</td>
  74. <td><a href="{#url_editactive#}mailbox&amp;id={$item.username|escape:"url"}&amp;active={if ($item.active==0)}1{else}0{/if}&amp;token={$smarty.session.PFA_token|escape:"url"}"
  75. >{if $item.active==1}{$PALANG.YES}{else}{$PALANG.NO}{/if}</a></td>
  76. {if $CONF.vacation_control_admin===YES && $CONF.vacation===YES}
  77. {if $item.v_active!==-1}
  78. {if $item.v_active==1}
  79. {assign var="v_active" value=$PALANG.pOverview_vacation_edit}
  80. {else}
  81. {assign var="v_active" value=$PALANG.pOverview_vacation_option}
  82. {/if}
  83. <td><a href="vacation.php?username={$item.username|escape:"url"}">{$v_active}</a></td>
  84. {/if}
  85. {else}
  86. <td>&nbsp;</td>
  87. {/if}
  88. {assign var="edit_aliases" value=0}
  89. {if $authentication_has_role.global_admin!==true && $CONF.alias_control_admin===YES}{assign var="edit_aliases" value=1}{/if}
  90. {if $authentication_has_role.global_admin==true && $CONF.alias_control===YES}{assign var="edit_aliases" value=1}{/if}
  91. {if $edit_aliases==1}
  92. <td><a href="edit.php?table=alias&amp;edit={$item.username|escape:"url"}">{$PALANG.alias}</a></td>
  93. {/if}
  94. <td><a href="edit.php?table=mailbox&amp;edit={$item.username|escape:"url"}">{$PALANG.edit}</a></td>
  95. <td><a href="delete.php?table=mailbox&amp;delete={$item.username|escape:"url"}&amp;token={$smarty.session.PFA_token|escape:"url"}"
  96. onclick="return confirm ('{$PALANG.confirm}{$PALANG.mailboxes}: {$item.username}');">{$PALANG.del}</a></td>
  97. </tr>
  98. {/foreach}
  99. </table>