Location: PHPKode > projects > OpenDataCenter Network Management System > include/myaccount.php
<?php
// ----------------------------------------------------------------------
// Copyright (C) 2007 by GREGORY LE BRAS
// ----------------------------------------------------------------------
// LICENSE
//
// This file is part of ODCNMS - Open DataCenter Network Management System
// 
// ODCNMS 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.
// 
// Foobar 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 Foobar; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
// ----------------------------------------------------------------------
// Original Author of file: GREGORY LE BRAS - http://www.odcnms.org/
// ----------------------------------------------------------------------

  // Control dynamic style sheet
  $styleBodyIndent=true;
  $styleBodyBGcolor="#ededed";

  if (file_exists( 'TreeMenuXL.php' ))
    include_once( 'TreeMenuXL.php' );
  else 
    include_once( $_SERVER['DOCUMENT_ROOT'] . '/bin/TreeMenuXL.php' );

  // Menu00 -- Based on the original example
  // Should be as basic as possible.
	$menu00  = new HTML_TreeMenuXL();
	
	$node0 = new HTML_TreeNodeXL (" ".TXT_ACCOUNT_INFORMATION, "index.php?include=myaccount&page=account_information", array("icon"=>"account_information.gif"));
	
	$node1 = new HTML_TreeNodeXL(" ".TXT_HISTORY, "index.php?include=myaccount&page=history", array("icon"=>"history.gif"));
	$nx = &$node1->
		addItem(new HTML_TreeNodeXL(" ".TXT_LOGIN, "index.php?include=myaccount&page=login", array("icon"=>"login.gif")));
	$nx = &$node1->
		addItem(new HTML_TreeNodeXL(" ".TXT_LOGOUT, "index.php?include=myaccount&page=logout", array("icon"=>"logout.gif")));
	$nx = &$node1->
		addItem(new HTML_TreeNodeXL(" ".TXT_ADD, "index.php?include=myaccount&page=add", array("icon"=>"add.gif")));
	$nx = &$node1->
		addItem(new HTML_TreeNodeXL(" ".TXT_EDIT, "index.php?include=myaccount&page=edit", array("icon"=>"edit.gif")));
	$nx = &$node1->
		addItem(new HTML_TreeNodeXL(" ".TXT_DELETE, "index.php?include=myaccount&page=delete", array("icon"=>"delete.gif")));		
  
	$menu00->addItem($node0); 
	$menu00->addItem($node1); 
?>
<table id="configurationcontainer" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td id="configurationmenu">
			<?php 
			$example010 = &new HTML_TreeMenu_DHTMLXL($menu00, array("images"=>"images"));
			$example010->printMenu();
			?>
		</td>
		<td id="configurationcontent">
		<?php if (empty($page)) $page = "mainpage"; if (strlen($page) > 50) $page = "pagenotfound"; else if (!file_exists("include/myaccount_page/".$page.".php")) $page = "pagenotfound"; include("include/myaccount_page/".$page.".php"); ?>	
		</td>
	</tr>
</table>
Return current item: OpenDataCenter Network Management System