Changeset 371 for trunk/client/modules/Elezioni/votanti.php
- Timestamp:
- Sep 3, 2022, 10:40:36 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/votanti.php
r348 r371 249 249 if (!($genere==4) and $pag==0){ //se non e' una lista uninominale ed e' la prima pagina 250 250 251 $tab="SELECT 0,t2.id_sez,t2.num_sez,t2.validi,'0','0',t2.validi,t2.nulli,t2.bianchi,t2.contestati, t4.id_circ,t2.id_sede,'0',t2.voti_nulli FROM ".$prefix."_ele_sezioni as t2 left join ".$prefix."_ele_sede as t4 on (t2.id_sede=t4.id_sede) where t2.id_cons='$id_cons' and t2.validi+t2.nulli+t2.bianchi+t2.contestati>0 group by t2.id_sez order by t2.num_sez ";251 $tab="SELECT 0,t2.id_sez,t2.num_sez,t2.validi,'0','0',t2.validi,t2.nulli,t2.bianchi,t2.contestati, t4.id_circ,t2.id_sede,'0',t2.voti_nulli FROM ".$prefix."_ele_sezioni as t2 left join ".$prefix."_ele_sede as t4 on (t2.id_sede=t4.id_sede) where t2.id_cons='$id_cons' and t2.validi+t2.nulli+t2.bianchi+t2.contestati>0 group by t2.id_sez,t2.num_sez,t2.validi,t2.nulli,t2.bianchi,t2.contestati, t4.id_circ,t2.id_sede,t2.voti_nulli order by t2.num_sez "; 252 252 253 253 }else{ // e' una lista uninominale o la seconda pagina … … 260 260 FROM ".$prefix."_ele_sezioni as t1 left join ".$prefix.$tab3." as t2 on (t1.id_sez=t2.id_sez) 261 261 left join ".$prefix."_ele_sede as t4 on (t1.id_sede=t4.id_sede) 262 where t1.id_cons='$id_cons' and t1.id_cons=t2.id_cons group by t 2.id_sezorder by t1.num_sez ";262 where t1.id_cons='$id_cons' and t1.id_cons=t2.id_cons group by t1.id_sez,t1.num_sez,t1.solo_gruppo,t1.solo_lista,t1.validi,t1.nulli,t1.bianchi,t1.contestati,t4.id_circ,t1.id_sede,t1.voti_nulli order by t1.num_sez "; 263 263 }else{ 264 264 … … 266 266 FROM ".$prefix."_ele_sezioni as t1 left join ".$prefix.$tab3." as t2 on (t1.id_sez=t2.id_sez) 267 267 left join ".$prefix."_ele_sede as t4 on (t1.id_sede=t4.id_sede) 268 where t1.id_cons='$id_cons' and t1.id_cons=t2.id_cons group by t 2.id_sezorder by t1.num_sez ";268 where t1.id_cons='$id_cons' and t1.id_cons=t2.id_cons group by t1.id_sez,t1.num_sez,t1.solo_gruppo,t1.validi,t1.nulli,t1.bianchi,t1.contestati,t4.id_circ,t1.id_sede,t1.voti_nulli order by t1.num_sez "; 269 269 } 270 270 } … … 509 509 header ("Content-Type: application/vnd.ms-excel"); 510 510 header ("Content-Disposition: inline; filename=$nomefile"); 511 511 header("Pragma: no-cache"); 512 header("Expires: 0"); 513 $datipdf = mb_convert_encoding($datipdf , "HTML-ENTITIES", "UTF-8"); 512 514 echo "$datipdf"; 513 515 echo "$html \n";
Note:
See TracChangeset
for help on using the changeset viewer.