Changeset 412 for trunk/client
- Timestamp:
- May 2, 2024, 9:21:31 AM (6 months ago)
- Location:
- trunk/client
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/inc/javascript.php
r347 r412 143 143 </script> 144 144 '; 145 } 146 echo '<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>'; 145 147 146 }147 148 ?> -
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 -
trunk/client/modules/Elezioni/blocchi/pie_affluenze.php
r400 r412 83 83 $resto=100-$perc; 84 84 if ($genere==0){echo "<div style=\"text-align:center\">referendum n. $num_gruppo</div";} 85 echo '<center> 86 <div id="piechart" style="width:100%; min-height:200px;"></div><br/> 87 <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 </center> 89 <script>google.charts.load("current", {"packages":["corechart"]}); 90 google.charts.setOnLoadCallback(drawChart); 91 92 function drawChart() { 93 var data = google.visualization.arrayToDataTable([ 94 ["Task", "Affluenze"], 95 ["", '.$resto.'], 96 ["'.$perc.'%", '.$perc.'] 97 ]); 98 var options = { 99 title: "", 100 is3D:true, 101 legend: "none", 102 pieSliceText: "label", 103 pieSliceTextStyle: { 104 color: "#000", 105 bold:true, 106 fontSize:12 107 }, 108 slices: { 109 0: { color: "#ff0000", textStyle:{color:"#fff"}}, 110 1: { color: "#ffff00" } 111 } 112 }; 113 var chart = new google.visualization.PieChart(document.getElementById("piechart")); 85 114 86 echo "<center><img src=\"http://chart.apis.google.com/chart? 87 chs=200x70 88 &chd=t:$resto,$perc 89 &cht=p3 90 &chl=|$perc% 91 &chco=ff0000,ffff00 \" 92 alt=\"Sample chart\" /> 93 <br/> <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> 94 </center>"; 95 96 97 115 chart.draw(data, options); 116 }</script>'; 98 117 } 99 118 -
trunk/client/versione.php
r411 r412 1 1 <?php 2 2 3 $versione = "3.0 rev 41 1";3 $versione = "3.0 rev 412"; 4 4 $version_number = $versione; 5 $datarel = "0 6 aprile2024";5 $datarel = "02 maggio 2024"; 6 6 $version = "Eleonline $version_number (<i>Data Release: $datarel</i>)"; 7 7
Note:
See TracChangeset
for help on using the changeset viewer.