- Timestamp:
- Apr 1, 2025, 5:21:19 PM (8 months ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
admin/modules/Elezioni/dait_politiche.php (modified) (2 diffs)
-
admin/versione.php (modified) (1 diff)
-
client/temi/bootstrap/pagine/grafici/affluenza.php (modified) (5 diffs)
-
client/temi/bootstrap/pagine/grafici/votanti.php (modified) (1 diff)
-
client/temi/bootstrap/pagine/grafici/votidigruppo.php (modified) (1 diff)
-
client/temi/bootstrap/pagine/grafici/votidilista.php (modified) (2 diffs)
-
client/versione.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/dait_politiche.php
r446 r447 96 96 # echo "<br>TEST: --- :".print_r($collegipluri); 97 97 # echo "TEST:".var_dump($collegicamera); 98 if(!isset($filtrato) ) {98 if(!isset($filtrato) or (isset($filtrato) and count($filtrato)==0)) { 99 99 $linesuni=$csvData[0]; 100 100 $linespluri=$csvData[1]; … … 113 113 $flag=0; 114 114 # $collegiorif=substr($tmpcollegio,0,strlen($lineuni[1])) 115 foreach($collegipluri as $tmpcollegio) 115 foreach($collegipluri as $tmpcollegio) { 116 116 if($linepluri[1]==$tmpcollegio and $lineuni[2]==$linepluri[2]) { $flag=1;} 117 # echo "<br>TEST:$flag:$tmpcollegio::".$linepluri[1]; 117 # echo "<br>TEST:$flag:$tmpcollegio::".$linepluri[1]." - ".$lineuni[2]." - ".$linepluri[2]; 118 } 118 119 if(!$flag) continue; 119 120 if(isset($lineuni[2]) and isset($linepluri[2])){ # and strrpos($lineuni[2],$linepluri[2],0) -
trunk/admin/versione.php
r446 r447 1 1 <?php 2 2 3 $versione = "3.0 rev 44 6";3 $versione = "3.0 rev 447"; 4 4 $version_number = $versione; 5 5 $datarel = "01 aprile 2025"; -
trunk/client/temi/bootstrap/pagine/grafici/affluenza.php
r443 r447 4 4 $row=totale_iscritti(0); 5 5 $tot=$row[0][2]; 6 $row=scrutinio_affluenze(); 7 $scrutinate=$row[0][0]; 8 $sezionitotali=sezioni_totali(); 6 9 $row=affluenze_totali(0); 7 10 $labels=array(); … … 29 32 $voti_prec[]=number_format($val[2],0,'','.'); 30 33 } 34 }else{ 35 foreach($voti as $val){ 36 $voti_prec_percentuali[]=''; 37 $voti_prec[]=''; 38 } 31 39 } 32 40 … … 55 63 } 56 64 </style> 57 58 65 <div class="container"> 59 66 <div class="row text-center"> 60 67 <h4 class="fw-semibold text-primary mobile-expanded mt-2">Affluenza</h4> 61 68 </div> 69 <div class="table-responsive overflow-x"> 70 <table class="table mb-0"> 71 <thead class="title-content"> 72 <tr> 73 <th>Affluenza</th> 74 <?php if ($scrutinate == $sezionitotali) {?> 75 <th class="text-end">Dati finali</th> 76 <?php } else {?> 77 <th class="text-end"><span>Sezioni scrutinate: <?php echo $scrutinate; ?> su <?php echo $sezionitotali; ?></span></th> 78 <?php }?> 79 </tr> 80 </thead> 81 </table> 82 </div> 62 83 <div id="chartContainer"> 63 84 <canvas id="affluenzaChart"></canvas> … … 95 116 backgroundColor: 'rgba(240,128,128)', // Rosso brillante 96 117 borderWidth: 1 97 } ,118 } <?php if(count($rowpre)) { ?>, 98 119 { 99 120 label: 'Affluenza Precedente', … … 102 123 borderWidth: 1 103 124 } 125 <?php } ?> 104 126 ] 105 127 }, -
trunk/client/temi/bootstrap/pagine/grafici/votanti.php
r444 r447 39 39 <div class="row text-center"> 40 40 <h4 class="fw-semibold text-primary mobile-expanded mt-2">Distribuzione dei Voti<br> 41 <?php if ($scrutinate == $sezionitotali) {?>42 <th class="text-end">Dati finali</th>43 <?php } else {?>44 <th class="text-end"><span>Sezioni scrutinate: <?php echo $scrutinate; ?> su <?php echo $sezionitotali; ?></span></th>45 <?php }?>46 41 </h4> 47 42 </div> 43 <div class="table-responsive overflow-x"> 44 <table class="table mb-0"> 45 <thead class="title-content"> 46 <tr> 47 <th>Votanti</th> 48 <?php if ($scrutinate == $sezionitotali) {?> 49 <th class="text-end">Dati finali</th> 50 <?php } else {?> 51 <th class="text-end"><span>Sezioni scrutinate: <?php echo $scrutinate; ?> su <?php echo $sezionitotali; ?></span> 52 </th> 53 <?php }?> 54 </tr> 55 </thead> 56 </table> 57 </div> 48 58 <div id="chartContainer"> 49 59 <canvas id="votiChart"></canvas> -
trunk/client/temi/bootstrap/pagine/grafici/votidigruppo.php
r444 r447 42 42 <div class="container"> 43 43 <div class="row text-center"> 44 <h4 class="fw-semibold text-primary mobile-expanded mt-2">Voti per i45 <?php if ($tipo_cons==3 or $tipo_cons==5) echo "Candidati a Sindaco";46 elseif ($tipo_cons==1 or $tipo_cons==4 or $tipo_cons==9 or $tipo_cons==12 or $tipo_cons==13 or $tipo_cons==17 ) echo "Candidati a Presidente";44 <h4 class="fw-semibold text-primary mobile-expanded mt-2">Voti per 45 <?php if ($tipo_cons==3 or $tipo_cons==5) echo _GRUPPO; 46 elseif ($tipo_cons==1 or $tipo_cons==4 or $tipo_cons==9 or $tipo_cons==12 or $tipo_cons==13 or $tipo_cons==17 ) echo _GRUPPO; 47 47 else echo "Raggruppamenti"; 48 48 echo "<br>"; -
trunk/client/temi/bootstrap/pagine/grafici/votidilista.php
r444 r447 37 37 #chartContainer { 38 38 width: 100%; 39 height: <?php echo min( 500 + count($labels) * 20, 900); ?>px; /* L'altezza si adatta al numero di liste */39 height: <?php echo min(300 + count($labels) * 30, 900); ?>px; /* L'altezza si adatta al numero di liste */ 40 40 margin: 0 auto; 41 41 } … … 53 53 <div class="row text-center"> 54 54 <h4 class="fw-semibold text-primary mobile-expanded mt-2">Voti di Lista<br> 55 <?php if ($scrutinate == $sezionitotali) {?>56 <th class="text-end">Dati finali</th>57 <?php } else {?>58 <th class="text-end"><span>Sezioni scrutinate: <?php echo $scrutinate; ?> su <?php echo $sezionitotali; ?></span></th>59 <?php }?>60 55 </h4> 61 56 </div> 62 57 <div class="table-responsive overflow-x"> 58 <table class="table mb-0"> 59 <thead class="title-content"> 60 <tr> 61 <th><?php echo _LISTE;?></th> 62 <?php if ($scrutinate == $sezionitotali) {?> 63 <th class="text-end">Dati finali</th> 64 <?php } else {?> 65 <th class="text-end"><span>Sezioni scrutinate: <?php echo $scrutinate; ?> su <?php echo $sezionitotali; ?></span></th> 66 <?php }?> 67 </tr> 68 </thead> 69 </table> 70 </div> 63 71 <!-- Legenda sopra il grafico --> 64 72 <div class="row mb-3"> -
trunk/client/versione.php
r446 r447 1 1 <?php 2 $versione = "3.0 rev 44 6";2 $versione = "3.0 rev 447"; 3 3 $version_number = $versione; 4 4 $datarel = "01 aprile 2025";
Note:
See TracChangeset
for help on using the changeset viewer.
