Changeset 376 for trunk/client/temi
- Timestamp:
- Sep 24, 2022, 1:11:18 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/temi/Futura2/function_theme.php
r364 r376 32 32 if ($siteistat==$id_comune) $logo="$siteistat"; else $logo=''; // logo per il comune 33 33 $logo=verificasimbolo(); // carica_logo da funzioni.php 34 35 if ($genere==0) $tab ="ref";elseif($genere=='4' || $votog) $tab="lista";36 else $tab="gruppo";34 $tab="gruppo"; $tabr="gruppo"; 35 if ($genere==0) $tabr="ref";elseif($genere=='4' || $votog) {$tab="lista"; $tabr="lista";} 36 # else $tab="gruppo"; 37 37 if (isset($circo) and $circo) $circos="and t2.id_circ='$id_circ'"; 38 38 else $circos=''; 39 39 40 40 41 $sql="select t1.id_sez from ".$prefix."_ele_voti_".$tab ." as t1 left join ".$prefix."_ele_$tab as t2 on t1.id_$tab=t2.id_$tab where t1.id_cons='$id_cons' $circos group by t1.id_sez ";41 $sql="select t1.id_sez from ".$prefix."_ele_voti_".$tabr." as t1 left join ".$prefix."_ele_$tab as t2 on t1.id_$tab=t2.id_$tab where t1.id_cons='$id_cons' $circos group by t1.id_sez "; 42 42 $res = $dbi->prepare("$sql"); 43 43 $res->execute();
Note:
See TracChangeset
for help on using the changeset viewer.