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(
0, 0, '<b>John</b>'),
              array(
0, 1, 10000, '$10,000'),
              array(
0, 2, true),
              array(
1, 0, 'Mary'),
              array(
1, 1, 25000, '$25,000'),
              array(
1, 2, true),
              array(
2, 0, 'Steve'),
              array(
2, 1, 8000, '$8,000'),
              array(
2, 2, true),
              array(
3, 0, 'Ellen'),
              array(
3, 1, 20000, '$20,000'),
              array(
3, 2, true),
              array(
4, 0, 'Mike'),
              array(
4, 1, 12000, '$12,000'),
              array(
4, 2, true),
                       
            )
        );
echo
$chart->render();

echo
$chart->getReferenceLink();

?></body>
</html>