Zona) > 0 || $utente->IDTipo == 99) { if (isset($_GET["a"])) { $azione = $_GET["a"]; } if (isset($_GET["id"])) { if (is_numeric($_GET["id"])) { $idU = $_GET["id"]; $utente_mod = new Utente(0, $handle); $utente_mod->getUtente( $handle, $idU); $titolo = $utente_mod->Nome . " " . $utente_mod->Cognome; if ($azione == "ACTA") { if (isset($_GET["s"])) { $utente_mod->attiva($handle, $_GET["s"]); $azione = "DIRA"; } else { header("location: login.php"); } } } else { header("location: login.php"); } } if ($azione == "MOV") { if ($_POST["realta_da"] != "" && $_POST["realta_a"] != "") { spostaRealta($handle, $_POST["realta_da"], $_POST["realta_a"]); $azione = "DIRA"; } } } else { header("location: login.php"); } switch($azione) { case "DIRA": $utentiModerati = $utente->getUtentiModerati($handle); if (count($utentiModerati) > 0) { echo ""; echo ""; for ($i = 0; $i < count($utentiModerati); $i++) { if ($utentiModerati[$i]["Attivo"] == 1) { $icona = ImgLiveUs("ico-ok.gif"); $iconaALT = "ATTIVO"; } else { $icona = ImgLiveUs("ico-no.gif"); $iconaALT = "DISATTIVO"; } echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo "
LOGINNOMECOGNOMEREALTA'
" . ($i + 1) . "" . $iconaALT . "" . $utentiModerati[$i]["Login"] . "" . $utentiModerati[$i]["Nome"] . "" . $utentiModerati[$i]["Cognome"] . ""; $realtaGestite = getRealtaGestite($handle, $utentiModerati[$i]["ID"]); for ($j = 0; $j < count($realtaGestite); $j++) { if ($j > 0) { echo ", "; } if ($realtaGestite[$j]["Attivo"] == 1) { echo ""; } echo $realtaGestite[$j]["Nome"]; if ($realtaGestite[$j]["Attivo"] == 1) { echo ""; } } echo "

"; } else { echo "Nessuna realtà...

"; } // Gestione dello spostamento di una realtà esistente all'altra, con cancellazione della prima echo "SPOSTAMENTO REALTA'
"; $nomiRealta = getNomiRealta($handle); echo "
"; echo "
"; echo ""; echo " "; echo "

"; break; default: break; } include("footer.php"); ?>