Location: PHPKode > projects > PhpwdManager > phpwdmanager/contents/menu.php
<?php

class menu extends lang
{
	function onLoad($param)
	{
		parent::onLoad($param);
		
		$link = null;
		$name = null;
		$obj = null;
		$array = null;
		
		$array = array('accounts' => 'account', 'delete_accounts' => 'accounts&op=1', 
					   'export' => 'accounts&op=2', 'profile' => 'profile', 'logout' => 'logout');
		foreach($array as $name => $link)
		{
			$obj = $this->menu->createComponent("THyperLink", $name);
			$obj->setText(ucwords(str_replace("_", " ", $name)));
			$obj->setNavigateUrl("?page=$link");
			$this->menu->addBody($obj);
			if ($name !== "logout")
				$this->menu->addBody(" | ");	
				
			unset($obj);
		}
		
		//if (!$this->isPostBack())
		$this->setLanguage($this, $this->tr->getStrings());
	}
}

?>
Return current item: PhpwdManager