| 1 |
<?php |
<?php |
| 2 |
// $Id: graphstat.module,v 1.0 2007/06/18 17:04:10 profix898 Exp $ |
// $Id: graphstat.module,v 1.13 2007/11/14 22:29:56 profix898 Exp $ |
| 3 |
|
|
| 4 |
require_once (drupal_get_path('module', 'graphstat') .'/graphstat_statistics.inc'); |
require_once (drupal_get_path('module', 'graphstat') .'/graphstat_statistics.inc'); |
| 5 |
|
|
| 90 |
$output .= drupal_get_form('graphstat_filter_form', $options, $filter); |
$output .= drupal_get_form('graphstat_filter_form', $options, $filter); |
| 91 |
} |
} |
| 92 |
// Loop over the graphs for this graph group |
// Loop over the graphs for this graph group |
| 93 |
foreach($graphs as $key => $graph) { |
foreach ($graphs as $key => $graph) { |
| 94 |
if (is_array($graph) && isset($graph['data']) && is_array($graph['data'])) { |
if (is_array($graph) && isset($graph['data']) && is_array($graph['data'])) { |
| 95 |
$url = url('graphstat/'. strtr($group .'_'. $key, ' ', '_'), array('absolute' => TRUE)); |
$url = url('graphstat/'. strtr($group .'_'. $key, ' ', '_'), array('absolute' => TRUE)); |
| 96 |
$title = isset($graph['title']) ? $graph['title'] : drupal_ucfirst($group); |
$title = isset($graph['title']) ? $graph['title'] : drupal_ucfirst($group); |
| 244 |
exit(); |
exit(); |
| 245 |
} |
} |
| 246 |
// Include the PHPLOT library |
// Include the PHPLOT library |
| 247 |
require_once (drupal_get_path('module', 'graphstat') .'/phplot.php'); |
require_once(drupal_get_path('module', 'graphstat') .'/phplot.php'); |
| 248 |
// Create instance of PHPLOT and configure graph paramters |
// Create instance of PHPLOT and configure graph paramters |
| 249 |
$plot =& new PHPlot($width, $height); |
$plot =& new PHPlot($width, $height); |
| 250 |
$graph['type'] = isset($graph['type']) ? $graph['type'] : 'linepoints'; |
$graph['type'] = isset($graph['type']) ? $graph['type'] : 'linepoints'; |