Changeset 393
- Timestamp:
- Mar 5, 2023, 7:15:43 PM (21 months ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/controllo_voti.php
r364 r393 196 196 } 197 197 if($num_scr){ 198 $righet = "<tr align=\"center\"><td><b>"._TOT."</b></td><td><b>".number_format($tot_u,0,',','.')."</b><br><i>(".number_format($tot_u*100/$totm,2)." %)</i></td><td><b>".number_format($tot_d,0,',','.')."</b><br><i>(".number_format($tot_d*100/$totf,2)." %)</i></td><td><b>".number_format($tot_voti,0,',','.')."</b><br><i>(".number_format($tot_voti*100/$totel,2)." %)</i></td>"; 198 if(isset($totf) and $totf) $eled=number_format($tot_d*100/$totf,2); else $eled=0; 199 if(isset($totm) and $totm) $elem=number_format($tot_u*100/$totm,2); else $elem=0; 200 $righet = "<tr align=\"center\"><td><b>"._TOT."</b></td><td><b>".number_format($tot_u,0,',','.')."</b><br><i>(".$elem." %)</i></td><td><b>".number_format($tot_d,0,',','.')."</b><br><i>(".$eled." %)</i></td><td><b>".number_format($tot_voti,0,',','.')."</b><br><i>(".number_format($tot_voti*100/$totel,2)." %)</i></td>"; 199 201 // se e' un referendum o una consultazione con raggruppamenti 200 202 if($tot_validi){ -
trunk/admin/versione.php
r392 r393 1 1 <?php 2 2 3 $versione = "3.0 rev 39 2";3 $versione = "3.0 rev 393"; 4 4 $version_number = $versione; 5 $datarel = " 27 febbraio 2023";5 $datarel = "05 marzo 2023"; 6 6 $version = "Eleonline $version_number (<i>Data Release: $datarel</i>)"; 7 7 -
trunk/client/modules/Elezioni/consiglieri.php
r384 r393 218 218 $res->execute(); 219 219 $numgruppi=$res->rowCount(); 220 $sql = "SELECT sum(validi_lista+contestati_lista) from ".$prefix."_ele_sezioni where id_cons='$id_cons'"; 221 $res = $dbi->prepare("$sql"); 222 $res->execute(); 223 list($valista)=$res->fetch(PDO::FETCH_NUM); 220 224 $PNE=_PRIMONON; 221 225 $CSEC=_SINDCONS; … … 265 269 } 266 270 #seleziona la lista (o liste) con più voti 267 $sql = "SELECT t1.descrizione, t2.id_lista,t2.num_lista, t 2.num_gruppo, sum(t2.voti) as voti from ".$prefix."_ele_voti_lista as t2 left join ".$prefix."_ele_lista as t1 on t1.id_lista=t2.id_lista where t2.id_cons='$id_cons' group by t2.id_lista,t2.num_lista,t2.num_gruppo, t1.descrizione order by voti desc";271 $sql = "SELECT t1.descrizione, t2.id_lista,t2.num_lista, t1.num_gruppo, sum(t2.voti) as voti from ".$prefix."_ele_voti_lista as t2 left join ".$prefix."_ele_lista as t1 on t1.id_lista=t2.id_lista where t2.id_cons='$id_cons' group by t2.id_lista,t2.num_lista,t1.num_gruppo, t1.descrizione order by voti desc"; 268 272 $res_per = $dbi->prepare("$sql"); 269 273 $res_per->execute(); … … 274 278 # $votimax=0; 275 279 $contalst=0; 276 $mag=intval($vali di/2)+1;280 $mag=intval($valista/2)+1; 277 281 $lim5=intval($validi/20); 278 282 $varmag=0; -
trunk/client/versione.php
r392 r393 1 1 <?php 2 2 3 $versione = "3.0 rev 39 2";3 $versione = "3.0 rev 393"; 4 4 $version_number = $versione; 5 $datarel = " 27 febbraio 2023";5 $datarel = "05 marzo 2023"; 6 6 $version = "Eleonline $version_number (<i>Data Release: $datarel</i>)"; 7 7
Note:
See TracChangeset
for help on using the changeset viewer.