Changeset 416 for trunk/client/modules/Elezioni
- Timestamp:
- May 21, 2024, 10:18:28 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/index.php
r414 r416 1102 1102 // funzione visualizzazione delle liste per camera e senato con raggruppamenti/coalizioni 1103 1103 function liste(){ 1104 global $id_cons,$id_cons_gen,$prefix,$dbi,$min,$offset,$op,$tipo_cons,$prev,$next,$votog,$votol,$circo,$genere,$id_comune,$id_circ ;1104 global $id_cons,$id_cons_gen,$prefix,$dbi,$min,$offset,$op,$tipo_cons,$prev,$next,$votog,$votol,$circo,$genere,$id_comune,$id_circ,$offsetliste; 1105 1105 //dati(); 1106 $offset=10;1106 if(isset($offsetliste) and $offsetliste>0) $offset=$offsetliste; else $offset=10; 1107 1107 if (!isset($min)) $min=0; 1108 1108 … … 1112 1112 $sql="select * from ".$prefix."_ele_voti_ref where id_cons='$id_cons' group by id_sez "; 1113 1113 }else{ 1114 $sql="select t1. *from ".$prefix."_ele_voti_gruppo as t1 left join ".$prefix."_ele_gruppo as t2 on t1.id_gruppo=t2.id_gruppo where t2.id_cons='$id_cons' $circos group by t1.id_sez ";1114 $sql="select t1.id_sez from ".$prefix."_ele_voti_gruppo as t1 left join ".$prefix."_ele_gruppo as t2 on t1.id_gruppo=t2.id_gruppo where t2.id_cons='$id_cons' $circos group by t1.id_sez "; 1115 1115 } 1116 1116 $res = $dbi->prepare("$sql");
Note:
See TracChangeset
for help on using the changeset viewer.