Location: PHPKode > projects > PhpFamilyTree > phpfamilytree/menubar.php
<?
# menubar.php - Contains the menu bar included in all pages.
# $Id: menubar.php,v 1.1.1.1 2004/01/01 05:51:24 rocket_169 Exp $
#
# Copyright (c) 2003 The phpFamilyTree Project Team
# Licensed under the GNU GPL. For full terms see the file COPYING.
#
# http://www.phpfamilytree.org
#
?>
<table width="100%" style="margin:0px ; padding:0px">
<tr>

<td id="menutitle">
<a href="ft_edit_families.php">Families</a>
</td>

<td id="menutitle">
Search
</td>

<td id="menutitle">

<?
if(logged_in()) {
	print "<a href=\"login.php\">Logout [{$_SESSION["authdata"]["username"]}]</a>";
} else {
	print "<a href=\"login.php\">Login</a>";
}
?>
</td>

<td id="menutitle">
Preferences
</td>

<?
if(logged_in()) {
	print "<td id=\"menutitle\">";

	if(isadmin()) {
		print "<a href=\"ft_user_admin.php\">User Administration</a>";
	} elseif (logged_in()) {
		print "<a href=\"ft_user_admin.php\">Change Password</a>";
	}
	print "</td>";
}
?>

<td id="menutitle">
FAQs
</td>

<td id="menutitle">
Docs
</td>

</table>
Return current item: PhpFamilyTree