Changeset 261 for trunk/admin
- Timestamp:
- May 27, 2017, 9:20:05 PM (7 years ago)
- Location:
- trunk/admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/controllo_voti.php
r163 r261 26 26 $perms=ChiSei($id_cons_gen); 27 27 if ($perms<16 or !$id_cons_gen) die("$perms Non hai i permessi per inserire dati, o non hai scelto la consultazione!"); 28 $res = mysql_query("SELECT t1.tipo_cons,t2.id_cons FROM ".$prefix."_ele_consultazione as t1, ".$prefix."_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen and t2.id_cons_gen='$id_cons_gen' and t2.id_comune='$id_comune'" , $dbi);29 list($tipo_cons,$id_cons ) = mysql_fetch_row($res);28 $res = mysql_query("SELECT t1.tipo_cons,t2.id_cons,t2.solo_gruppo,t2.disgiunto FROM ".$prefix."_ele_consultazione as t1, ".$prefix."_ele_cons_comune as t2 where t1.id_cons_gen=t2.id_cons_gen and t2.id_cons_gen='$id_cons_gen' and t2.id_comune='$id_comune'" , $dbi); 29 list($tipo_cons,$id_cons,$dettnulli,$disgiunto) = mysql_fetch_row($res); 30 30 $res = mysql_query("SELECT genere,voto_g,voto_l FROM ".$prefix."_ele_tipo where tipo_cons='$tipo_cons' " , $dbi); 31 31 list($genere,$votog,$votol) = mysql_fetch_row($res); … … 120 120 $scrutinate++; 121 121 // fine inserimento 122 if (($genere==2 or $genere==3 or $genere==5) and !$votog ) {122 if (($genere==2 or $genere==3 or $genere==5) and !$votog and !$dettnulli) { 123 123 $respref = mysql_query("select sum(voti) from ".$prefix."_ele_voti_gruppo where id_sez='$id'", $dbi); 124 124 list ($gruppref) = mysql_fetch_row($respref); … … 151 151 $righe .= "<td>".number_format($validi,0,',','.')."</td><td>$nulli</td><td>$bianchi</td><td>$contestati</td>"; 152 152 $g_err=0; 153 if (($genere==2 or $genere==3 or $genere==5) and $pag==1 and !$votog ) {153 if (($genere==2 or $genere==3 or $genere==5) and $pag==1 and !$votog and !$dettnulli) { 154 154 if ($gruppref!=$validi) { 155 155 $g_err=1; … … 157 157 } 158 158 } 159 $controllo1=$validi+$nulli+$bianchi+$contestati+$voti_nulli +$solol; #prova160 $controllo2=$si+$no;159 $controllo1=$validi+$nulli+$bianchi+$contestati+$voti_nulli; #prova 160 if($pag==0) $controllo2=$si+$no; else $controllo2=$si+$no+$vot_nul_lis+$cont_lis; 161 161 if($genere==5 and !$votog) #$validi+$nulli+$bianchi+$vcont+$vn 162 if($pag==0 and !$votog or $fascia<=$limite) {$controllo1=$validi+$nulli+$bianchi+$contestati+$voti_nulli +$solol;} else { $controllo1=$val_lista+$nulli+$bianchi+$contestati+$voti_nulli+$cont_lis+$vot_nul_lis+$solog;$controllo2=$si+$no-$solol+$cont_lis+$vot_nul_lis;}162 if($pag==0 and !$votog or $fascia<=$limite) {$controllo1=$validi+$nulli+$bianchi+$contestati+$voti_nulli;} else { $controllo1=$val_lista+$nulli+$bianchi+$contestati+$voti_nulli+$cont_lis+$vot_nul_lis+$solog;$controllo2=$si+$no-$solol+$cont_lis+$vot_nul_lis;} 163 163 if ($voti==$controllo1 and $validi==$controllo2 and !$g_err){ 164 164 $righe .= "<td>"._OK."</td></tr>\n"; … … 224 224 echo "<b>"._NEXT_MATCH."</b></a></td>"; 225 225 } 226 }elseif(($genere==5 and $fascia>=$limite) or ($genere==3) or ($genere==2) or $genere==1){ //se vi sono raggruppamenti226 }elseif(($genere==5 and ($fascia>=$limite or $dettnulli)) or ($genere==3) or ($genere==2) or $genere==1){ //se vi sono raggruppamenti 227 227 $pag=($pag==0 ? 1:0); 228 228 echo "<td colspan=\"5\" align=\"center\" bgcolor=\"$bgcolor1\"><a href=\"admin.php?op=controllo_voti&id_cons_gen=$id_cons_gen&pag=$pag\"><b>"; -
trunk/admin/modules/Elezioni/ele_riepilogo.php
r250 r261 107 107 echo "<fieldset><legend>"._GRUPPO."</legend>"; 108 108 echo "<table border=\"1\" width=\"100%\"><tr><th colspan=\"2\" rowspan=\"2\" ALIGN=\"CENTER\"><b>Candidato</b></th><th rowspan=\"2\" ALIGN=\"CENTER\">"._VALIDI."</th><th colspan=\"2\" ALIGN=\"CENTER\">"._SOLO_GRUPPO."</th></tr><tr><th ALIGN=\"CENTER\">Senza indicazione di lista</th><th>"._VOTINULLI." di Lista</th></TR>"; 109 $t_voti=0;$t_solo_gruppo=0;$t_nulli_lista=0; 109 110 while(list($id_gruppo,$num_gruppo,$desc) = mysql_fetch_row($res)){ 110 111 $resv = mysql_query("SELECT sum(voti),sum(solo_gruppo) from ".$prefix."_ele_voti_gruppo where id_gruppo='$id_gruppo'", $dbi); … … 112 113 $resv = mysql_query("SELECT sum(t1.nulli_lista) from ".$prefix."_ele_voti_lista as t1 left join ".$prefix."_ele_lista as t2 on t1.id_lista=t2.id_lista where t2.id_gruppo='$id_gruppo'", $dbi); 113 114 list($nulli_lista)=mysql_fetch_row($resv); 114 115 $t_voti+=$voti;$t_solo_gruppo+=$solo_gruppo;$t_nulli_lista+=$nulli_lista; 115 116 ECHO "<TR><TD>".$num_gruppo."</TD><TD>".$desc."</TD><TD ALIGN=\"RIGHT\">".number_format($voti,0,',','.')."</TD><TD ALIGN=\"RIGHT\">".number_format($solo_gruppo,0,',','.')."</TD><TD ALIGN=\"RIGHT\">".number_format($nulli_lista,0,',','.')."</TD></TD></TR>"; 116 117 } 118 echo "<tr><th colspan=\"2\" rowspan=\"2\" ALIGN=\"CENTER\"><b>Totale</b></th><th rowspan=\"2\" ALIGN=\"RIGHT\">$t_voti</th><th ALIGN=\"RIGHT\">$t_solo_gruppo</th><th ALIGN=\"RIGHT\">$t_nulli_lista</th></tr>"; 117 119 ECHO "</table><br/></fieldset><br/><br/><br/>"; 118 120 -
trunk/admin/versione.php
r260 r261 1 1 <?php 2 2 3 $versione = "2.0 rev 26 0";3 $versione = "2.0 rev 261"; 4 4 $version_number = $versione; 5 $version = "Eleonline $version_number (<i>Data Release: 2 4maggio 2017</i>)";5 $version = "Eleonline $version_number (<i>Data Release: 27 maggio 2017</i>)"; 6 6 7 7 ?>
Note:
See TracChangeset
for help on using the changeset viewer.