Changeset 337 for trunk/admin/modules/Elezioni/ele_voti.php
- Timestamp:
- Oct 15, 2020, 5:40:26 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_voti.php
r329 r337 824 824 825 825 826 list($voti_sind) = $resvg ;826 list($voti_sind) = $resvg->fetch(PDO::FETCH_NUM); 827 827 828 828 echo "<tr bgcolor=\"$bgcolor1\"><td></td><td><b>"._SOLO_GRUPPO."</b></td><td align=\"center\">".($voti_sind - $tot_pref)."</td></tr>"; … … 1481 1481 ."</td><td align=\"left\"><b> $descr_gruppo </b>"; 1482 1482 $sql="SELECT * FROM ".$prefix."_ele_voti_gruppo where id_cons='$id_cons' and id_sez='$id_sez' and id_gruppo='$id_gruppo' "; 1483 $res = $dbi->prepare("$sql"); 1484 $res->execute(); 1485 1483 $res = $dbi->prepare("$sql"); 1484 $res->execute(); 1486 1485 1487 1486 $pro= $res->fetch(PDO::FETCH_BOTH); 1487 if(!$res->rowCount()) {$pro['voti']=''; $pro['solo_gruppo']='';} 1488 1488 $errcolor=''; 1489 1489 if(isset($errgrulis[$id_gruppo])) $errcolor="style=\"background-color: rgb(255, 0, 0);\""; 1490 1490 echo "</td><td align=\"right\" $errcolor><input name=\"voti$i\" value=\"".$pro['voti']."\" size=\"7\" style=\"text-align:right\"></td>"; 1491 1491 1492 if($dettnulli) {echo "<td align=\"right\"><input name=\"solog$i\" value=\"".$pro['solo_gruppo']."\" size=\"7\" style=\"text-align:right\"></td>"; $totsg+= $pro['solo_gruppo'];}1493 $tot_pref += $pro['voti'];1492 if($dettnulli) {echo "<td align=\"right\"><input name=\"solog$i\" value=\"".$pro['solo_gruppo']."\" size=\"7\" style=\"text-align:right\"></td>"; $totsg+=intval($pro['solo_gruppo']);} 1493 $tot_pref += intval($pro['voti']); 1494 1494 echo "</tr>"; 1495 1495 }
Note:
See TracChangeset
for help on using the changeset viewer.