Changeset 412 for trunk/client/modules/Elezioni/blocchi/gom_affluenze.php
- Timestamp:
- May 2, 2024, 9:21:31 AM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/blocchi/gom_affluenze.php
r399 r412 86 86 $resto=100-$perc; 87 87 if ($genere==0){echo "<div style=\"text-align:center;margin-left: 10px;\"><hr/>referendum n. $num_gruppo</div>";} 88 echo "<div style=\"text-align:center\">sezioni n. $numero su $sezioni</div>"; 89 echo "<div style=\"text-align:center; margin-left: 10px;\"><img src=\"http://chart.apis.google.com/chart? 90 chs=200x110 91 &chd=t:$perc 92 &cht=gom 93 &chl=$perc% 94 &chco=ff0000,ffff00 \" 95 alt=\"Sample chart\" /> 96 <a href=\"modules.php?id_cons_gen=$id_cons_gen&name=Elezioni&id_comune=$id_comune&file=index&op=affluenze_graf\">Tutte le affluenze</a> 88 echo "<div>sezioni n. $numero su $sezioni</div>"; 89 echo "<div style=\"text-align:center;\">"; 90 ##########################<script type=\"text/javascript\" src=\"https://www.gstatic.com/charts/loader.js\"></script> 91 echo " 92 <script type=\"text/javascript\"> 93 google.charts.load('current', {'packages':['gauge']}); 94 google.charts.setOnLoadCallback(drawGauge); 95 96 var gaugeOptions = {min: 0, max: 100, yellowFrom: 100, yellowTo: 100, 97 redFrom: 100, redTo: 100, minorTicks: 5}; 98 var gauge; 99 100 function drawGauge() { 101 gaugeData = new google.visualization.DataTable(); 102 gaugeData.addColumn('number', 'Votanti'); 103 gaugeData.addRows(1); 104 gaugeData.setCell(0, 0, $perc); 105 106 gauge = new google.visualization.Gauge(document.getElementById('gauge_div')); 107 gauge.draw(gaugeData, gaugeOptions); 108 } 109 </script>"; 110 echo "<div id=\"gauge_div\" style=\"width:130px; height: 130px; ;margin-left: 30px\"></div> <a href=\"modules.php?id_cons_gen=$id_cons_gen&name=Elezioni&id_comune=$id_comune&file=index&op=affluenze_graf\">Tutte le affluenze</a> 97 111 </div>"; 98 112
Note:
See TracChangeset
for help on using the changeset viewer.