mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
2013-07-03 Miguel de Dios <miguel.dedios@artica.es>
* include/graphs/fgraph.php: change the source code style to make more easy the merges with the last branch. * include/graphs/functions_pchart.php: fixed the water mark for pie graph as image. MERGED FROM THE BRANCH 4.0 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8462 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
696f14235b
commit
8909befbc7
@ -1,3 +1,13 @@
|
|||||||
|
2013-07-03 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* include/graphs/fgraph.php: change the source code style to make
|
||||||
|
more easy the merges with the last branch.
|
||||||
|
|
||||||
|
* include/graphs/functions_pchart.php: fixed the water mark for
|
||||||
|
pie graph as image.
|
||||||
|
|
||||||
|
MERGED FROM THE BRANCH 4.0
|
||||||
|
|
||||||
2013-07-03 Miguel de Dios <miguel.dedios@artica.es>
|
2013-07-03 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* mobile/operation/networkmap.php: fixed the scroll for browser
|
* mobile/operation/networkmap.php: fixed the scroll for browser
|
||||||
|
@ -320,6 +320,7 @@ function stacked_line_graph($flash_chart, $chart_data, $width, $height, $color,
|
|||||||
return '<img src="' . $no_data_image . '" />';
|
return '<img src="' . $no_data_image . '" />';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if($flash_chart) {
|
if($flash_chart) {
|
||||||
return flot_line_stacked_graph($chart_data, $width, $height, $color, $legend, $long_index, $homeurl, $unit, $water_mark_url);
|
return flot_line_stacked_graph($chart_data, $width, $height, $color, $legend, $long_index, $homeurl, $unit, $water_mark_url);
|
||||||
}
|
}
|
||||||
|
@ -397,6 +397,12 @@ function pch_pie_graph ($graph_type, $data_values, $legend_values, $width,
|
|||||||
$water_mark_height = 0;
|
$water_mark_height = 0;
|
||||||
$water_mark_width = 0;
|
$water_mark_width = 0;
|
||||||
if (!empty($water_mark)) {
|
if (!empty($water_mark)) {
|
||||||
|
if (is_array($water_mark)) {
|
||||||
|
if (!empty($water_mark['file'])) {
|
||||||
|
$water_mark = $water_mark['file'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$size_water_mark = getimagesize($water_mark);
|
$size_water_mark = getimagesize($water_mark);
|
||||||
$water_mark_height = $size_water_mark[1];
|
$water_mark_height = $size_water_mark[1];
|
||||||
$water_mark_width = $size_water_mark[0];
|
$water_mark_width = $size_water_mark[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user