Changeset 289


Ignore:
Timestamp:
Apr 24, 2019, 11:18:11 PM (6 years ago)
Author:
roby
Message:
 
Location:
trunk/admin/modules/Elezioni
Files:
2 edited

Legend:

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

    r288 r289  
    242242                ##############################
    243243        $err=0; $err2=0;
     244        $sql="SELECT preferenze,disgiunto,solo_gruppo FROM ".$prefix."_ele_cons_comune where id_cons='$id_cons'";
     245        $res = $dbi->prepare("$sql");
     246        $res->execute();
     247        list($prefs,$disg,$solog)=$res->fetch(PDO::FETCH_NUM);
    244248        if($id_lista){
    245                 $sql="SELECT preferenze FROM ".$prefix."_ele_cons_comune where id_cons='$id_cons'";
    246                 $res = $dbi->prepare("$sql");
    247                 $res->execute();
    248                 list($prefs)=$res->fetch(PDO::FETCH_NUM);
    249249                $sql="select voti from ".$prefix."_ele_voti_lista where id_lista='$id_lista' and id_sez='$id_sez'";
    250250                $res = $dbi->prepare("$sql");
     
    294294                }
    295295                if ($validil+$contestatil+$nullil+$totsg!=$votiv and $validil+$contestatil+$nullil+$solol>0) $err=1;
    296                 if($tnl!=$nullil || $totsl!=$solol) $err=1;
     296                if(($solog && !$disg && $tnl!=$nullil) || $totsl!=$solol) $err=1;
    297297        }
    298298
  • trunk/admin/modules/Elezioni/ele_voti.php

    r288 r289  
    834834/////////////////////////////////////////////
    835835
    836 function rec_voti() {
     836function rec_votibak() {
    837837        global $prefix, $dbi,$aid,$id_cons,$ops,$genere,$votog,$fileout,$id_comune,$limite,$update,$dettnulli,$disgiunto,$tipo_cons;
    838838       
     
    12941294///////////////////////////
    12951295
    1296 function rec_finale() {
     1296function rec_finalebak() {
    12971297global $prefix, $dbi,$aid,$id_cons,$fileout,$genere,$votog;
    12981298
     
    17331733///////////////////////////
    17341734
    1735 function rec_voti_gruppi() {
     1735function rec_voti_gruppibak() {
    17361736global $prefix, $dbi,$aid, $tipo_cons, $genere,$id_cons,$ops,$fileout,$dettnulli;
    17371737if ($fileout) while (!$fp = fopen($fileout,"a"));
Note: See TracChangeset for help on using the changeset viewer.