您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

menu.tpl 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <!-- {$smarty.template} -->
  2. {strip}
  3. {if !empty($smarty.get) && !empty($smarty.get.domain)}
  4. {*** zuweisung muss eleganter gehen ***}
  5. {assign var="url_domain" value=$smarty.get.domain}
  6. {assign var="url_domain" value="&amp;domain={$url_domain|escape:url}"}
  7. {/if}
  8. {/strip}
  9. <div id="menu">
  10. <ul>
  11. {* list-admin *}
  12. {if $authentication_has_role.global_admin}
  13. {strip}
  14. <li><a target="_top" href="{#url_list_admin#}">{$PALANG.pAdminMenu_list_admin}</a>
  15. <ul>
  16. <li><a target="_top" href="{#url_list_admin#}">{$PALANG.pAdminMenu_list_admin}</a></li>
  17. <li><a target="_top" href="{#url_create_admin#}">{$PALANG.pAdminMenu_create_admin}</a></li>
  18. </ul>
  19. </li>
  20. {/strip}
  21. {else}
  22. <li><a target="_top" href="{#url_main#}">{$PALANG.pMenu_main}</a></li>
  23. {/if}
  24. {* list-domain *}
  25. {strip}
  26. <li><a target="_top" href="{#url_list_domain#}">{$PALANG.pAdminMenu_list_domain}</a>
  27. <ul>
  28. <li><a target="_top" href="{#url_list_domain#}">{$PALANG.pAdminMenu_list_domain}</a></li>
  29. {if $authentication_has_role.global_admin}
  30. <li><a target="_top" href="{#url_edit_domain#}">{$PALANG.pAdminMenu_create_domain}</a></li>
  31. {/if}
  32. </ul>
  33. </li>
  34. {/strip}
  35. {* list-virtual *}
  36. {strip}
  37. <li><a target="_top" href="{#url_list_virtual#}">{$PALANG.pAdminMenu_list_virtual}</a>
  38. <ul>
  39. <li><a target="_top" href="{#url_list_virtual#}">{$PALANG.pAdminMenu_list_virtual}</a></li>
  40. <li><a target="_top" href="{#url_create_mailbox#}{$url_domain}">{$PALANG.add_mailbox}</a></li>
  41. <li><a target="_top" href="{#url_create_alias#}{$url_domain}">{$PALANG.add_alias}</a></li>
  42. {if $boolconf_alias_domain}
  43. <li><a target="_top" href="{#url_create_alias_domain#}{$url_domain}">{$PALANG.add_alias_domain}</a></li>
  44. {/if}
  45. </ul>
  46. </li>
  47. {/strip}
  48. {* fetchmail *}
  49. {if $CONF.fetchmail==='YES'}
  50. {strip}
  51. <li><a target="_top" href="{#url_fetchmail#}">{$PALANG.pMenu_fetchmail}</a>
  52. <ul>
  53. <li><a target="_top" href="{#url_fetchmail#}">{$PALANG.pMenu_fetchmail}</a></li>
  54. <li><a target="_top" href="{#url_fetchmail_new_entry#}">{$PALANG.pFetchmail_new_entry}</a></li>
  55. </ul>
  56. </li>
  57. {/strip}
  58. {/if}
  59. {* sendmail *}
  60. {if $CONF.sendmail==='YES'}
  61. {strip}
  62. <li><a target="_top" href="{#url_sendmail#}">{$PALANG.pMenu_sendmail}</a>
  63. <ul>
  64. <li><a target="_top" href="{#url_sendmail#}">{$PALANG.pMenu_sendmail}</a></li>
  65. {if $authentication_has_role.global_admin}
  66. <li><a target="_top" href="{#url_broadcast_message#}">{$PALANG.pAdminMenu_broadcast_message}</a></li>
  67. {/if}
  68. </ul>
  69. </li>
  70. {/strip}
  71. {/if}
  72. {* password *}
  73. <li><a target="_top" href="{#url_password#}">{$PALANG.pMenu_password}</a></li>
  74. {* backup *}
  75. {if $authentication_has_role.global_admin && $CONF.database_type!=='pgsql' && $CONF.backup === 'YES'}
  76. <li><a target="_top" href="{#url_backup#}">{$PALANG.pAdminMenu_backup}</a></li>
  77. {/if}
  78. {* viewlog *}
  79. {if $CONF.logging==='YES'}
  80. <li><a target="_top" href="{#url_viewlog#}">{$PALANG.pMenu_viewlog}</a></li>
  81. {/if}
  82. {* logout *}
  83. <li class="logout"><a target="_top" href="{#url_logout#}">{$PALANG.pMenu_logout}</a></li>
  84. </ul>
  85. </div>
  86. {literal}
  87. <script type='text/javascript'>
  88. // <![CDATA[
  89. sfHover = function()
  90. {
  91. var sfEls = document.getElementById("menu").getElementsByTagName("LI");
  92. for (var i=0; i<sfEls.length; i++)
  93. {
  94. sfEls[i].onmouseover=function()
  95. {
  96. this.className+=" sfhover";
  97. }
  98. sfEls[i].onmouseout=function()
  99. {
  100. this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
  101. }
  102. }
  103. }
  104. if (window.attachEvent)
  105. window.attachEvent("onload", sfHover);
  106. // ]]>
  107. </script>
  108. {/literal}