0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-20 03:36:20 +02:00
postfixadmin/templates/menu.tpl
David Goodwin 2539dc47a4 templates/: refactoring and some fixes
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@68 a1433add-5e2c-0410-b055-b7f2511e0802
2007-09-22 10:54:29 +00:00

27 lines
1.3 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 } ?>
<?php if ($CONF['vacation'] == "YES") { ?>
<li><a target="_top" href="edit-vacation.php"><?php print $PALANG['pUsersMenu_vacation']; ?></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>";
}
?>