Changeset 324 for trunk/admin/modules
- Timestamp:
- Jun 20, 2019, 10:20:57 PM (5 years ago)
- Location:
- trunk/admin/modules/Elezioni
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_controlli.php
r321 r324 366 366 $totsl+=$svl; 367 367 $tnl+=$nl; 368 if(($votig+$svl)<($votil+$svg+$nl) )368 if(($votig+$svl)<($votil+$svg+$nl) and $disg) 369 369 { $err=1; $tipo='lista'; break; } 370 370 } -
trunk/admin/modules/Elezioni/ele_voti.php
r319 r324 390 390 global $aid, $prefix, $dbi, $id_lista,$genere,$id_cons_gen,$id_gruppo,$sezi,$circo,$votog,$votol,$votoc,$conscirc; 391 391 global $tipo_cons,$limite,$dettnulli,$disgiunto; 392 393 392 $bgcolor1="#7777ff"; 394 393 $bgcolor2=$_SESSION['bgcolor2']; 394 395 if ($genere==4){ 396 $sql="SELECT voti_uomini,voti_donne, voti_complessivi FROM ".$prefix."_ele_voti_parziale where id_sez='$id_sez' and id_cons='$id_cons' order by data desc,orario desc limit 0,1"; 397 $result = $dbi->prepare("$sql"); 398 $result->execute(); 399 400 401 list( $voti_u, $voti_d, $voti_t) = $result->fetch(PDO::FETCH_NUM); 402 echo "<table class=\"table-menu\" style=\"width: 50%; color: black;\">" 403 ."<tr><td></td><td align=\"center\"></td><td bgcolor=\"$bgcolor1\" align=\"center\">"._VOTIU."</td><td bgcolor=\"$bgcolor1\" align=\"center\">"._VOTID."</td><td bgcolor=\"$bgcolor1\" align=\"center\">"._VOTIT."</td></tr>" 404 ."<tr><td></td><td bgcolor=\"$bgcolor1\" align=\"center\">"._TOT_ULT."</td><td bgcolor=\"$bgcolor2\" align=\"center\">$voti_u</td><td align=\"center\" bgcolor=\"$bgcolor2\">$voti_d</td><td bgcolor=\"$bgcolor2\" align=\"center\">$voti_t</td></tr>"; 405 echo "</table>"; 406 } 407 $sql="select validi,nulli,bianchi,contestati from ".$prefix."_ele_sezioni where id_sez='$id_sez' "; 408 $result = $dbi->prepare("$sql"); 409 $result->execute(); 410 list($v1,$v2,$v3,$v4)=$result->fetch(PDO::FETCH_NUM); 411 if($v1+$v2+$v3+$v4>0){ 395 412 //controlla se sono stati inseriti i votanti 396 413 $sql="SELECT preferenze, id_fascia, id_conf,solo_gruppo, disgiunto from ".$prefix."_ele_cons_comune where id_cons='$id_cons'"; … … 830 847 echo "}\n"; 831 848 echo "</script>\n"; 832 849 } 833 850 #if (!((!$votog) and ($genere==3 OR $genere==5) and ($fascia>$limite))) 834 851 finale($id_cons,$do,$id_circ,$id_sede,$id_sez,$ops);
Note:
See TracChangeset
for help on using the changeset viewer.