Changeset 369 for trunk/admin/modules
- Timestamp:
- May 23, 2022, 12:44:20 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_spoglio.php
r366 r369 72 72 73 73 $riga=array(); 74 $rigat=array(); 74 $rigat=array(); 75 $uscita=0; 75 76 while (list($ora,$giorno)= $res->fetch(PDO::FETCH_NUM)){ 76 77 $y++; … … 95 96 $rigat[$y].= "</div>"; 96 97 $errvot1=0; 98 $numril=0; 99 97 100 for ($i=1;$i<=$max;$i++){ 98 101 $query="SELECT * FROM ".$prefix."_ele_voti_parziale as t1 left join ".$prefix."_ele_gruppo as t2 … … 112 115 $resril = $dbi->prepare("$sql"); 113 116 $resril->execute(); 114 list($numril)=$resril->fetch(PDO::FETCH_NUM); 117 list($tmpril)=$resril->fetch(PDO::FETCH_NUM); 118 if($tmpril>$numril) $numril=$tmpril; 115 119 if ($res2) 116 120 list($gruppo)= $res2->fetch(PDO::FETCH_NUM); … … 160 164 ."<input type=\"hidden\" name=\"id_gruppo\" value=\"$id_gruppo\"/>"; 161 165 $riga[$y].= "</span>"; 162 if (chisei($id_cons_gen)>=64 and $y==$numril) $riga[$y].= "<span class=\"td\" style=\"text-align: right;\" rowspan=\"1\" colspan=\"6\">"._DELETE." <input type=\"checkbox\" name=\"delete\" value=\"true\"/></span>";166 if (chisei($id_cons_gen)>=64 and ($y==$numril and $voti_t!='')) { $riga[$y].= "<span class=\"td\" style=\"text-align: right;\" rowspan=\"1\" colspan=\"6\">"._DELETE." <input type=\"checkbox\" name=\"delete\" value=\"true\"/></span>";} 163 167 else $riga[$y].= "<span class=\"td\" style=\"text-align: right;\" rowspan=\"1\" colspan=\"6\"><input type=\"hidden\" name=\"delete\" value=\"\"/></span>"; 164 168 $riga[$y].= "<span class=\"td\" style=\"text-align: right;\" rowspan=\"1\" colspan=\"6\"><input type=\"submit\" name=\"update\" value=\""._OK."\"/></span>"; 165 169 $riga[$y].= "</form>"; 166 170 if($numril>$uscita) $uscita=$numril; 167 171 } 168 172 # echo "</div>"; … … 179 183 echo $rigat[$key]; 180 184 echo $riga[$key]; 185 if($key>$uscita) { break;} 181 186 } 182 187 echo "</div></td></tr></table>";
Note:
See TracChangeset
for help on using the changeset viewer.