Ignore:
Timestamp:
Sep 3, 2022, 10:40:36 AM (21 months ago)
Author:
roby
Message:

In client:

  • rivista la funzione di esportazione pdf, xls e stampe
  • tema futura2: eliminato il taglio a 30 caratteri del nome della consultazione
  • modificata la barra da 2D a 3D per i grafici di affluenza e votanti

In admin:

  • corretta la segnalazione di errore per rosatellum su incongruità di voti al solo gruppo diversi dalla somma dei viti alle liste collegate
  • inserito check box per eliminazione del file della mappa nella riga di inserimento sede
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/modules/Elezioni/votanti.php

    r348 r371  
    249249                if (!($genere==4) and $pag==0){  //se non e' una lista uninominale ed e' la prima pagina
    250250                       
    251                         $tab="SELECT 0,t2.id_sez,t2.num_sez,t2.validi,'0','0',t2.validi,t2.nulli,t2.bianchi,t2.contestati, t4.id_circ,t2.id_sede,'0',t2.voti_nulli FROM ".$prefix."_ele_sezioni as t2 left join ".$prefix."_ele_sede as t4 on (t2.id_sede=t4.id_sede) where t2.id_cons='$id_cons' and t2.validi+t2.nulli+t2.bianchi+t2.contestati>0 group by t2.id_sez order by t2.num_sez ";
     251                        $tab="SELECT 0,t2.id_sez,t2.num_sez,t2.validi,'0','0',t2.validi,t2.nulli,t2.bianchi,t2.contestati, t4.id_circ,t2.id_sede,'0',t2.voti_nulli FROM ".$prefix."_ele_sezioni as t2 left join ".$prefix."_ele_sede as t4 on (t2.id_sede=t4.id_sede) where t2.id_cons='$id_cons' and t2.validi+t2.nulli+t2.bianchi+t2.contestati>0 group by t2.id_sez,t2.num_sez,t2.validi,t2.nulli,t2.bianchi,t2.contestati, t4.id_circ,t2.id_sede,t2.voti_nulli order by t2.num_sez ";
    252252               
    253253                }else{ // e' una lista uninominale o la seconda pagina
     
    260260                        FROM ".$prefix."_ele_sezioni as t1 left join ".$prefix.$tab3." as t2 on (t1.id_sez=t2.id_sez)
    261261                        left join ".$prefix."_ele_sede as t4 on (t1.id_sede=t4.id_sede)
    262                         where t1.id_cons='$id_cons' and t1.id_cons=t2.id_cons group by t2.id_sez order by t1.num_sez ";
     262                        where t1.id_cons='$id_cons' and t1.id_cons=t2.id_cons group by t1.id_sez,t1.num_sez,t1.solo_gruppo,t1.solo_lista,t1.validi,t1.nulli,t1.bianchi,t1.contestati,t4.id_circ,t1.id_sede,t1.voti_nulli order by t1.num_sez ";
    263263                     }else{
    264264                       
     
    266266                        FROM ".$prefix."_ele_sezioni as t1 left join ".$prefix.$tab3." as t2 on (t1.id_sez=t2.id_sez)
    267267                        left join ".$prefix."_ele_sede as t4 on (t1.id_sede=t4.id_sede)
    268                         where t1.id_cons='$id_cons' and t1.id_cons=t2.id_cons group by t2.id_sez order by t1.num_sez ";
     268                        where t1.id_cons='$id_cons' and t1.id_cons=t2.id_cons group by t1.id_sez,t1.num_sez,t1.solo_gruppo,t1.validi,t1.nulli,t1.bianchi,t1.contestati,t4.id_circ,t1.id_sede,t1.voti_nulli order by t1.num_sez ";
    269269                        }
    270270                }
     
    509509        header ("Content-Type: application/vnd.ms-excel");
    510510        header ("Content-Disposition: inline; filename=$nomefile");
    511 
     511        header("Pragma: no-cache");
     512        header("Expires: 0");
     513        $datipdf = mb_convert_encoding($datipdf , "HTML-ENTITIES", "UTF-8");
    512514        echo "$datipdf";
    513515        echo "$html \n";
Note: See TracChangeset for help on using the changeset viewer.