Ejemplo n.º 1
0
 function setChart($file, $info)
 {
     $tp = new TemplateData($file);
     echo '<script type="text/javascript">';
     echo "data_{$this->id}=" . $tp->changeInfo($info) . ';';
     echo "function ofc_get_dataOf{$this->id}(){return JSON.stringify(data_{$this->id});}";
     echo "swfobject.embedSWF('" . $this->path . "/open-flash-chart.swf', '{$this->id}', '{$this->width}','{$this->height}','9.0.0','expressInstall.swf',{'get-data':'ofc_get_dataOf{$this->id}'} )";
     echo '</script>';
 }