ApPHP TreeMenu Demo (v2.1.2)            [Back To Site]
 

CSS Style: Direction: Submission type:
Nodes
  • Pictures
    • Europe (one of the world's seven continents)
      • Eiffel Tower
      • Big Ben
      • Italy
        • Rome
        • Pisa
    • America
      • Statue of Liberty
  • HTML
    • Capitals
    • Anthems
  • Text
  • PHP
  • Code
  • New Window
Content
Code define("TREEMENU_DIR", "");
require_once(TREEMENU_DIR."nodes.class.php");
$treeMenu = new TreeMenu();
$treeMenu->SetHttpVars(array("submission","style","child"));
$pictures = $treeMenu->AddNode("pictures");
    $europe = $pictures->AddNode("Europe Europe (one of the world's seven <font color=darkgreen>continents</font>));
        $france = $europe->AddNode("Eiffel Tower","paris.jpg","france.gif");
        $britain = $europe->AddNode("Big Ben","london.jpg","britain.gif");
        $italy = $europe->AddNode("Italy","","italy.jpg");
            $italy->AddNode("Rome","rome.jpg");
            $italy->AddNode("Pisa","pisa.jpg");
    $america = $pictures->AddNode("America");
        $liberty=$america->AddNode("Statue of Liberty","newyork.jpg","newyorkflag.jpg");
$html = $treeMenu->AddNode("HTML");
$html->AddNode("Capitals","capitals.htm");
$html->AddNode("Anthems","anthems.htm");
$treeMenu->AddNode("Text","text.txt");
$treeMenu->AddNode("PHP","script.php?country=Italy");
$code = $treeMenu->AddNode("Code");
$code->SetInnerHTML("<i>This HTML code was inserted without reloading page</i>");
$newWindow = $treeMenu->AddNode("New window","london.jpg");
$newWindow->OpenNewWindow(true);
$nodes->Display();