Changeset 262 for trunk/admin/modules/Elezioni/ele_voti.php
- Timestamp:
- Apr 7, 2019, 5:16:46 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_voti.php
r260 r262 514 514 if ((!$id_lista)){$tab="_ele_voti_lista";} else {$tab="_ele_voti_candidati";} 515 515 if(($genere==4 or ($genere==5 and $votog)) and !$id_lista) { 516 $sql="SELECT sum(t1.voti),t2.validi, t2.solo_gruppo,t2.contestati_lista,t2.voti_nulli,t2.bianchi,t2.nulli, 0,0,0 from ".$prefix."_ele_sezioni as t2 left join ".$prefix.$tab." as t1 on (t1.id_sez=t2.id_sez) where t2.id_sez=$id_sez group by t1.id_sez";516 $sql="SELECT sum(t1.voti),t2.validi, t2.solo_gruppo,t2.contestati_lista,t2.voti_nulli,t2.bianchi,t2.nulli,t2.contestati,0,0 from ".$prefix."_ele_sezioni as t2 left join ".$prefix.$tab." as t1 on (t1.id_sez=t2.id_sez) where t2.id_sez=$id_sez group by t1.id_sez"; 517 517 $result = $dbi->prepare("$sql"); 518 518 $result->execute(); … … 1132 1132 $riga[$y].= "<span class=\"td\"><input type=\"hidden\" name=\"op\" value=\"rec_add_votanti\"/>"; 1133 1133 $riga[$y].= "<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\"/>" 1134 ."<input type=\"hidden\" name=\"genere\" value=\"$genere\"/>" 1134 1135 ."<input type=\"hidden\" name=\"id_sez\" value=\"$id_sez\"/>" 1135 1136 ."<input type=\"hidden\" name=\"id_circ\" value=\"$id_circ\"/>"
Note:
See TracChangeset
for help on using the changeset viewer.