Changeset 340 for trunk


Ignore:
Timestamp:
Nov 14, 2020, 7:37:56 PM (3 years ago)
Author:
roby
Message:

seguono modifiche alla rev 238

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/modules/Elezioni/ele_voti.php

    r339 r340  
    951951
    952952                $max = $res2->rowCount();
    953         }else{ $max=1;} $op="rec_add_votanti";
     953        }else{ $max=1;}
     954        $op="rec_add_votanti";
    954955        $rigat[$y].= "</div>";
    955956
  • trunk/admin/versione.php

    r339 r340  
    11<?php
    22
    3 $versione = "3.0 rev 339";
     3$versione = "3.0 rev 340";
    44$version_number = $versione;
    5 $datarel = "11 novembre 2020";
     5$datarel = "14 novembre 2020";
    66$version = "Eleonline $version_number (<i>Data Release: $datarel</i>)";
    77
  • trunk/client/modules/Elezioni/blocchi/01_votanti.php

    r279 r340  
    5959# calcolo sezioni
    6060if($genere==0) $sql="select count(0) from ".$prefix."_ele_voti_".$tab." where id_cons='$id_cons' and id_gruppo='$id'";
    61        
     61else
     62        if (!$circos) $sql="select count(0) from ".$prefix."_ele_sezioni as t2 where t2.id_cons='$id_cons' and t2.validi+t2.nulli+t2.bianchi+t2.contestati>0 ";
     63        else $sql="select count(0) from ".$prefix."_ele_sezioni as t2 left join ".$prefix."_ele_sede as t1 on t1.id_sede=t2.id_sede where t1.id_sede in (select id_sede from ".$prefix."_ele_sede where id_circ='$id_circ') and t2.validi+t2.nulli+t2.bianchi+t2.contestati>0 ";       
    6264
    6365else $sql="select count(0) from ".$prefix."_ele_sezioni where id_cons='$id_cons' and validi+nulli+bianchi+contestati>0";
  • trunk/client/modules/Elezioni/grafici/gd_image.inc.php

    r284 r340  
    109109        }
    110110        else {
    111             JpGraphError::RaiseL(25128);//('The function imageantialias() is not available in your PHP installation. Use the GD version that comes with PHP and not the standalone version.')
     111        //    JpGraphError::RaiseL(25128);//('The function imageantialias() is not available in your PHP installation. Use the GD version that comes with PHP and not the standalone version.')
    112112        }
    113113    }
  • trunk/client/modules/Elezioni/index.php

    r324 r340  
    10501050                }
    10511051  // numero sezioni scrutinate, escluse circorscrizioni (da aggiungere)
    1052                 if ($circo!=1){$sqlcir="";}else{$sqlcir="and id_circ='$id_circ'";       }
    1053                         if ($votog) {$tab="lista";}else{$tab="candidati";}
    1054                         $sql="select id_sez from ".$prefix."_ele_voti_".$tab." where id_cons='$id_cons' $sqlcir group by id_sez ";
    1055                         $res1 = $dbi->prepare("$sql");
    1056                         $res1->execute();
    1057 
    1058                         $numero=$res1->rowCount();
    1059                         $sql="select max(num_sez)  from ".$prefix."_ele_sezioni where id_cons='$id_cons' $sqlcir";
    1060                         $res2 = $dbi->prepare("$sql");
    1061                         $res2->execute();
    1062 
    1063                         list($sezioni)=$res2->fetch(PDO::FETCH_NUM);
    1064                
     1052
     1053                if ($circo!=1)
     1054                                {
     1055                                        $sqlcir="";
     1056                                        $sql2="select max(num_sez)  from ".$prefix."_ele_sezioni where id_cons='$id_cons'";
     1057                                }
     1058                                else
     1059                                {
     1060                                        $sqlcir="and id_circ='$id_circ'";       
     1061                                        $sql2="select count(num_sez)  from ".$prefix."_ele_sezioni where id_sede in (select id_sede from ".$prefix."_ele_sede where id_circ='$id_circ')";
     1062                                }
     1063                                        if ($votog)
     1064                                                        $sql="select id_sez from ".$prefix."_ele_voti_candidati where id_lista in (select id_lista from ".$prefix."_ele_lista where id_cons='$id_cons' $sqlcir) group by id_sez ";
     1065                                        else
     1066                                                        $sql="select id_sez from ".$prefix."_ele_voti_lista where id_lista in (select id_lista from ".$prefix."_ele_lista where id_cons='$id_cons' $sqlcir) group by id_sez ";
     1067
     1068                                        $res1 = $dbi->prepare("$sql");
     1069                                        $res1->execute();
     1070                                        $numero=$res1->rowCount();
     1071
     1072                                        $res2 = $dbi->prepare("$sql2");
     1073                                        $res2->execute();
     1074
     1075                                        list($sezioni)=$res2->fetch(PDO::FETCH_NUM);
     1076
    10651077                       
    10661078 
  • trunk/client/modules/Elezioni/language/lang-it.php

    r318 r340  
    444444                break;
    445445        case 14:
     446                define("_SCELTA_CIR","Scegli la Circoscrizione");
    446447                define("_CONSULTAZIONE","Consultazione Parlamentare Europea"); //genere 4
    447448                define("_SIMBOLO","Simbolo");
     
    452453                break;
    453454        case 15:
     455                define("_SCELTA_CIR","Scegli la Circoscrizione");
    454456                define("_CONSULTAZIONE","Consultazione Camera"); //genere 2
    455457                define("_SIMBOLO","Simbolo");
     
    459461                break;
    460462        case 16:
     463                define("_SCELTA_CIR","Scegli la Circoscrizione");
    461464                define("_CONSULTAZIONE","Consultazione Senato"); //genere 2
    462465                define("_SIMBOLO","Simbolo");
     
    466469                break;
    467470        case 17:
     471                define("_SCELTA_CIR","Scegli la Circoscrizione");
    468472                define("_CONSULTAZIONE","Consultazione Elezioni Regionali"); //genere 5
    469473                define("_SIMBOLO","Candidato<br />Presidente");
  • trunk/client/versione.php

    r339 r340  
    11<?php
    22
    3 $versione = "3.0 rev 339";
     3$versione = "3.0 rev 340";
    44$version_number = $versione;
    5 $datarel = "11 novembre 2020";
     5$datarel = "14 novembre 2020";
    66$version = "Eleonline $version_number (<i>Data Release: $datarel</i>)";
    77
Note: See TracChangeset for help on using the changeset viewer.