Changeset 328 for trunk/admin/modules/Elezioni/ele_voti.php
- Timestamp:
- Feb 16, 2020, 11:20:46 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_voti.php
r324 r328 1454 1454 echo "<td align=\"center\"><input type=\"hidden\" name=\"id_gruppo$i\" value=\"$id_gruppo\"><b>$num_gruppo</b>" 1455 1455 ."</td><td align=\"left\" width=\"50%\"><b> $descr[0] </b>"; 1456 $pro['si']=(isset($pro['si']) and $pro['si']>=0) ? $pro['si']:'0'; 1457 $pro['no']=(isset($pro['no']) and $pro['no']>=0) ? $pro['no']:'0'; 1458 $pro['validi']=(isset($pro['validi']) and $pro['validi']>=0) ? $pro['validi']:'0'; 1459 $pro['bianchi']=(isset($pro['bianchi']) and $pro['bianchi']>=0) ? $pro['bianchi']:'0'; 1460 $pro['contestati']=(isset($pro['contestati']) and $pro['contestati']>=0) ? $pro['contestati']:'0'; 1461 $pro['nulli']=(isset($pro['nulli']) and $pro['nulli']>=0) ? $pro['nulli']:'0'; 1462 $tot_nulli=$pro['nulli']+$pro['bianchi']+$pro['contestati']; 1463 $tot_voti=$pro['validi']+$tot_nulli; 1456 $pro['si']=(isset($pro['si']) and $pro['si']>=0) ? $pro['si']:''; 1457 $pro['no']=(isset($pro['no']) and $pro['no']>=0) ? $pro['no']:''; 1458 $pro['validi']=(isset($pro['validi']) and $pro['validi']>=0) ? $pro['validi']:''; 1459 $pro['bianchi']=(isset($pro['bianchi']) and $pro['bianchi']>=0) ? $pro['bianchi']:''; 1460 $pro['contestati']=(isset($pro['contestati']) and $pro['contestati']>=0) ? $pro['contestati']:''; 1461 $pro['nulli']=(isset($pro['nulli']) and $pro['nulli']>=0) ? $pro['nulli']:''; 1462 if($pro['validi']=='' or $pro['nulli']=='' or $pro['bianchi']=='' or $pro['contestati']==''){ 1463 $tot_nulli=0; 1464 $tot_voti=0; 1465 }else{ 1466 $tot_nulli=$pro['nulli']+$pro['bianchi']+$pro['contestati']; 1467 $tot_voti=$pro['validi']+$tot_nulli; 1468 } 1464 1469 echo "</td><td align=\"right\" width=\"3%\"><input name=\"si$i\" value=\"".$pro['si']."\" size=\"7\" style=\"text-align:right\"></td>"; 1465 1470 echo "</td><td align=\"right\" width=\"3%\"><input name=\"no$i\" value=\"".$pro['no']."\" size=\"7\" style=\"text-align:right\"></td>";
Note:
See TracChangeset
for help on using the changeset viewer.