Changeset 360 for trunk/admin/modules/Elezioni/scarica.php
- Timestamp:
- Mar 14, 2022, 5:13:56 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/scarica.php
r344 r360 29 29 if (isset($param['fase'])) $fase=intval($param['fase']); else $fase=0; 30 30 if (isset($param['id_cons_gen2'])) $id_cons_gen2=intval($param['id_cons_gen2']); else $id_cons_gen2='0'; 31 if (isset($param['indirizzoweb'])) $indirizzoweb=addslashes($param['indirizzoweb']); else $indirizzoweb='http ://www.eleonline.it/client/';31 if (isset($param['indirizzoweb'])) $indirizzoweb=addslashes($param['indirizzoweb']); else $indirizzoweb='https://www.eleonline.it/client/'; 32 32 if (isset($param['id_comune2'])) $id_comune2=intval($param['id_comune2']); else $id_comune2='0'; 33 33 # htmlentities($param['indirizzoweb'], ENT_COMPAT, 'UTF-8') 34 34 /******************************************************/ 35 35 /*Funzione di visualizzazione globale */ … … 39 39 if (isset($help)) include("language/$language/ele_scarica.html"); 40 40 41 $bgcolor1=$_SESSION['bgcolor1']; 42 $bgcolor2=$_SESSION['bgcolor2']; 43 44 if ($fase=='0'){ 45 46 echo "<form name=\"import\" action=\"admin.php\">"; 47 echo "<table border=\"0\" width=\"100%\"><tr bgcolor=\"$bgcolor2\">"; 48 echo "<td><b>"._INDIRIZZOWEB1."</b></td>"; 49 echo "<td><input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\"><input type=\"hidden\" name=\"op\" value=\"scarica\"><input type=\"hidden\" name=\"fase\" value=\"1\"><input type=\"text\" name=\"indirizzoweb\" size=\"50\" value=\"".$indirizzoweb."\"></td></tr>"; 50 echo "<td><input type=\"submit\" name=\"add\" value=\""._OK."\"></td>"; 51 echo "</tr></table><br>"; 52 echo "</form>"; 53 }elseif ($fase=='1'){ 54 $rem_cons="<script type=\"text/javascript\" src=\"$indirizzoweb/file.php?fase=1\"></script>"; 55 56 echo "<form name=\"import\" action=\"admin.php\">"; 57 echo "<table border=\"0\" width=\"100%\"><tr bgcolor=\"$bgcolor2\">"; 58 echo "<td><b>"._INDIRIZZOWEB1."</b></td>"; 59 echo "<td><input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\"><input type=\"hidden\" name=\"op\" value=\"scarica\"><input type=\"hidden\" name=\"fase\" value=\"2\"><input type=\"hidden\" name=\"indirizzoweb\" value=\"$indirizzoweb\">$indirizzoweb</td></tr>"; 60 echo "<tr><td><b>"._SCARICACONS."</b></td>"; 61 62 echo "<td>$rem_cons</td></tr>"; 63 41 $bgcolor1=$_SESSION['bgcolor1']; 42 $bgcolor2=$_SESSION['bgcolor2']; 43 if ($fase=='0'){ 44 echo "<form name=\"import\" action=\"admin.php\">"; 45 echo "<table border=\"0\" width=\"100%\"><tr bgcolor=\"$bgcolor2\">"; 46 echo "<td><b>"._INDIRIZZOWEB1."</b></td>"; 47 echo "<td><input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\"><input type=\"hidden\" name=\"op\" value=\"scarica\"><input type=\"hidden\" name=\"fase\" value=\"1\"><input type=\"text\" name=\"indirizzoweb\" size=\"50\" value=\"".$indirizzoweb."\"></td></tr>"; 48 echo "<td><input type=\"submit\" name=\"add\" value=\""._OK."\"></td>"; 49 echo "</tr></table><br>"; 50 echo "</form>"; 51 }elseif ($fase=='1'){ 52 $urlrem="$indirizzoweb/file.php?fase=1"; 53 $rem_cons="<script type=\"text/javascript\" src=\"$urlrem\" crossorigin=\"anonymous\"></script>"; 54 echo "<form name=\"import\" action=\"admin.php\">"; 55 echo "<table border=\"0\" width=\"100%\"><tr bgcolor=\"$bgcolor2\">"; 56 echo "<td><b>"._INDIRIZZOWEB1."</b></td>"; 57 echo "<td><input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\"><input type=\"hidden\" name=\"op\" value=\"scarica\"><input type=\"hidden\" name=\"fase\" value=\"2\"><input type=\"hidden\" name=\"indirizzoweb\" value=\"$indirizzoweb\">$indirizzoweb</td></tr>"; 58 echo "<tr><td><b>"._SCARICACONS."</b></td>"; 59 echo "<td>".$rem_cons."</td></tr>"; 64 60 echo "<tr><td><input type=\"submit\" name=\"add\" value=\""._OK."\"></td>"; 65 66 echo "</tr></table><br>"; 67 echo "</form>"; 61 echo "</tr></table><br>"; 62 echo "</form>"; 68 63 }elseif($fase=='2'){ 69 70 $sql="SELECT descrizione from ".$prefix."_ele_consultazione WHERE id_cons_gen=$id_cons_gen2"; 71 $res = $dbi->prepare("$sql"); 72 $res->execute(); 73 list($descrcons) = $res->fetch(PDO::FETCH_NUM); 74 $rem_cons="<script type=\"text/javascript\" src=\"$indirizzoweb/file.php?fase=2&id_cons_gen2=$id_cons_gen2\"></script>"; 75 76 echo "<form name=\"import\" action=\"admin.php\">"; 77 echo "<table border=\"0\" width=\"100%\"><tr bgcolor=\"$bgcolor2\">"; 78 echo "<td><b>"._INDIRIZZOWEB1."</b></td>"; 79 echo "<td><input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\"><input type=\"hidden\" name=\"op\" value=\"scarica\"><input type=\"hidden\" name=\"fase\" value=\"3\"><input type=\"hidden\" name=\"indirizzoweb\" value=\"$indirizzoweb\">$indirizzoweb</td></td></tr>"; 80 $cons_rem=addslashes($_GET[($id_cons_gen2)]); 81 echo "<tr><td><b>"._CONSULTA.":</b></td><td>$cons_rem</td></tr>"; 82 echo "<tr><td><b>"._SCELTACOMUNE."</b></td><td>$rem_cons</td></tr>"; 83 64 $sql="SELECT descrizione from ".$prefix."_ele_consultazione WHERE id_cons_gen=$id_cons_gen2"; 65 $res = $dbi->prepare("$sql"); 66 $res->execute(); 67 list($descrcons) = $res->fetch(PDO::FETCH_NUM); 68 $rem_cons="<script type=\"text/javascript\" src=\"$indirizzoweb/file.php?fase=2&id_cons_gen2=$id_cons_gen2\"></script>"; 69 echo "<form name=\"import\" action=\"admin.php\">"; 70 echo "<table border=\"0\" width=\"100%\"><tr bgcolor=\"$bgcolor2\">"; 71 echo "<td><b>"._INDIRIZZOWEB1."</b></td>"; 72 echo "<td><input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\"><input type=\"hidden\" name=\"op\" value=\"scarica\"><input type=\"hidden\" name=\"fase\" value=\"3\"><input type=\"hidden\" name=\"indirizzoweb\" value=\"$indirizzoweb\">$indirizzoweb</td></td></tr>"; 73 $cons_rem=addslashes($_GET[($id_cons_gen2)]); 74 echo "<tr><td><b>"._CONSULTA.":</b></td><td>$cons_rem</td></tr>"; 75 echo "<tr><td><b>"._SCELTACOMUNE."</b></td><td>$rem_cons</td></tr>"; 84 76 echo "<tr><td><input type=\"submit\" name=\"add\" value=\""._OK."\"></td>"; 85 86 echo "</tr></table><br>"; 87 echo "</form>"; 88 77 echo "</tr></table><br>"; 78 echo "</form>"; 89 79 }elseif ($fase=='3'){ 90 91 $id_cons_gen2=$_GET['id_cons_gen2']; 92 $id_comune2=$_GET['id_comune2']; 93 Header("Location: $indirizzoweb/modules.php?op=backup&id_cons_gen=$id_cons_gen2&id_comune=$id_comune2"); 94 80 $id_cons_gen2=$_GET['id_cons_gen2']; 81 $id_comune2=$_GET['id_comune2']; 82 Header("Location: $indirizzoweb/modules.php?op=backup&id_cons_gen=$id_cons_gen2&id_comune=$id_comune2"); 95 83 } 96 84 }
Note:
See TracChangeset
for help on using the changeset viewer.