Login   Register  
PHP Classes
elePHPant
Icontem

File: tree_example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Sergio Rivera  >  TreeGrid  >  tree_example.php  >  Download  
File: tree_example.php
Role: Example script
Content type: text/plain
Description: example
Class: TreeGrid
Output menu definitions in XML for dhtmlxTreeGrid
Author: By
Last change: to add the extension php of this file
Date: 2007-11-05 12:32
Size: 979 bytes
 

Contents

Class file image Download
<?php
include_once('treegrid.php');
$datos=array(
        array(
'main''main''Empresa'3000), 
        array(
'main''t_1__u_0''Departamento 1'1400),
        array(
'main''t_2__u_0''Finanzas'1100),
        array(
'main''t_3__u_0''Direccion'500),
        array(
't_1__u_0''t_1__u_3''Main Manager'300),
        array(
't_1__u_0''t_1__u_1''Sub manager'100),
        array(
't_1__u_0''t_1__u_2''Secretary'1000),
        array(
't_2__u_0''t_2__u_1''Specialist 1'1000),
        array(
't_2__u_0''t_2__u_2''Some Body'100),
        array(
't_2__u_2''t_2__u_5''Some Body'100),
        array(
't_2__u_2''t_2__u_6''Some Body'100),
        array(
't_3__u_0''t_3__u_1''The Boss'500),
        array(
't_3__u_1''t_3__u_2''The Boss 3'500),
        array(
't_3__u_1''t_3__u_4''The Boss  4'500),
        array(
't_3__u_1''t_3__u_5''The Boss 5'500)
        );
$a=new treegrid();
print_r($a->getXML($datos012, array(3,4), array(0=>'father')));
$a->__destruct();
?>