0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00
postfixadmin/templates/menu.tpl
Greg a5ce5620cf Made it possible for admins and superadmins to set a vacation message,
edit vacation messages, and remove them.

main.php added to admin directory so admin and / can share more
templates.

the new edit-vacation.php in admin and / are identical except
for template references

languages/en.lang and languages/default.lang are in sync now

I attempted to add some of the new .lang variables I created to
the spanish file (I don't know it that well, hope its OK)

fixed a bug in users/vacation.php

Added a "Main" menu item to the admin menu that gets you back to where
you started when you log in.



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@2 a1433add-5e2c-0410-b055-b7f2511e0802
2007-06-19 22:38:05 +00:00

24 lines
1.2 KiB
Smarty

<div id="menu">
<ul>
<li><a target="_top" href="main.php"><?php print $PALANG['pMenu_main']; ?></a></li>
<li><a target="_top" href="overview.php"><?php print $PALANG['pMenu_overview']; ?></a></li>
<?php $url = "create-alias.php"; if (isset ($_GET['domain'])) $url .= "?domain=" . $_GET['domain']; ?>
<li><a target="_top" href="<?php print $url; ?>"><?php print $PALANG['pMenu_create_alias']; ?></a></li>
<?php $url = "create-mailbox.php"; if (isset ($_GET['domain'])) $url .= "?domain=" . $_GET['domain']; ?>
<li><a target="_top" href="<?php print $url; ?>"><?php print $PALANG['pMenu_create_mailbox']; ?></a></li>
<?php if ($CONF['sendmail'] == 'YES') { ?><li><a target="_top" href="sendmail.php"><?php print $PALANG['pMenu_sendmail']; ?></a></li><?php } ?>
<li><a target="_top" href="password.php"><?php print $PALANG['pMenu_password']; ?></a></li>
<li><a target="_top" href="viewlog.php"><?php print $PALANG['pMenu_viewlog']; ?></a></li>
<li><a target="_top" href="logout.php"><?php print $PALANG['pMenu_logout']; ?></a></li>
</ul>
</div>
<?php
if (file_exists (realpath ("motd.txt")))
{
print "<div id=\"motd\">\n";
include ("motd.txt");
print "</div>";
}
?>