LDAPAccountManager/lam/templates/main_header.php

92 lines
2.8 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
2004-06-10 19:01:18 +00:00
*/
2003-06-01 16:35:02 +00:00
2004-06-10 19:01:18 +00:00
/**
* Head frame in main window, includes links to lists etc.
*
* @package main
* @author Roland Gruber
2003-03-14 21:59:04 +00:00
*/
2004-06-10 19:01:18 +00:00
/** access to configuration options */
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-07-29 11:52:26 +00:00
echo $_SESSION['header'];
2004-01-27 18:05:35 +00:00
// number of list views (users, groups, ...)
2006-01-01 16:30:05 +00:00
$types = $_SESSION['config']->get_ActiveTypes();
$lists = sizeof($types);
2005-02-27 12:40:06 +00:00
if ($_SESSION['config']->get_Suffix('tree') != "") $lists++;
2004-01-27 18:05:35 +00:00
2003-03-14 21:59:04 +00:00
?>
2003-06-01 16:35:02 +00:00
<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>
<td width="200">
2005-11-03 12:14:53 +00:00
<img src="../graphics/smile.png">&nbsp;<a href="http://lam.sourceforge.net/sponsors/donations.htm" target="_blank"><?php echo _("Donate") ?></a>
<br><br>
<img src="../graphics/tools.png">&nbsp;<a href="tools.php" target="mainpart"><BIG><B><?php echo _("Tools") ?></B></BIG></a>
</td>
2003-09-01 21:28:26 +00:00
<?php
echo "<td colspan=$lists align=\"center\">\n";
2003-07-26 11:11:25 +00:00
?>
2006-01-01 16:30:05 +00:00
<a href="http://lam.sourceforge.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>
2005-03-26 12:18:53 +00:00
<td width="200" align="right" height=20><img src="../graphics/go.png">&nbsp;<a href="./logout.php" target="_top"><big><b><?php echo _("Logout") ?></b></big></a></td>
</tr>
2003-07-26 11:11:25 +00:00
<tr>
2003-09-01 21:28:26 +00:00
<?php
2004-01-27 18:05:35 +00:00
$temp = $lists + 2;
echo "<td colspan=$temp><font size=1>&nbsp;</font></td>\n";
2003-07-26 11:11:25 +00:00
?>
</tr>
<tr>
<td></td>
2003-09-01 21:28:26 +00:00
<?php
2005-02-27 12:40:06 +00:00
if ($_SESSION['config']->get_Suffix('tree') != "") {
2005-03-26 12:18:53 +00:00
echo '<td width="120" align="center"><img src="../graphics/process.png">&nbsp;<a href="./tree/tree_view.php" target="mainpart"><big>' . _("Tree view") . '</big></a></td>' . "\n";
2005-02-27 12:40:06 +00:00
}
2006-01-01 16:30:05 +00:00
for ($i = 0; $i < sizeof($types); $i++) {
echo '<td width="120" align="center">';
echo '<img src="../graphics/' . $types[$i] . '.png">&nbsp;';
echo '<a href="./lists/list.php?type=' . $types[$i] . '" target="mainpart"><big>' . getTypeAlias($types[$i]) . '</big></a>';
echo '</td>' . "\n";
2003-07-26 11:11:25 +00:00
}
?>
<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>