Login   Register  
PHP Classes
elePHPant
Icontem

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: 2002-11-11 15:12
Size: 807 bytes
 

Contents

Class file image Download

<?
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>