3
$Id: main_header.php,v 1.29 2005/03/26 12:18:53 gruberroland Exp $
3
$Id: main_header.php,v 1.37 2006/05/19 11:13:20 gruberroland Exp $
5
5
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
6
Copyright (C) 2003 Roland Gruber
6
Copyright (C) 2003 - 2006 Roland Gruber
8
8
This program is free software; you can redistribute it and/or modify
9
9
it under the terms of the GNU General Public License as published by
28
28
* @author Roland Gruber
31
/** security functions */
32
include_once("../lib/security.inc");
31
33
/** access to configuration options */
32
include_once ("../lib/config.inc");
34
include_once("../lib/config.inc");
35
session_save_path("../sess");
40
41
echo $_SESSION['header'];
42
43
// number of list views (users, groups, ...)
44
if ($_SESSION['config']->get_Suffix('user') != "") $lists++;
45
if ($_SESSION['config']->get_Suffix('group') != "") $lists++;
46
if ($_SESSION['config']->get_Suffix('host') != "") $lists++;
47
if ($_SESSION['config']->get_Suffix('tree') != "") $lists++;
44
$types = $_SESSION['config']->get_ActiveTypes();
56
53
<table border=0 width="100%">
59
<img src="../graphics/tools.png"> <a href="tools.php" target="mainpart"><?php echo _("Tools") ?></a>
62
echo "<td colspan=$lists align=\"center\">\n";
64
<a href="http://lam.sf.net" target="new_window"><img src="../graphics/banner.jpg" border=1 alt="LDAP Account Manager"></a>
66
<td width="200" align="right" height=20><img src="../graphics/go.png"> <a href="./logout.php" target="_top"><big><b><?php echo _("Logout") ?></b></big></a></td>
71
echo "<td colspan=$temp><font size=1> </font></td>\n";
56
<img alt="donations" src="../graphics/smile.png"> <a href="http://lam.sourceforge.net/sponsors/donations.htm" target="_blank"><?php echo _("Donate") ?></a>
58
<img alt="tools" src="../graphics/tools.png"> <a href="tools.php" target="mainpart"><BIG><B><?php echo _("Tools") ?></B></BIG></a>
61
<a href="http://lam.sourceforge.net" target="new_window"><img src="../graphics/banner.jpg" border=1 alt="LDAP Account Manager"></a>
63
<td width="200" align="right" height=20><img alt="logout" src="../graphics/go.png"> <a href="./logout.php" target="_top"><big><b><?php echo _("Logout") ?></b></big></a></td>
77
69
if ($_SESSION['config']->get_Suffix('tree') != "") {
78
echo '<td width="120" align="center"><img src="../graphics/process.png"> <a href="./tree/tree_view.php" target="mainpart"><big>' . _("Tree view") . '</big></a></td>' . "\n";
80
if ($_SESSION['config']->get_Suffix('user') != "") {
81
echo '<td width="120" align="center"><img src="../graphics/user.png"> <a href="./lists/listusers.php" target="mainpart"><big>' . _("Users") . '</big></a></td>' . "\n";
83
if ($_SESSION['config']->get_Suffix('group') != "") {
84
echo '<td width="120" align="center"><img src="../graphics/ou.png"> <a href="./lists/listgroups.php" target="mainpart"><big>' . _("Groups") . '</big></a></td>' . "\n";
86
if ($_SESSION['config']->get_Suffix('host') != "") {
87
echo '<td width="120" align="center"><img src="../graphics/host.png"> <a href="./lists/listhosts.php" target="mainpart"><big>' . _("Hosts") . '</big></a></td>' . "\n";
70
$linkList[] = '<img alt="tree view" src="../graphics/process.png"> <a href="./tree/tree_view.php" target="mainpart"><big>' . _("Tree view") . '</big></a>' . "\n";
72
for ($i = 0; $i < sizeof($types); $i++) {
73
$linkList[] = '<img alt="' . $types[$i] . '" src="../graphics/' . $types[$i] . '.png"> ' .
74
'<a href="./lists/list.php?type=' . $types[$i] . '" target="mainpart"><big>' . getTypeAlias($types[$i]) . '</big></a>';
76
echo implode(' ', $linkList);