0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00
postfixadmin/templates/main.tpl
Christian Boltz c51b27a9c9 merged overview.php into list-domain.php and list-virtual.php
list-domain.php:
- added several admin/superadmin switches and permission checks
- merged GET and POST code
- Note: still different templates for superadmins (admin_list-domain.tpl)
  and admins (overview-get.tpl) because of large layout difference

list-virtual.php:
- added several admin/superadmin switches and permission checks
- added check for admins without any domains (redirects to domain list,
  which can handle this situation)
- migrated FIXME from overview.php 
  -> David, please review the query and remove the FIXME afterwards

overview.php:
- DELETED - no longer needed

overview.tpl:
- RENAMED overview.tpl to list-virtual.tpl
- removed admin/superadmin filename switch
- removed $incpath switch for images

menu.tpl:
- menu for domain admins now has "domain list" and "virtual list"
  instead of "overview"

delete.php, edit-active.php, edit-alias.php, edit-mailbox.php, search.php:
- changed redirect to list-virtual.php

overview-get.tpl:
- changed link to list-virtual.php

main.tpl:
- changed overview link to list-domain.php



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@181 a1433add-5e2c-0410-b055-b7f2511e0802
2007-11-03 22:24:34 +00:00

35 lines
1.3 KiB
Smarty

<div id="main_menu">
<table>
<tr>
<td nowrap><a target="_top" href="list-domain.php"><?php print $PALANG['pMenu_overview']; ?></a></td>
<td><?php print $PALANG['pMain_overview']; ?></td>
</tr>
<tr>
<td nowrap><a target="_top" href="create-alias.php"><?php print $PALANG['pMenu_create_alias']; ?></a></td>
<td><?php print $PALANG['pMain_create_alias']; ?></td>
</tr>
<tr>
<td nowrap><a target="_top" href="create-mailbox.php"><?php print $PALANG['pMenu_create_mailbox']; ?></a></td>
<td><?php print $PALANG['pMain_create_mailbox']; ?></td>
</tr>
<? if ($CONF['sendmail'] == "YES") { ?>
<tr>
<td nowrap><a target="_top" href="sendmail.php"><?php print $PALANG['pMenu_sendmail']; ?></a></td>
<td><?php print $PALANG['pMain_sendmail']; ?></td>
</tr>
<? } ?>
<tr>
<td nowrap><a target="_top" href="password.php"><?php print $PALANG['pMenu_password']; ?></a></td>
<td><?php print $PALANG['pMain_password']; ?></td>
</tr>
<tr>
<td nowrap><a target="_top" href="viewlog.php"><?php print $PALANG['pMenu_viewlog']; ?></a></td>
<td><?php print $PALANG['pMain_viewlog']; ?></td>
</tr>
<tr>
<td nowrap><a target="_top" href="logout.php"><?php print $PALANG['pMenu_logout']; ?></a></td>
<td><?php print $PALANG['pMain_logout']; ?></td>
</tr>
</table>
</div>