Code Context <div class="col-lg-12">
<div class="form-group">
<textarea id="websend_msg" class="form-control" placeholder="Treść"><?php echo $_SERVER['SCRIPT_URI']; ?></textarea>
$viewFile = '/var/www/vhost/raportroczny2015/app/View/Layouts/default.ctp'
$dataForView = array(
'element' => array(
'common' => array(),
'helper' => array(
'wykres' => '11'
)
),
'app_element' => array(
'controller' => 'strona',
'action' => 'wykresy_interaktywne',
'lang' => 'PL'
),
'content_for_layout' => '<div class="container">
<div class="container-fluid">
<div class="row m-t-20">
<div class="col-md-12">
<div class="row">
<div class="col-md-12">
<div class="green_rectangle_top"></div>
<h2 class="section_title_top">Produkcja energii elektrycznej brutto w Grupie Energa </h2>
</div>
</div>
<div class="row">
<div class="col-md-10">
<h3 class="site_headline purple">Produkcja energii elektrycznej brutto w Grupie Energa w GWh</h3>
</div>
<div class="col-md-2 col-xs-12">
<a href="/strona/wykresy_interaktywne" target="_self">
<div class="knefel_interactive">
Powrót do spisu
</div>
</a>
</div>
</div>
<table class="table">
<thead>
<tr>
<th></th>
<th>2015</th>
<th>2014</th>
<th>2013</th>
<th>2012</th>
<th>Zmiana<br> 2015/2014 (%)</th>
</tr>
</thead>
<tbody>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Elektrownie - węgiel kamienny"
data-val1="2226" data-val1b="2 226"
data-val2="3109" data-val2b="3 109"
data-val3="2944" data-val3b="2 944"
data-val4="2564" data-val4b="2 564"
data-val6="-28%" data-val6b="-28%"
>
<td >Elektrownie - węgiel kamienny</td>
<td class="center">2 226</td>
<td class="center">3 109</td>
<td class="center">2 944</td>
<td class="center">2 564</td>
<td class="center">-28%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Elektrownie - współspalanie biomasy"
data-val1="609" data-val1b="609"
data-val2="643" data-val2b="643"
data-val3="692" data-val3b="692"
data-val4="541" data-val4b="541"
data-val6="-5%" data-val6b="-5%"
>
<td >Elektrownie - współspalanie biomasy</td>
<td class="center">609</td>
<td class="center">643</td>
<td class="center">692</td>
<td class="center">541</td>
<td class="center">-5%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Elektrociepłownie - węgiel kamienny"
data-val1="131" data-val1b="131"
data-val2="153" data-val2b="153"
data-val3="144" data-val3b="144"
data-val4="201" data-val4b="201"
data-val6="-15%" data-val6b="-15%"
>
<td >Elektrociepłownie - węgiel kamienny</td>
<td class="center">131</td>
<td class="center">153</td>
<td class="center">144</td>
<td class="center">201</td>
<td class="center">-15%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Elektrociepłownie - biomasa"
data-val1="24" data-val1b="24"
data-val2="20" data-val2b="20"
data-val3="0" data-val3b="0"
data-val4="12" data-val4b="12"
data-val6="19%" data-val6b="19%"
>
<td >Elektrociepłownie - biomasa</td>
<td class="center">24</td>
<td class="center">20</td>
<td class="center">0</td>
<td class="center">12</td>
<td class="center">19%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Elektrownie - woda"
data-val1="687" data-val1b="687"
data-val2="837" data-val2b="837"
data-val3="1008" data-val3b="1 008"
data-val4="733" data-val4b="733"
data-val6="-18%" data-val6b="-18%"
>
<td >Elektrownie - woda</td>
<td class="center">687</td>
<td class="center">837</td>
<td class="center">1 008</td>
<td class="center">733</td>
<td class="center">-18%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Elektrownia szczytowo-pompowa"
data-val1="37" data-val1b="37"
data-val2="34" data-val2b="34"
data-val3="29" data-val3b="29"
data-val4="22" data-val4b="22"
data-val6="8%" data-val6b="8%"
>
<td >Elektrownia szczytowo-pompowa</td>
<td class="center">37</td>
<td class="center">34</td>
<td class="center">29</td>
<td class="center">22</td>
<td class="center">8%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Elektrownie - wiatr"
data-val1="419" data-val1b="419"
data-val2="308" data-val2b="308"
data-val3="151" data-val3b="151"
data-val4="-" data-val4b="-"
data-val6="36%" data-val6b="36%"
>
<td >Elektrownie - wiatr</td>
<td class="center">419</td>
<td class="center">308</td>
<td class="center">151</td>
<td class="center">-</td>
<td class="center">36%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Elektrownie - fotowoltaika"
data-val1="4" data-val1b="4"
data-val2="-" data-val2b="-"
data-val3="-" data-val3b="-"
data-val4="-" data-val4b="-"
data-val6="100%" data-val6b="1 00%"
>
<td >Elektrownie - fotowoltaika</td>
<td class="center">4</td>
<td class="center">-</td>
<td class="center">-</td>
<td class="center">-</td>
<td class="center">1 00%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Produkcja energii razem"
data-val1="4136" data-val1b="4 136"
data-val2="5103" data-val2b="5 103"
data-val3="4967" data-val3b="4 967"
data-val4="4072" data-val4b="4 072"
data-val6="-19%" data-val6b="-19%"
>
<td >Produkcja energii razem</td>
<td class="center">4 136</td>
<td class="center">5 103</td>
<td class="center">4 967</td>
<td class="center">4 072</td>
<td class="center">-19%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="w tym z OZE"
data-val1="1743" data-val1b="1 743"
data-val2="1808" data-val2b="1 808"
data-val3="1851" data-val3b="1 851"
data-val4="1285" data-val4b="1 285"
data-val6="-4%" data-val6b="-4%"
>
<td >w tym z OZE</td>
<td class="center">1 743</td>
<td class="center">1 808</td>
<td class="center">1 851</td>
<td class="center">1 285</td>
<td class="center">-4%</td>
</tr> </tbody>
</table>
</div>
<div class="col-md-12">
<div id="chart_div_1"></div>
</div>
</div>
</div>
<script>
google.charts.load('current', {packages: ['corechart', 'bar']});
google.charts.setOnLoadCallback(chart_div_1);
active_group = 'g0';
$(document).ready(function(){
$('.badabumik').on('click', function(){
check = $(this).data('check');
clask = $(this).data('class');
if(active_group != clask){
$('.badabumik').data('check',0);
$('.badabumik').removeClass('success');
}
active_group = clask;
if($(this).data('check')=='0'){
$(this).data('check','1');
$(this).addClass('success');
}else{
$(this).data('check','0');
$(this).removeClass('success');
}
chart_div_1();
});
});
function chart_div_1(){
zz=0;
desc = [''];
ar_2012 = ['2015'];
ar_2013 = ['2014'];
ar_2014 = ['2013'];
ar_2015 = ['2012'];
min = 0;
max = 0;
$('.badabumik').each(function(){
th=$(this);
if(th.data('check')==1){
zz++;
desc.push(th.data('val0')); desc.push({ role: 'tooltip'});
if(min>parseFloat(th.data('val1'))){ min = parseFloat(th.data('val1'))};
if(max<parseFloat(th.data('val1'))){ max = parseFloat(th.data('val1'))};
ar_2012.push(parseFloat(th.data('val1')));
ar_2012.push(th.data('val0')+': '+th.data('val1b'));
if(min>parseFloat(th.data('val2'))){ min = parseFloat(th.data('val2'))};
if(max<parseFloat(th.data('val2'))){ max = parseFloat(th.data('val2'))};
ar_2013.push(parseFloat(th.data('val2')));
ar_2013.push(th.data('val0')+': '+th.data('val2b'));
if(min>parseFloat(th.data('val3'))){ min = parseFloat(th.data('val3'))};
if(max<parseFloat(th.data('val3'))){ max = parseFloat(th.data('val3'))};
ar_2014.push(parseFloat(th.data('val3')));
ar_2014.push(th.data('val0')+': '+th.data('val3b'));
if(min>parseFloat(th.data('val4'))){ min = parseFloat(th.data('val4'))};
if(max<parseFloat(th.data('val4'))){ max = parseFloat(th.data('val4'))};
ar_2015.push(parseFloat(th.data('val4')));
ar_2015.push(th.data('val0')+': '+th.data('val4b'));
}
});
if(zz==0){
$('#chart_div_1').html('<p style="margin-top: 40px; font-family: EnergaBold, sans-serif; font-size: 18px; ">Proszę wybrać dane</p>');
}else{
ar = [desc];
ar.push(ar_2012);
ar.push(ar_2013);
ar.push(ar_2014);
ar.push(ar_2015);
var data = google.visualization.arrayToDataTable(ar);
var options = {
width: '100%',
height: 700,
legend: 'none',
colors: ['#6FB43F', '#C1D72D', '#d8d8d8', '#640036'],
annotations: {
alwaysInside: true,
textStyle: {
fontSize: 12,
color: '#000'
}
},
tooltip:{
format: 'percent'
},
vAxis: {
viewWindow: {
min: min,
max: max
},
baseline: 0,
// baselineColor: '#7c7c7c',
gridlines: {count: 0}
},
hAxis: {
textStyle:{color: '#666'},
gridlines: {count: 0}
},
};
var chart = new google.visualization.ColumnChart(document.getElementById('chart_div_1'));
chart.draw(data, options);
}
}
</script>
</div>
',
'scripts_for_layout' => '',
'title_for_layout' => 'Strona'
)
$element = array(
'common' => array(),
'helper' => array(
'wykres' => '11'
)
)
$app_element = array(
'controller' => 'strona',
'action' => 'wykresy_interaktywne',
'lang' => 'PL'
)
$content_for_layout = '<div class="container">
<div class="container-fluid">
<div class="row m-t-20">
<div class="col-md-12">
<div class="row">
<div class="col-md-12">
<div class="green_rectangle_top"></div>
<h2 class="section_title_top">Produkcja energii elektrycznej brutto w Grupie Energa </h2>
</div>
</div>
<div class="row">
<div class="col-md-10">
<h3 class="site_headline purple">Produkcja energii elektrycznej brutto w Grupie Energa w GWh</h3>
</div>
<div class="col-md-2 col-xs-12">
<a href="/strona/wykresy_interaktywne" target="_self">
<div class="knefel_interactive">
Powrót do spisu
</div>
</a>
</div>
</div>
<table class="table">
<thead>
<tr>
<th></th>
<th>2015</th>
<th>2014</th>
<th>2013</th>
<th>2012</th>
<th>Zmiana<br> 2015/2014 (%)</th>
</tr>
</thead>
<tbody>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Elektrownie - węgiel kamienny"
data-val1="2226" data-val1b="2 226"
data-val2="3109" data-val2b="3 109"
data-val3="2944" data-val3b="2 944"
data-val4="2564" data-val4b="2 564"
data-val6="-28%" data-val6b="-28%"
>
<td >Elektrownie - węgiel kamienny</td>
<td class="center">2 226</td>
<td class="center">3 109</td>
<td class="center">2 944</td>
<td class="center">2 564</td>
<td class="center">-28%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Elektrownie - współspalanie biomasy"
data-val1="609" data-val1b="609"
data-val2="643" data-val2b="643"
data-val3="692" data-val3b="692"
data-val4="541" data-val4b="541"
data-val6="-5%" data-val6b="-5%"
>
<td >Elektrownie - współspalanie biomasy</td>
<td class="center">609</td>
<td class="center">643</td>
<td class="center">692</td>
<td class="center">541</td>
<td class="center">-5%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Elektrociepłownie - węgiel kamienny"
data-val1="131" data-val1b="131"
data-val2="153" data-val2b="153"
data-val3="144" data-val3b="144"
data-val4="201" data-val4b="201"
data-val6="-15%" data-val6b="-15%"
>
<td >Elektrociepłownie - węgiel kamienny</td>
<td class="center">131</td>
<td class="center">153</td>
<td class="center">144</td>
<td class="center">201</td>
<td class="center">-15%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Elektrociepłownie - biomasa"
data-val1="24" data-val1b="24"
data-val2="20" data-val2b="20"
data-val3="0" data-val3b="0"
data-val4="12" data-val4b="12"
data-val6="19%" data-val6b="19%"
>
<td >Elektrociepłownie - biomasa</td>
<td class="center">24</td>
<td class="center">20</td>
<td class="center">0</td>
<td class="center">12</td>
<td class="center">19%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Elektrownie - woda"
data-val1="687" data-val1b="687"
data-val2="837" data-val2b="837"
data-val3="1008" data-val3b="1 008"
data-val4="733" data-val4b="733"
data-val6="-18%" data-val6b="-18%"
>
<td >Elektrownie - woda</td>
<td class="center">687</td>
<td class="center">837</td>
<td class="center">1 008</td>
<td class="center">733</td>
<td class="center">-18%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Elektrownia szczytowo-pompowa"
data-val1="37" data-val1b="37"
data-val2="34" data-val2b="34"
data-val3="29" data-val3b="29"
data-val4="22" data-val4b="22"
data-val6="8%" data-val6b="8%"
>
<td >Elektrownia szczytowo-pompowa</td>
<td class="center">37</td>
<td class="center">34</td>
<td class="center">29</td>
<td class="center">22</td>
<td class="center">8%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Elektrownie - wiatr"
data-val1="419" data-val1b="419"
data-val2="308" data-val2b="308"
data-val3="151" data-val3b="151"
data-val4="-" data-val4b="-"
data-val6="36%" data-val6b="36%"
>
<td >Elektrownie - wiatr</td>
<td class="center">419</td>
<td class="center">308</td>
<td class="center">151</td>
<td class="center">-</td>
<td class="center">36%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Elektrownie - fotowoltaika"
data-val1="4" data-val1b="4"
data-val2="-" data-val2b="-"
data-val3="-" data-val3b="-"
data-val4="-" data-val4b="-"
data-val6="100%" data-val6b="1 00%"
>
<td >Elektrownie - fotowoltaika</td>
<td class="center">4</td>
<td class="center">-</td>
<td class="center">-</td>
<td class="center">-</td>
<td class="center">1 00%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="Produkcja energii razem"
data-val1="4136" data-val1b="4 136"
data-val2="5103" data-val2b="5 103"
data-val3="4967" data-val3b="4 967"
data-val4="4072" data-val4b="4 072"
data-val6="-19%" data-val6b="-19%"
>
<td >Produkcja energii razem</td>
<td class="center">4 136</td>
<td class="center">5 103</td>
<td class="center">4 967</td>
<td class="center">4 072</td>
<td class="center">-19%</td>
</tr>
<tr class="badabumik g1 interactive" data-check="0" data-class="g1"
data-val0="w tym z OZE"
data-val1="1743" data-val1b="1 743"
data-val2="1808" data-val2b="1 808"
data-val3="1851" data-val3b="1 851"
data-val4="1285" data-val4b="1 285"
data-val6="-4%" data-val6b="-4%"
>
<td >w tym z OZE</td>
<td class="center">1 743</td>
<td class="center">1 808</td>
<td class="center">1 851</td>
<td class="center">1 285</td>
<td class="center">-4%</td>
</tr> </tbody>
</table>
</div>
<div class="col-md-12">
<div id="chart_div_1"></div>
</div>
</div>
</div>
<script>
google.charts.load('current', {packages: ['corechart', 'bar']});
google.charts.setOnLoadCallback(chart_div_1);
active_group = 'g0';
$(document).ready(function(){
$('.badabumik').on('click', function(){
check = $(this).data('check');
clask = $(this).data('class');
if(active_group != clask){
$('.badabumik').data('check',0);
$('.badabumik').removeClass('success');
}
active_group = clask;
if($(this).data('check')=='0'){
$(this).data('check','1');
$(this).addClass('success');
}else{
$(this).data('check','0');
$(this).removeClass('success');
}
chart_div_1();
});
});
function chart_div_1(){
zz=0;
desc = [''];
ar_2012 = ['2015'];
ar_2013 = ['2014'];
ar_2014 = ['2013'];
ar_2015 = ['2012'];
min = 0;
max = 0;
$('.badabumik').each(function(){
th=$(this);
if(th.data('check')==1){
zz++;
desc.push(th.data('val0')); desc.push({ role: 'tooltip'});
if(min>parseFloat(th.data('val1'))){ min = parseFloat(th.data('val1'))};
if(max<parseFloat(th.data('val1'))){ max = parseFloat(th.data('val1'))};
ar_2012.push(parseFloat(th.data('val1')));
ar_2012.push(th.data('val0')+': '+th.data('val1b'));
if(min>parseFloat(th.data('val2'))){ min = parseFloat(th.data('val2'))};
if(max<parseFloat(th.data('val2'))){ max = parseFloat(th.data('val2'))};
ar_2013.push(parseFloat(th.data('val2')));
ar_2013.push(th.data('val0')+': '+th.data('val2b'));
if(min>parseFloat(th.data('val3'))){ min = parseFloat(th.data('val3'))};
if(max<parseFloat(th.data('val3'))){ max = parseFloat(th.data('val3'))};
ar_2014.push(parseFloat(th.data('val3')));
ar_2014.push(th.data('val0')+': '+th.data('val3b'));
if(min>parseFloat(th.data('val4'))){ min = parseFloat(th.data('val4'))};
if(max<parseFloat(th.data('val4'))){ max = parseFloat(th.data('val4'))};
ar_2015.push(parseFloat(th.data('val4')));
ar_2015.push(th.data('val0')+': '+th.data('val4b'));
}
});
if(zz==0){
$('#chart_div_1').html('<p style="margin-top: 40px; font-family: EnergaBold, sans-serif; font-size: 18px; ">Proszę wybrać dane</p>');
}else{
ar = [desc];
ar.push(ar_2012);
ar.push(ar_2013);
ar.push(ar_2014);
ar.push(ar_2015);
var data = google.visualization.arrayToDataTable(ar);
var options = {
width: '100%',
height: 700,
legend: 'none',
colors: ['#6FB43F', '#C1D72D', '#d8d8d8', '#640036'],
annotations: {
alwaysInside: true,
textStyle: {
fontSize: 12,
color: '#000'
}
},
tooltip:{
format: 'percent'
},
vAxis: {
viewWindow: {
min: min,
max: max
},
baseline: 0,
// baselineColor: '#7c7c7c',
gridlines: {count: 0}
},
hAxis: {
textStyle:{color: '#666'},
gridlines: {count: 0}
},
};
var chart = new google.visualization.ColumnChart(document.getElementById('chart_div_1'));
chart.draw(data, options);
}
}
</script>
</div>
'
$scripts_for_layout = ''
$title_for_layout = 'Strona'
include - APP/View/Layouts/default.ctp, line 91
View::_evaluate() - CORE/Cake/View/View.php, line 961
View::_render() - CORE/Cake/View/View.php, line 923
View::renderLayout() - CORE/Cake/View/View.php, line 546
View::render() - CORE/Cake/View/View.php, line 481
Controller::render() - CORE/Cake/Controller/Controller.php, line 960
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 118