Changeset 371 for trunk/admin/modules
- Timestamp:
- Sep 3, 2022, 10:40:36 AM (2 years ago)
- Location:
- trunk/admin/modules/Elezioni
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_controlli.php
r365 r371 383 383 $totsl+=$svl; 384 384 $tnl+=$nl; 385 if(($votig+$svl)<($votil+$svg+$nl) and $disg)385 if(($votig+$svl)<($votil+$svg+$nl) and ($solog or $disg)) 386 386 { $err=1; $tipo='lista'; break; } 387 387 } -
trunk/admin/modules/Elezioni/ele_sede.php
r344 r371 45 45 if (isset($param['filemappa'])) $filemappa=addslashes($param['filemappa']); else $filemappa=''; 46 46 if (isset($param['mappa'])) $mappa=addslashes($param['mappa']); else $mappa=''; 47 if (isset($param['delmap'])) $delmap=addslashes($param['delmap']); 47 48 48 49 … … 59 60 60 61 function all() { 61 global $bgcolor1, $bgcolor2, $prefix, $dbi, $offset, $min,$id_cons,$id_cons_gen,$do,$id_sede,$id_circ ;62 global $bgcolor1, $bgcolor2, $prefix, $dbi, $offset, $min,$id_cons,$id_cons_gen,$do,$id_sede,$id_circ,$delmap; 62 63 63 64 echo "<center><font class=\"title\"><br><b>"._SEDE."</b></font><br><br>"; … … 68 69 ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._CIRCO."</b></td>" 69 70 ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._INDIRIZZO."</b></td>" 70 ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._MAPPA."</b></td>" 71 ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._TEL."</b></td>" 71 ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._MAPPA."</b>"; 72 if ($do=='modify') 73 echo "<br><input type=\"checkbox\" name=\"delmap\" value=\"false\"> "._DELETE; 74 echo "</td>"; 75 echo "<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._TEL."</b></td>" 72 76 ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._FAX."</b></td>" 73 77 ."<td bgcolor=\"$bgcolor1\" align=\"center\"> <b>"._RESP."</b> </td>" … … 184 188 185 189 function sede($ok, $do,$id_circ, $id_sede,$indir, $tel1, $tel2, $fax, $resp, $mappa, $filemappa, $id_sede2) { 186 global $admin, $bgcolor1, $bgcolor2, $prefix, $dbi, $descr_cons, $id_cons,$id_cons_gen,$id_comune ;190 global $admin, $bgcolor1, $bgcolor2, $prefix, $dbi, $descr_cons, $id_cons,$id_cons_gen,$id_comune,$delmap; 187 191 $perms=ChiSei(0); 188 192 … … 253 257 $mappanome=addslashes($nomemappa); 254 258 $cond=", mappa='$mappablob', filemappa='$mappanome'"; 255 } else {$cond='';} 256 259 } else { 260 if ( $delmap=='false') {$cond=", mappa='', filemappa=''";} 261 else $cond=''; 262 } 257 263 $sql="update ".$prefix."_ele_sede set id_circ='$id_circ',indirizzo='$indir' , telefono1='$tel1', telefono2='$tel2',fax='$fax',responsabile='$resp' $cond where id_sede='$id_sede2' "; 258 264 $res = $dbi->prepare("$sql"); -
trunk/admin/modules/Elezioni/ele_spoglio.php
r369 r371 164 164 ."<input type=\"hidden\" name=\"id_gruppo\" value=\"$id_gruppo\"/>"; 165 165 $riga[$y].= "</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>";}166 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>";} 167 167 else $riga[$y].= "<span class=\"td\" style=\"text-align: right;\" rowspan=\"1\" colspan=\"6\"><input type=\"hidden\" name=\"delete\" value=\"\"/></span>"; 168 168 $riga[$y].= "<span class=\"td\" style=\"text-align: right;\" rowspan=\"1\" colspan=\"6\"><input type=\"submit\" name=\"update\" value=\""._OK."\"/></span>";
Note:
See TracChangeset
for help on using the changeset viewer.