Fix affiliate google chart
This commit is contained in:
parent
f007847f70
commit
788dbe5ef9
@ -164,9 +164,9 @@ class Controller_Affiliate_Service extends Controller_TemplateDefault_Affiliate
|
|||||||
->title(sprintf('ADSL traffic as at %s',date('Y-m-d',strtotime('yesterday'))));
|
->title(sprintf('ADSL traffic as at %s',date('Y-m-d',strtotime('yesterday'))));
|
||||||
|
|
||||||
foreach ($data['data'] as $key => $values)
|
foreach ($data['data'] as $key => $values)
|
||||||
$google->data(array('yl'=>$key),array($key=>$values));
|
$google->sdata(array('yl'=>$key),array($key=>$values));
|
||||||
|
|
||||||
$google->data(array('yr'=>'services'),array('services'=>$data['svs']));
|
$google->sdata(array('yr'=>'services'),array('services'=>$data['svs']));
|
||||||
|
|
||||||
Block::add(array('body'=>(string)$google));
|
Block::add(array('body'=>(string)$google));
|
||||||
|
|
||||||
@ -205,9 +205,9 @@ class Controller_Affiliate_Service extends Controller_TemplateDefault_Affiliate
|
|||||||
->title(sprintf('HSPA traffic as at %s',date('Y-m-d',strtotime('yesterday'))));
|
->title(sprintf('HSPA traffic as at %s',date('Y-m-d',strtotime('yesterday'))));
|
||||||
|
|
||||||
foreach ($data['data'] as $key => $values)
|
foreach ($data['data'] as $key => $values)
|
||||||
$google->data(array('yl'=>$key),array($key=>$values));
|
$google->sdata(array('yl'=>$key),array($key=>$values));
|
||||||
|
|
||||||
$google->data(array('yr'=>'services'),array('services'=>$data['svs']));
|
$google->sdata(array('yr'=>'services'),array('services'=>$data['svs']));
|
||||||
|
|
||||||
Block::add(array('body'=>(string)$google));
|
Block::add(array('body'=>(string)$google));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user