Changeset 271 for trunk


Ignore:
Timestamp:
Apr 17, 2019, 10:46:33 PM (5 years ago)
Author:
roby
Message:
 
File:
1 edited

Legend:

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

    r264 r271  
    482482$result = $dbi->prepare("$sql");
    483483$result->execute();
    484                                 list($id_gruppo)=$result;
     484                                list($id_gruppo)=$result->fetch(PDO::FETCH_NUM);
    485485                                $sql="SELECT sum(voti),0 from ".$prefix."_ele_voti_gruppo where id_sez='$id_sez' and id_gruppo='$id_gruppo'";
    486486$result = $dbi->prepare("$sql");
     
    717717                                list($voti)= $res->fetch(PDO::FETCH_NUM);
    718718                                if(in_array($num_cand,$errcand[$id_lista])) $errcolor="style=\"background-color: rgb(255, 0, 0);\""; else $errcolor='';
    719                                 echo "<td align=\"right\" $errcolor><input  name=\"voti$i\" value=\"".$voti."\" size=\"7\"  style=\"text-align:right\">";
    720                                 echo "<input type=\"hidden\" name=\"id_cand$i\" value=\"$id_cand\"></td></tr>\n";
     719                                echo "<td align=\"right\" $errcolor><input  name=\"voti$num_cand\" value=\"".$voti."\" size=\"7\"  style=\"text-align:right\">";
     720                                echo "<input type=\"hidden\" name=\"id_cand$num_cand\" value=\"$id_cand\"></td></tr>\n";
    721721                                $i++;
    722722                                $tot_pref+=$voti;
Note: See TracChangeset for help on using the changeset viewer.