You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

list-virtual.tpl 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {assign var="file" value=$smarty.config.url_list_virtual}
  2. <div id="overview">
  3. <form name="frmOverview" method="get" action="{$smarty.config.url_list_virtual}">
  4. {html_options name='domain' output=$domain_list values=$domain_list selected=$domain_selected onchange="this.form.submit();"}
  5. <input type="hidden" name="limit" value="0" />
  6. <noscript><input class="button" type="submit" name="go" value="{$PALANG.go}" /></noscript>
  7. </form>
  8. {if isset($search._)}
  9. <h4>{$PALANG.pSearch_welcome} {$search._}</h4>
  10. {else}
  11. <h4>{$PALANG.pOverview_welcome}{$fDomain}</h4>
  12. <p>{$PALANG.aliases}: {$limit.alias_count} / {$limit.aliases}</p>
  13. <p>{$PALANG.mailboxes}: {$limit.mailbox_count} / {$limit.mailboxes}</p>
  14. {/if}
  15. {#form_search#}
  16. </div>
  17. <div class='subnav'><p>{$PALANG.show}
  18. {if isset($search._)}
  19. {assign var="searchsuffix" value="&search[_]={$search._}"}
  20. {else}
  21. {assign var="searchsuffix" value=""}
  22. {/if}
  23. {if $tab=='all'}<span class='active'>{$PALANG.all}</span>
  24. {else}<a href="?domain={$smarty.get.domain}&amp;tab=all{$searchsuffix}">{$PALANG.all}</a>{/if}
  25. {if $tab=='mailbox'}<span class='active'>{$PALANG.pOverview_mailbox_title}</span>
  26. {else}<a href="?domain={$smarty.get.domain}&amp;tab=mailbox{$searchsuffix}">{$PALANG.pOverview_mailbox_title}</a>{/if}
  27. {if $tab=='alias'}<span class='active'>{$PALANG.pOverview_alias_title}</span>
  28. {else}<a href="?domain={$smarty.get.domain}&amp;tab=alias{$searchsuffix}">{$PALANG.pOverview_alias_title}</a>{/if}
  29. {if $boolconf_alias_domain}
  30. {if $tab=='alias_domain'}<span class='active'>{$PALANG.pOverview_alias_domain_title}</span>
  31. {else}<a href="?domain={$smarty.get.domain}&amp;tab=alias_domain{$searchsuffix}">{$PALANG.pOverview_alias_domain_title}</a>{/if}
  32. {/if}
  33. </p></div>
  34. <br clear="all"/><br/>
  35. {*** Domain Aliases ***}
  36. {if $boolconf_alias_domain}
  37. {if $tab=='alias_domain' || $tab=='all'}
  38. {include file="list-virtual_alias_domain.tpl"}
  39. {/if}
  40. {/if}
  41. {if $tab=='all'}<br />{/if}
  42. {*** Aliases ***}
  43. {if $tab=='alias' || $tab=='all'}
  44. {$nav_bar_alias.top}
  45. {include file="list-virtual_alias.tpl"}
  46. {$nav_bar_alias.bottom}
  47. {/if}
  48. {if $tab=='all'}<br />{/if}
  49. {if $tab=='mailbox' || $tab=='all'}
  50. {$nav_bar_mailbox.top}
  51. {assign var="colspan" value=9}
  52. {if $CONF.vacation_control_admin===YES}{assign var="colspan" value="`$colspan+1`"}{/if}
  53. {if $CONF.alias_control_admin===YES}{assign var="colspan" value="`$colspan+1`"}{/if}
  54. <table id="mailbox_table">
  55. <tr>
  56. <th colspan="{$colspan}">{$PALANG.pOverview_mailbox_title}</th>
  57. </tr>
  58. {if $tMailbox}
  59. {include file="list-virtual_mailbox.tpl"}
  60. {else}</table>
  61. {/if}
  62. {$nav_bar_mailbox.bottom}
  63. {if $tCanAddMailbox}
  64. <br /><a href="{#url_create_mailbox#}&amp;domain={$fDomain|escape:"url"}" class="button">{$PALANG.add_mailbox}</a><br />
  65. {/if}
  66. {/if}
  67. {if $CONF.show_status===YES && $CONF.show_status_key===YES}
  68. <br/><br/>
  69. {if $CONF.show_undeliverable===YES}
  70. &nbsp;<span style='background-color:{$CONF.show_undeliverable_color};'>{$CONF.show_status_text}</span>={$PALANG.pStatus_undeliverable}
  71. {/if}
  72. {if $CONF.show_popimap===YES}
  73. &nbsp;<span style='background-color:{$CONF.show_popimap_color};'>{$CONF.show_status_text}</span>={$PALANG.pStatus_popimap}
  74. {/if}
  75. {if $CONF.show_custom_domains|@count>0}
  76. {foreach from=$CONF.show_custom_domains item=item key=i}
  77. &nbsp;<span style='background-color:{$CONF.show_custom_colors[$i]};'>{$CONF.show_status_text}</span>={$PALANG.pStatus_custom}{$item}
  78. {/foreach}
  79. {/if}
  80. {/if}