. * * @copyright Copyright: 2009 Chunsheng Wang * @author Chunsheng Wang * @package report * @version $Id$ * @link http://www.zentao.cn */ ?> app->getWebRoot() . 'fusioncharts/'; $swfFile = "fcf_$swf.swf"; return << EOT; } /* 创建js输出的chart。*/ public function createJSChart($swf, $dataXML, $width = 'auto', $height = 500) { $jsRoot = $this->app->getWebRoot() . 'js/'; static $count = 0; $count ++; $chartRoot = $this->app->getWebRoot() . 'fusioncharts/'; $swfFile = "fcf_$swf.swf"; $divID = "chart{$count}div"; $chartID = "chart{$count}"; $js = ''; if($count == 1) $js = ""; return << EOT; } /* 生成single系列的xml数据。。 */ function createSingleXML($sets, $chartOptions = array()) { $data = pack("CCC", 0xef, 0xbb, 0xbf); $data .=""; $data .= ' $value) $data .= " $key='$value'"; $data .= ">"; foreach($sets as $set) $data .= ""; $data .= ""; return $data; } }