From dfc4e20b8e9ca57340e24143539498fb82527697 Mon Sep 17 00:00:00 2001 From: randommonk Date: Thu, 4 Jan 2018 22:52:54 +0000 Subject: Bumped version to 4.3. Added jpgraph stats developed by killerEye --- html/pages/match_info_charts.php | 85 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 html/pages/match_info_charts.php (limited to 'html/pages/match_info_charts.php') diff --git a/html/pages/match_info_charts.php b/html/pages/match_info_charts.php new file mode 100644 index 0000000..a6170e7 --- /dev/null +++ b/html/pages/match_info_charts.php @@ -0,0 +1,85 @@ +0) { + $i = 0; + + // cycle over charts + while ($chart = mysql_fetch_array($charts)) { + + // retrieve both generic as the specific data + $category = $chart['category']; + $type = $chart['type']; + $color = $chart['color']; + $layout = $chart['layout']; + $charttype = $chart['charttype']; + $columns = $chart['columns']; + $title = $chart['title']; + $data = unserialize(gzdecode($chart['data'])); + $labels = unserialize(gzdecode($chart['labels'])); + $categories = unserialize(gzdecode($chart['categories'])); + + // append previous chart - this is done to ensure proper outlining (can only know in +1 round) + $chartOutput .= $prevRenderedChart; + + // print a new section if we're now in a different category + if($category != $prevCategory) { + + if(strlen($prevCategory)>0) + $chartOutput .= renderFootBlock(); + + $chartOutput .= renderHeaderBlock($category); + $prevCategory = $category; + + } else { + if($i>1 && $i%2 == 0) + $chartOutput .= ""; + else + $chartOutput .= ""; + } + + $prevRenderedChart = renderChart($mid."-".$i,$layout,$color,$title,$data,$labels,$categories,$renderer_width*$columns,$renderer_heigth,$charttype); + + $i++; + } + + // finishing up + $chartOutput .= $prevRenderedChart; + $chartOutput .= renderFootBlock(); + + echo " + + "; + + echo $chartOutput; +} + + + +?> \ No newline at end of file -- cgit