adding gauge class, and rendering a default gauge from controller
This commit is contained in:
@@ -16,7 +16,18 @@ class Dashboard extends Controller {
|
||||
}
|
||||
|
||||
public function renderDashletInstance($dasInsUid) {
|
||||
//
|
||||
require_once ( PATH_METHODS . 'dashboard/class.gauge.php' );
|
||||
$gauge = new pmGauge();
|
||||
/*
|
||||
$gauge->value = x;
|
||||
$gauge->maxValue = x;
|
||||
*/
|
||||
//falta el width de la imagen
|
||||
$w = isset($_REQUEST['w']) ? intval($_REQUEST['w']) : 610;
|
||||
if ( intval($_REQUEST['w']) < 50 ) $w = 50;
|
||||
$gauge->w = $w;
|
||||
|
||||
$gauge->render();
|
||||
}
|
||||
|
||||
// Functions for the dashboards users module - End
|
||||
|
||||
Reference in New Issue
Block a user