Changeset 283 for trunk/client/temi


Ignore:
Timestamp:
Apr 21, 2019, 10:09:55 PM (5 years ago)
Author:
roby
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/temi/Futura2/function_theme.php

    r265 r283  
    168168
    169169function 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;
     170global $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;
    171171# parte grafica
    172172$param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ?
     
    718718
    719719
    720     global  $user, $admin, $cookie, $textcolor2, $prefix, $dbi;
     720    global  $user, $admin, $cookie, $textcolor2;
    721721    $sql="select mid, title, preamble, content,editimage from ".$prefix."$tab where id_cons='$id_cons' order by mid ";
    722722        $result = $dbi->prepare("$sql");
     
    10371037                                                                                                                             
    10381038                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'";
    10401040               
    10411041                        if ($genere==0){$query.=" and id_gruppo=$id_gruppo";}
     
    10431043                                        $res_aff = $dbi->prepare("$query");
    10441044                                        $res_aff->execute();
    1045                                         $voti_numero=$res_aff->rowCount();
     1045                                        $voti_numero=$res_aff->rowCount();*/
    10461046                        $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";
    10471047
     
    10491049                                        $res1234 = $dbi->prepare("$query");
    10501050                                        $res1234->execute();
    1051                         list($tot)=$res1234->rowCount();
     1051                        list($tot)=$res1234->fetch(PDO::FETCH_NUM);
    10521052                       
    10531053                        $perc=number_format($voti_t*100/$tot,2);
     
    12021202function votanti_tabella(){
    12031203
    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;
     1204global $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;
    12051205
    12061206
Note: See TracChangeset for help on using the changeset viewer.