Login   Register  
PHP Classes

File: OrgExample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of stefano dolzi  >  Tree  >  OrgExample.php  >  Download  
File: OrgExample.php
Role: Example script
Content type: text/plain
Description: Example n.1
Class: Tree
Simple Tree Class
Author: By
Last change:
Date: 11 years ago
Size: 807 bytes


Class file image Download

include "TreeClass.php";
<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 */