Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.orgchart.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tom Schaefer  >  QGoogleVisualizationAPI  >  sample.orgchart.php  >  Download  
File: sample.orgchart.php
Role: Example script
Content type: text/plain
Description: Orgchart for cheers from Jorge Garifuna
Class: QGoogleVisualizationAPI
Google Visualization API (deprecated)
Author: By
Last change:
Date: 2008-07-17 00:49
Size: 700 bytes
 

Contents

Class file image Download
<html>
<head>
</head>

<body>
<?php

include_once 'config.inc.php';

$chart = new QOrgchartGoogleGraph;
$chart    ->addDrawProperties(
            array(
                
"size" => "small"
                
)
            )
        ->
addColumns(
            array(
                array(
'string''Task'),
                array(
'string''Manager')
                )
            )
        ->
setValues(
            array(
                array(
00'Mike'),
                array(
10'Jim'),
                array(
11'Mike'),
                array(
20'Alice'),
                array(
21'Mike'),
                array(
30'Bob'),
                array(
31'Jim'),
                array(
40'Carol'),
                array(
41'Bob'),
            )
        );
echo 
$chart->render();

echo 
$chart->getReferenceLink();

?>
</body>
</html>