Changeset 371 for trunk/admin/modules/Elezioni/ele_sede.php
- Timestamp:
- Sep 3, 2022, 10:40:36 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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");
Note:
See TracChangeset
for help on using the changeset viewer.