ApPHP TreeMenu Demo (v2.1.2)
[Back To Site]
CSS Style:
Default
XP
Vista
Paneled
Direction:
Left-to-right
Right-to-left
Submission type:
Ajax
Get
Post
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
This code was inserted without using files
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
()
;