Changeset 283 for trunk/client/temi
- Timestamp:
- Apr 21, 2019, 10:09:55 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/temi/Futura2/function_theme.php
r265 r283 168 168 169 169 function graf_gruppo_mob(){ 170 global $db ,$admin, $bgcolor1, $bgcolor5, $prefix, $offset, $min,$descr_cons,$genere,$votog,$votol,$votoc,$circo, $id_cons,$id_cons_gen,$id_comune,$id_circ,$tipo_cons,$w,$l,$op,$siteistat,$flash,$visgralista,$graficogruppo,$rss;170 global $dbi,$admin, $bgcolor1, $bgcolor5, $prefix, $offset, $min,$descr_cons,$genere,$votog,$votol,$votoc,$circo, $id_cons,$id_cons_gen,$id_comune,$id_circ,$tipo_cons,$w,$l,$op,$siteistat,$flash,$visgralista,$graficogruppo,$rss; 171 171 # parte grafica 172 172 $param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? … … 718 718 719 719 720 global $user, $admin, $cookie, $textcolor2 , $prefix, $dbi;720 global $user, $admin, $cookie, $textcolor2; 721 721 $sql="select mid, title, preamble, content,editimage from ".$prefix."$tab where id_cons='$id_cons' order by mid "; 722 722 $result = $dbi->prepare("$sql"); … … 1037 1037 1038 1038 while(list($voti_t, $num_gruppo,$id_gruppo) = $res1->fetch(PDO::FETCH_NUM)) { 1039 $query="select sum(voti_complessivi) from ".$prefix."_ele_voti_parziale where orario='$orario' and data='$data' and id_cons='$id_cons'";1039 /* $query="select sum(voti_complessivi) from ".$prefix."_ele_voti_parziale where orario='$orario' and data='$data' and id_cons='$id_cons'"; 1040 1040 1041 1041 if ($genere==0){$query.=" and id_gruppo=$id_gruppo";} … … 1043 1043 $res_aff = $dbi->prepare("$query"); 1044 1044 $res_aff->execute(); 1045 $voti_numero=$res_aff->rowCount(); 1045 $voti_numero=$res_aff->rowCount();*/ 1046 1046 $query="SELECT sum(maschi+femmine) FROM ".$prefix."_ele_sezioni as t1, ".$prefix."_ele_sede as t2 where t1.id_cons='$id_cons' and t1.id_sede=t2.id_sede $circos"; 1047 1047 … … 1049 1049 $res1234 = $dbi->prepare("$query"); 1050 1050 $res1234->execute(); 1051 list($tot)=$res1234-> rowCount();1051 list($tot)=$res1234->fetch(PDO::FETCH_NUM); 1052 1052 1053 1053 $perc=number_format($voti_t*100/$tot,2); … … 1202 1202 function votanti_tabella(){ 1203 1203 1204 global $op, $prefix, $offset, $min,$descr_cons,$genere,$votog,$votol,$votoc,$circo, $id_cons,$tipo_cons,$id_comune,$id_cons_gen,$id_circ,$csv,$w,$l,$siteistat,$flash,$tour,$db ;1204 global $op, $prefix, $offset, $min,$descr_cons,$genere,$votog,$votol,$votoc,$circo, $id_cons,$tipo_cons,$id_comune,$id_cons_gen,$id_circ,$csv,$w,$l,$siteistat,$flash,$tour,$dbi; 1205 1205 1206 1206
Note:
See TracChangeset
for help on using the changeset viewer.