Changeset 271 for trunk/admin/modules/Elezioni/ele_voti.php
- Timestamp:
- Apr 17, 2019, 10:46:33 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_voti.php
r264 r271 482 482 $result = $dbi->prepare("$sql"); 483 483 $result->execute(); 484 list($id_gruppo)=$result ;484 list($id_gruppo)=$result->fetch(PDO::FETCH_NUM); 485 485 $sql="SELECT sum(voti),0 from ".$prefix."_ele_voti_gruppo where id_sez='$id_sez' and id_gruppo='$id_gruppo'"; 486 486 $result = $dbi->prepare("$sql"); … … 717 717 list($voti)= $res->fetch(PDO::FETCH_NUM); 718 718 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"; 721 721 $i++; 722 722 $tot_pref+=$voti;
Note:
See TracChangeset
for help on using the changeset viewer.