Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.table.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.table.php  >  Download  
File: sample.table.php
Role: Example script
Content type: text/plain
Description: Table sample
Class: QGoogleVisualizationAPI
Google Visualization API (deprecated)
Author: By
Last change: chg
Date: 6 years ago
Size: 941 bytes
 

Contents

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

<body>
<?php

include_once 'config.inc.php';

$chart = new QTableGoogleGraph;
$chart    ->addDrawProperties(array('showRowNumber'=>'true',"allowHtml"=>'true','pageSize'=>2,'page'=>'enable'))

        ->
addColumns(
            array(
                array(
'string''Name'),
                array(
'number''Salary'),
                array(
'boolean''Full Time')
                )
            )
        ->
setValues(
            array(
              array(
00'<b>John</b>'),
              array(
0110000'$10,000'),
              array(
02true),
              array(
10'Mary'),
              array(
1125000'$25,000'),
              array(
12true),
              array(
20'Steve'),
              array(
218000'$8,000'),
              array(
22true),
              array(
30'Ellen'),
              array(
3120000'$20,000'),
              array(
32true),
              array(
40'Mike'),
              array(
4112000'$12,000'),
              array(
42true),
                        
            )
        );
echo 
$chart->render();

echo 
$chart->getReferenceLink();

?></body>
</html>