Changeset 430 for trunk/admin/modules/Elezioni/ele.php
- Timestamp:
- Nov 10, 2024, 12:28:53 PM (4 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele.php
r429 r430 128 128 try { $sth = $dbi->prepare("$sql"); $sth->execute(); $row = $sth->fetch(PDO::FETCH_BOTH);$nrlista=$row[0];} 129 129 catch(PDOException $e) {$nrlista=0; } 130 $sql = "select sum(voti) from ".$prefix."_ele_voti_candidati where id_cons=$id_cons"; 131 try { $sth = $dbi->prepare("$sql"); $sth->execute(); $row = $sth->fetch(PDO::FETCH_BOTH);$nrcandidati=$row[0];} 132 catch(PDOException $e) {$nrcandidati=0; } 130 133 $sql = "SELECT sum(voti_complessivi) from ".$prefix."_ele_voti_parziale where id_cons=$id_cons"; 131 134 try { $sth = $dbi->prepare("$sql"); $sth->execute(); $row = $sth->fetch(PDO::FETCH_BOTH); $nraff=$row[0];} … … 287 290 echo "<a href=\"admin.php?op=controllo_votanti&id_cons_gen=$id_cons_gen\">$bullet "._STATO." "._AFFLUENZE."</a><br>"; 288 291 }else{ 289 echo " <img src=\"modules/Elezioni/images/site.gif\" alt =\" \" align=\"center\" border=\"0\">"._STATO." "._AFFLUENZE."<br>";290 } 291 if ($nrvoti) {292 echo "$bullet "._STATO." "._AFFLUENZE."<br>"; 293 } 294 if ($nrvoti) 292 295 echo "<a href=\"admin.php?op=controllo_voti&id_cons_gen=$id_cons_gen\">$bullet "._STATO." "._VOTI."</a><br>"; 296 else 297 echo "$bullet "._STATO." "._VOTI."<br>"; 298 if($nrcandidati) 293 299 echo "<a href=\"admin.php?op=estraidati&id_cons_gen=$id_cons_gen\">$bullet "._ESTRAIDATI."</a><br>"; 294 }else{ 295 echo "<img src=\"modules/Elezioni/images/site.gif\" alt =\" \" align=\"middle\" border=\"0\"> "._STATO." "._VOTI."<br>"; 296 } 300 else 301 echo "$bullet "._ESTRAIDATI."<br>"; 297 302 echo "<a href=\"admin.php?op=riepilogo&id_cons_gen=$id_cons_gen\">$bullet "._RIEPILOGO."</a><br>"; 298 303 # if($tipo_cons==18 or $tipo_cons==19)
Note:
See TracChangeset
for help on using the changeset viewer.