Changeset 421 for trunk/client/modules/Elezioni/blocchi
- Timestamp:
- Jun 5, 2024, 2:44:06 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/blocchi/pie_affluenze.php
r420 r421 65 65 66 66 $sql="select t3.voti_complessivi from ".$prefix."_ele_voti_parziale as t3 left join ".$prefix."_ele_sezioni as t1 on t3.id_sez=t1.id_sez left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t3.id_cons='$id_cons' and t3.data='$data' and t3.orario='$orario' $circos"; 67 67 if ($genere==0){$sql.=" and t3.id_gruppo=$id_gruppo";} 68 68 $res_aff = $dbi->prepare("$sql"); 69 69 $res_aff->execute(); … … 71 71 $voti_numero=$res_aff->rowCount(); 72 72 73 $sql="select sum(t1.maschi+t1.femmine) from ".$prefix."_ele_voti_parziale as t3 left join ".$prefix."_ele_sezioni as t1 on t3.id_sez=t1.id_sez left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t3.id_cons='$id_cons' and t3.data='$data' and t3.orario='$orario' $circos"; 74 73 $sql="select sum(t1.maschi+t1.femmine) from ".$prefix."_ele_voti_parziale as t3 left join ".$prefix."_ele_sezioni as t1 on t3.id_sez=t1.id_sez left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t3.id_cons='$id_cons' and t3.data='$data' and t3.orario='$orario' $circos"; 75 74 if ($genere==0){$sql.=" and t3.id_gruppo=$id_gruppo";} 76 75 $res1234 = $dbi->prepare("$sql");
Note:
See TracChangeset
for help on using the changeset viewer.