LDAPAccountManager/lam/templates/main_header.php

94 lines
3.5 KiB
PHP
Raw Normal View History

<?php
2003-03-14 21:59:04 +00:00
/*
$Id$
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
Copyright (C) 2003 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2003-06-01 16:35:02 +00:00
2003-03-14 21:59:04 +00:00
*/
2003-07-26 11:11:25 +00:00
include_once ("../lib/config.inc");
// start session
session_save_path("../sess");
@session_start();
setlanguage();
2003-03-14 21:59:04 +00:00
2003-06-04 18:47:40 +00:00
echo ("<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n");
2003-06-01 16:35:02 +00:00
echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
2003-03-14 21:59:04 +00:00
?>
<html>
2003-04-09 17:10:00 +00:00
2003-06-01 16:35:02 +00:00
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="../style/layout.css">
2003-04-09 17:10:00 +00:00
</head>
2003-06-01 16:35:02 +00:00
2003-04-09 17:10:00 +00:00
<body>
<table border=0 width="100%">
2003-06-01 13:59:13 +00:00
<tr>
2003-07-26 11:11:25 +00:00
<td width="100" align="left"><a href="./profedit/profilemain.php" target="mainpart"><?php echo _("Profile Editor"); ?></a></td>
<?
// Samba 3 has more list views
if ($_SESSION['config']->get_samba3() == "yes") echo "<td rowspan=3 colspan=5 align=\"center\">\n";
else echo "<td rowspan=3 colspan=3 align=\"center\">\n";
?>
2003-06-01 16:35:02 +00:00
<a href="http://lam.sf.net" target="new_window"><img src="../graphics/banner.jpg" border=1 alt="LDAP Account Manager"></a>
2003-06-01 13:59:13 +00:00
</td>
2003-06-24 15:50:38 +00:00
<td width="100" align="right" height=20><a href="./logout.php" target="_top"><big><b><?php echo _("Logout") ?></b></big></a></td>
2003-06-01 13:59:13 +00:00
</tr>
<tr>
2003-06-24 15:50:38 +00:00
<td align="left"><a href="ou_edit.php" target="mainpart"><?php echo _("OU Editor") ?></a></td>
<td rowspan=2></td>
2003-06-01 13:59:13 +00:00
</tr>
<tr>
2003-06-24 15:50:38 +00:00
<td align="left"><a href="masscreate.php" target="mainpart"><?php echo _("File Upload") ?></a></td>
</tr>
2003-07-26 11:11:25 +00:00
<tr>
<?
// Samba 3 has more list views
if ($_SESSION['config']->get_samba3() == "yes") echo "<td colspan=7>&nbsp;</td>\n";
else echo "<td colspan=5>&nbsp;</td>\n";
?>
</tr>
<tr>
<td></td>
2003-07-26 11:11:25 +00:00
<?
// Samba 3 has more list views
if ($_SESSION['config']->get_samba3() == "yes") {
echo '<td width="120" align="center"><a href="./lists/listmappings.php" target="mainpart">' . _("User/Group Mapping") . '</a></td>' . "\n";
echo '<td width="120" align="center"><a href="./lists/listdomains.php" target="mainpart">' . _("Domains") . '</a></td>' . "\n";
echo '<td width="120" align="center"><a href="./lists/listusers.php" target="mainpart">' . _("Users") . '</a></td>' . "\n";
echo '<td width="120" align="center"><a href="./lists/listgroups.php" target="mainpart">' . _("Groups") . '</a></td>' . "\n";
echo '<td width="120" align="center"><a href="./lists/listhosts.php" target="mainpart">' . _("Hosts") . '</a></td>' . "\n";
}
else {
echo '<td width="200" align="center"><a href="./lists/listusers.php" target="mainpart">' . _("Users") . '</a></td>' . "\n";
echo '<td width="200" align="center"><a href="./lists/listgroups.php" target="mainpart">' . _("Groups") . '</a></td>' . "\n";
echo '<td width="200" align="center"><a href="./lists/listhosts.php" target="mainpart">' . _("Hosts") . '</a></td>' . "\n";
}
?>
<td></td>
2003-06-01 13:59:13 +00:00
</tr>
2003-04-09 17:10:00 +00:00
</table>
</body>
2003-06-04 18:47:40 +00:00
</html>