Changeset 418 for trunk/client/temi


Ignore:
Timestamp:
May 29, 2024, 1:45:09 PM (6 months ago)
Author:
roby
Message:
  • CLIENT

-- attivato l'rss per la pagina principale
-- eliminata una query non più in uso per il tema Futura2

  • INSTALL

-- corretta la creazione di una tabella del db

File:
1 edited

Legend:

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

    r376 r418  
    975975        if ($circo) $circos="and t2.id_circ='$id_circ'";
    976976        else $circos="";
    977         if (!$csv)
    978 
    979  
    980                 // numero sezioni scrutinate
    981                 //if ($circo)$circos="and id_circ='$id_circ'";
    982         if (!isset($data1)) $data1='';
    983         if (!isset($ora_ril)) $ora_ril='';
    984                 $sql="SELECT count(data) FROM ".$prefix."_ele_voti_parziale as t3 left join ".$prefix."_ele_sezioni as t1 on t3.id_sez=t1.id_sez left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t1.id_cons='$id_cons' and data='$data1' and orario='$ora_ril' $circos group by t3.id_gruppo";
    985         $res1 = $dbi->prepare("$sql");
    986         $res1->execute();
    987 # mysql_query("select *  from ".$prefix."_ele_voti_parziale where id_cons='$id_cons' $circos  group by id_sez ",$dbi);
    988                 $numero=$res1->rowCount();
    989                 $sql="SELECT t1.* 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 order by num_sez";
     977        $sql="SELECT t1.* 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 order by num_sez";
    990978        $res2 = $dbi->prepare("$sql");
    991979        $res2->execute();
    992 #mysql_query("select *  from ".$prefix."_ele_sezioni where id_cons='$id_cons' $circos",$dbi);
    993                 $sezioni=$res2->rowCount();
    994                
    995        
    996        
    997                
    998        
     980        $sezioni=$res2->rowCount();
     981
    999982// barre
    1000983    $l_size = getimagesize("modules/Elezioni/images/barre/leftbar.gif");
Note: See TracChangeset for help on using the changeset viewer.