diff --git a/module/report/model.php b/module/report/model.php index 557b9adfc3..c885919335 100644 --- a/module/report/model.php +++ b/module/report/model.php @@ -13,258 +13,6 @@ app->getWebRoot() . 'fusioncharts/'; - $swfFile = "fcf_$swf.swf"; - return << - - - - - - -EOT; - } - - /** - * Create the js code of chart. - * - * @param string $swf the swf type - * @param string $dataURL the date url - * @param int $width - * @param int $height - * @access public - * @return string - */ - 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; - } - - public function createJSChartFlot($projectName, $flotJSON, $width = 'auto', $height = 500) - { - $this->app->loadLang('project'); - $jsRoot = $this->app->getWebRoot() . 'js/'; - $width = $width . 'px'; - $height = $height . 'px'; - - $dataJSON = $flotJSON['data']; - $limitJSON = $flotJSON['limit']; - $baselineJSON = $flotJSON['baseline']; - $dateListJSON = $flotJSON['dateList']; - $ticksJSON = $flotJSON['ticks']; -return << - -
- -

$projectName {$this->lang->project->burn}

-EOT; - } - - /** - * Create xml data of single charts. - * - * @param array $sets - * @param array $chartOptions - * @param array $colors - * @access public - * @return string the xml data. - */ - public function createSingleXML($sets, $chartOptions = array(), $colors = array()) - { - $data = pack("CCC", 0xef, 0xbb, 0xbf); // utf-8 bom. - $data .=""; - - $data .= ' $value) $data .= " $key='$value'"; - $data .= ">"; - - if(empty($colors)) $colors = $this->lang->report->colors; - $colorCount = count($colors); - $i = 0; - foreach($sets as $set) - { - if($i == $colorCount) $i = 0; - $color = $colors[$i]; - $i ++; - $data .= ""; - } - $data .= ""; - return $data; - } - - public function createSingleJSON($sets, $dateList) - { - $data = '['; - foreach($dateList as $i => $date) - { - $date = date('Y-m-d', strtotime($date)); - if(isset($sets[$date]))$data .= "[$i, {$sets[$date]->value}],"; - } - $data = rtrim($data, ','); - $data .= ']'; - return $data; - } - - /** - * Create the js code to render chart. - * - * @param int $chartCount - * @access public - * @return string - */ - public function renderJsCharts($chartCount) - { - $js = ''; - return $js; - } - /** * Compute percent of every item. * diff --git a/www/fusioncharts/Readme.txt b/www/fusioncharts/Readme.txt deleted file mode 100644 index 2a6cf4bd33..0000000000 --- a/www/fusioncharts/Readme.txt +++ /dev/null @@ -1,106 +0,0 @@ -===========================**=====**=====**=============================== - -FusionCharts Free v2.2 -Released: Aug 2009 -http://www.fusioncharts.com/free - -Copyright (c) 2009 InfoSoft Global (P) Ltd.  -www.infosoftglobal.com - -Dual licensed under the MIT (X11) and GNU GPL licenses. -http://www.fusioncharts.com/free/license - -MIT License: http://www.opensource.org/licenses/mit-license.php -GPL License: http://www.gnu.org/copyleft/gpl.html - -===========================**=====**=====**=============================== -IMPORTANT NOTE:  -===========================**=====**=====**=============================== - -FusionCharts Free is not the evaluation of FusionCharts v3. - -FusionCharts Free is an open-source Flash charting component which originally -was FusionCharts v2.3. It is intended to take care of all your basic charting needs.  -FusionCharts v3, on the other hand, has a lot more features and chart types that -you may see and download from http://www.fusioncharts.com - -FusionCharts Free and FusionCharts v3 can both be used for personal or -commercial purposes. However, if you have downloaded FusionCharts Free for  -evaluation purposes, we recommend that you download FusionCharts v3 evaluation  -from www.fusioncharts.com/download. This is because the feature set is more  -advanced in FusionCharts v3. Additionally, FusionCharts v3 provides   -seamless upgrade from all previous versions of FusionCharts, including  -FusionCharts Free. - -===========================**=====**=====**=============================== - -How do I install? -================== -Please run Index.html to launch the documentation. Then, browse to  -"Installation" page to get instructions on how to install FusionCharts  -Free and use it in your projects. - -I'm a non-technical user. How do I get started? -=============================================== -If you wish to use FusionCharts Free with your presentations or static -pages, please run Index.html and read through the pertinent section. - -Or, if you're using Dreamweaver to create your websites, you might want to take -a look at FusionCharts for Dreamweaver. It allows you to build charts from the Design -View in Dreamweaver itself, without having to write even a line of code. -Please visit www.fusioncharts.com/?Dreamweaver for more details. - -I want to use FusionCharts Free in my blogs. How can I? -================================================================ -If you're familiar with HTML and JavaScript, you can upload the SWF -files to your blog and then build charts using HTML code (as explained -in our documentation). - -Or, if you're NOT comfortable with code, you may use FusionCharts -Google Gadget for Free at www.fusioncharts.com/GG to build such charts -for your blogs, without having to write a line of code. - -Where can I get support on this? -================================ -At this point in time, we do not provide personalized support for  -FusionCharts Free. However, you may visit our forums at  -www.fusioncharts.com/forum to get support from our vibrant community. - -I've started using FusionCharts Free. Can I upgrade to FusionCharts v3? -======================================================================= -Yes - very much. FusionCharts v3 is totally backward compatible with  -FusionCharts Free. So all code that you've written with FusionCharts Free -will work with FusionCharts v3. All you need to do is download/purchase -FusionCharts v3 from www.fusioncharts.com and replace the old SWF files -with new ones, and then rename either the SWF itself, or the file names in -your code. - -How can I build some of the advanced charts, gauges and maps that I  -see in your gallery at www.fusioncharts.com/gallery? -======================================================================= -To use advanced charts, gauges or maps as in our gallery, you will have to buy the apt -license of our products. We offer 4 core products that provide different types of charts, gauges -and maps: - -- FusionCharts v3 at www.fusioncharts.com. Advanced version of FusionCharts -  with features like gradients, intelligent labels, export as image/PDF/CSV etc. -- FusionWidgets v3 at www.fusioncharts.com/widgets for gauges, funnel/pyramid  -  charts, sparklines, bullet graphs etc. -- PowerCharts v3 at www.fusioncharts.com/PowerCharts for rich internet  -  application charts for specialized domains -- FusionMaps v3 at www.fusioncharts.com/maps for data-driven maps. FusionMaps -  offers over 550 maps including all continents, countries, US states and more. - -I'm an Adobe Flex developer. Can I use FusionCharts Free in my projects? -======================================================================= -While you cannot use FusionCharts Free, you can use FusionCharts for Flex -in your Adobe Flex solutions. Please see www.fusioncharts.com/flex - -I'm a Visual Basic 6.0 Developer. Can I use FusionCharts Free in my projects? -======================================================================= -Yes you can, using Flash Player OCX. We also provide a robust API for the -same at www.fusioncharts.com/VB - -I'm a FileMaker Developer. Can I use FusionCharts Free in my projects? -======================================================================= -Yes - we have FusionCharts Free for FileMaker at www.fusioncharts.com/FileMaker diff --git a/www/fusioncharts/fcf_area2d.swf b/www/fusioncharts/fcf_area2d.swf deleted file mode 100644 index 224fb17ebf..0000000000 Binary files a/www/fusioncharts/fcf_area2d.swf and /dev/null differ diff --git a/www/fusioncharts/fcf_bar2d.swf b/www/fusioncharts/fcf_bar2d.swf deleted file mode 100644 index 7b1b09e77e..0000000000 Binary files a/www/fusioncharts/fcf_bar2d.swf and /dev/null differ diff --git a/www/fusioncharts/fcf_candlestick.swf b/www/fusioncharts/fcf_candlestick.swf deleted file mode 100644 index 01ba770d7d..0000000000 Binary files a/www/fusioncharts/fcf_candlestick.swf and /dev/null differ diff --git a/www/fusioncharts/fcf_column2d.swf b/www/fusioncharts/fcf_column2d.swf deleted file mode 100644 index a514f32332..0000000000 Binary files a/www/fusioncharts/fcf_column2d.swf and /dev/null differ diff --git a/www/fusioncharts/fcf_column3d.swf b/www/fusioncharts/fcf_column3d.swf deleted file mode 100644 index 352773270e..0000000000 Binary files a/www/fusioncharts/fcf_column3d.swf and /dev/null differ diff --git a/www/fusioncharts/fcf_doughnut2d.swf b/www/fusioncharts/fcf_doughnut2d.swf deleted file mode 100644 index 58d826056d..0000000000 Binary files a/www/fusioncharts/fcf_doughnut2d.swf and /dev/null differ diff --git a/www/fusioncharts/fcf_funnel.swf b/www/fusioncharts/fcf_funnel.swf deleted file mode 100644 index 87d1c663d8..0000000000 Binary files a/www/fusioncharts/fcf_funnel.swf and /dev/null differ diff --git a/www/fusioncharts/fcf_gantt.swf b/www/fusioncharts/fcf_gantt.swf deleted file mode 100644 index de6de3ec64..0000000000 Binary files a/www/fusioncharts/fcf_gantt.swf and /dev/null differ diff --git a/www/fusioncharts/fcf_line.swf b/www/fusioncharts/fcf_line.swf deleted file mode 100644 index 547e54f8ce..0000000000 Binary files a/www/fusioncharts/fcf_line.swf and /dev/null differ diff --git a/www/fusioncharts/fcf_msarea2d.swf b/www/fusioncharts/fcf_msarea2d.swf deleted file mode 100644 index bff3774ae9..0000000000 Binary files a/www/fusioncharts/fcf_msarea2d.swf and /dev/null differ diff --git a/www/fusioncharts/fcf_msbar2d.swf b/www/fusioncharts/fcf_msbar2d.swf deleted file mode 100644 index 476d7b9060..0000000000 Binary files a/www/fusioncharts/fcf_msbar2d.swf and /dev/null differ diff --git a/www/fusioncharts/fcf_mscolumn2d.swf b/www/fusioncharts/fcf_mscolumn2d.swf deleted file mode 100644 index 0e0cbebc6c..0000000000 Binary files a/www/fusioncharts/fcf_mscolumn2d.swf and /dev/null differ diff --git a/www/fusioncharts/fcf_mscolumn2dlinedy.swf b/www/fusioncharts/fcf_mscolumn2dlinedy.swf deleted file mode 100644 index b79490140b..0000000000 Binary files a/www/fusioncharts/fcf_mscolumn2dlinedy.swf and /dev/null differ diff --git a/www/fusioncharts/fcf_mscolumn3d.swf b/www/fusioncharts/fcf_mscolumn3d.swf deleted file mode 100644 index f9bdad27bf..0000000000 Binary files a/www/fusioncharts/fcf_mscolumn3d.swf and /dev/null differ diff --git a/www/fusioncharts/fcf_mscolumn3dlinedy.swf b/www/fusioncharts/fcf_mscolumn3dlinedy.swf deleted file mode 100644 index 501291a94f..0000000000 Binary files a/www/fusioncharts/fcf_mscolumn3dlinedy.swf and /dev/null differ diff --git a/www/fusioncharts/fcf_msline.swf b/www/fusioncharts/fcf_msline.swf deleted file mode 100644 index 26329e644d..0000000000 Binary files a/www/fusioncharts/fcf_msline.swf and /dev/null differ diff --git a/www/fusioncharts/fcf_pie2d.swf b/www/fusioncharts/fcf_pie2d.swf deleted file mode 100644 index 54d8539c32..0000000000 Binary files a/www/fusioncharts/fcf_pie2d.swf and /dev/null differ diff --git a/www/fusioncharts/fcf_pie3d.swf b/www/fusioncharts/fcf_pie3d.swf deleted file mode 100644 index 1d78f79b03..0000000000 Binary files a/www/fusioncharts/fcf_pie3d.swf and /dev/null differ diff --git a/www/fusioncharts/fcf_stackedarea2d.swf b/www/fusioncharts/fcf_stackedarea2d.swf deleted file mode 100644 index 5f8d3e7a11..0000000000 Binary files a/www/fusioncharts/fcf_stackedarea2d.swf and /dev/null differ diff --git a/www/fusioncharts/fcf_stackedbar2d.swf b/www/fusioncharts/fcf_stackedbar2d.swf deleted file mode 100644 index b9dfb0baf8..0000000000 Binary files a/www/fusioncharts/fcf_stackedbar2d.swf and /dev/null differ diff --git a/www/fusioncharts/fcf_stackedcolumn2d.swf b/www/fusioncharts/fcf_stackedcolumn2d.swf deleted file mode 100644 index 7559014b84..0000000000 Binary files a/www/fusioncharts/fcf_stackedcolumn2d.swf and /dev/null differ diff --git a/www/fusioncharts/fcf_stackedcolumn3d.swf b/www/fusioncharts/fcf_stackedcolumn3d.swf deleted file mode 100644 index be1ca1c4b7..0000000000 Binary files a/www/fusioncharts/fcf_stackedcolumn3d.swf and /dev/null differ