Ignore:
Timestamp:
Apr 7, 2019, 5:16:46 PM (6 years ago)
Author:
roby
Message:
 
File:
1 edited

Legend:

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

    r260 r262  
    514514                if ((!$id_lista)){$tab="_ele_voti_lista";} else {$tab="_ele_voti_candidati";}
    515515if(($genere==4 or ($genere==5 and $votog)) and !$id_lista)      {
    516                 $sql="SELECT sum(t1.voti),t2.validi, t2.solo_gruppo,t2.contestati_lista,t2.voti_nulli,t2.bianchi,t2.nulli,0,0,0 from ".$prefix."_ele_sezioni as t2 left join ".$prefix.$tab." as t1 on (t1.id_sez=t2.id_sez) where t2.id_sez=$id_sez group by t1.id_sez";
     516                $sql="SELECT sum(t1.voti),t2.validi, t2.solo_gruppo,t2.contestati_lista,t2.voti_nulli,t2.bianchi,t2.nulli,t2.contestati,0,0 from ".$prefix."_ele_sezioni as t2 left join ".$prefix.$tab." as t1 on (t1.id_sez=t2.id_sez) where t2.id_sez=$id_sez group by t1.id_sez";
    517517$result = $dbi->prepare("$sql");
    518518$result->execute();
     
    11321132        $riga[$y].= "<span class=\"td\"><input type=\"hidden\" name=\"op\" value=\"rec_add_votanti\"/>";
    11331133        $riga[$y].= "<input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\"/>"
     1134        ."<input type=\"hidden\" name=\"genere\" value=\"$genere\"/>"
    11341135        ."<input type=\"hidden\" name=\"id_sez\" value=\"$id_sez\"/>"
    11351136        ."<input type=\"hidden\" name=\"id_circ\" value=\"$id_circ\"/>"
Note: See TracChangeset for help on using the changeset viewer.