Location: PHPKode > scripts > Tree > tree/OrgExample.php
<?
include "TreeClass.php";
?>
<BODY BGCOLOR="GRAY">
<H1 align="center"><FONT COLOR="NAVY"> Example of Orgchart </FONT>  </H1>

<?
/* Create tree */
$arbre=new Tree;
$arbre->AddNode("Marketing Manager","Managing Director");
$arbre->AddNode("Financial Manager","Managing Director");
$arbre->AddNode("Personnel Manager","Managing Director");
$arbre->AddNode("I.T. Manager","Managing Director");
$arbre->AddNode("Sales Representative","Marketing Manager");
$arbre->AddNode("Chief Account","Financial Manager");
$arbre->AddNode("Junior Account","Chief Account");
$arbre->AddNode("System Administrator","I.T. Manager");
$arbre->AddNode("DB Administrator","I.T. Manager");
$arbre->AddNode("Personnel Trainer","Personnel Manager");

/* Draw tree */

$arbre->drawTree();



?>
</BODY>
Return current item: Tree