list-virtual.tpl 3.3 KB

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