ID . "'>" . $realta->Nome . " "; echo " "; } if (isset($concerto)) { if ($utente->TipoCreaConcerto == 1 && $azione == "U1A") { echo "Carica/Cambia Immagine "; echo " "; } if (isset($realta)) { if (in_array($realta->ID, $concerto->IDRealta) && $azione == "U1") { echo "Carica/Cambia Immagine "; echo " "; } } } if (count($utente->Zona) > 0 || $utente->IDTipo == 99) { echo "Amministrazione concerti "; echo "Crea concerto "; echo "Elenco concerti "; echo " "; echo "Amministrazione realtą "; echo "Elenco artisti "; echo "Elenco luoghi "; echo "Elenco organizzatori "; echo " "; echo "Elenco Utenti/Realtą "; echo " "; } } if ($id != "") { echo "Realtą musicali coinvolte: "; for ($i = 0; $i < count($concerto->IDRealta); $i++) { echo " "; } echo " "; if (isset($_SESSION["UtenteID"])) { if (formatDateFromSQL($concerto->DataOra, "oggi") < oggi()) { echo ""; echo "Scrivi una recensione... "; echo " "; } } $articoli = $concerto->getArticoli($handle); if (count($articoli) > 0) { echo "RECENSIONE "; for ($i = 0; $i < count($articoli); $i++) { echo "- di " . getAutoriArticolo($handle, $articoli[$i]["ID"], 1) . " "; } echo " "; } $shareSocial = addToAny($concerto->ID, $titolo); echo $shareSocial; } break; case "r1": // realta.php if (isset($_SESSION["UtenteID"])) { if (in_array($id, $utente->UtenteRealta)) { echo "Modifica Dati "; echo "Carica/Cambia Immagine "; echo "Gestione link "; echo " "; echo "Crea concerto "; echo "Elenco concerti "; echo " "; $utentiRichiedenti = getDettaglioRichiesteControlloRealta($handle, $id); if (count($utentiRichiedenti) > 0) { echo "Richieste di gestione "; for ($i = 0; $i < count($utentiRichiedenti); $i++) { echo " ![]() ![]() "; } } } } if (isset($_GET["id"])) { $articoliInterviste = $realta->getArticoliInterviste($handle); if (count($articoliInterviste) > 0) { echo "INTERVISTA "; for ($i = 0; $i < count($articoliInterviste); $i++) { echo "- di " . getAutoriArticolo($handle, $articoliInterviste[$i]["ID"], 1) . " "; } echo " "; } $articoliConcerti = $realta->getArticoliConcerti($handle); if (count($articoliConcerti) > 0) { echo "CONCERTO "; for ($i = 0; $i < count($articoliConcerti); $i++) { echo "- " . formatDateFromSQL($articoliConcerti[$i]["DataPubblicazione"], "data") . ", di " . getAutoriArticolo($handle, $articoliConcerti[$i]["ID"], 1) . " "; } echo " "; } $t = 2; if ($realta->TipoIsLuogo) { $t = 1; } if ($realta->TipoIsArtista) { $t = 0; } echo " "; echo " "; $shareSocial = addToAny($realta->ID, $titolo); echo $shareSocial; } break; case "r2": // realta_admin.php if ($azione == "U1A") { echo "Carica/Cambia Immagine "; echo "Gestione link "; echo " "; echo "Torna all'elenco "; echo " "; } break; case "u1": // utente.php if (isset($_SESSION["UtenteID"]) && !isset($_GET["id"])) { ?> Cambia Password Modifica Dati Personali Carica/Cambia Immagine Nuova Realtą musicale UtenteRealta) > 0) { for ($i = 0; $i < count($utente->UtenteRealta); $i++) { $query = "SELECT tr.Icona From tipo_realta tr INNER JOIN realta r ON tr.ID = r.IDTipo WHERE r.ID = " . $utente->UtenteRealta[$i]; $icona = $handle->getSingleValue($query); echo " "; $richieste = getRichiesteControlloRealta($handle, $utente->UtenteRealta[$i]); if ($richieste > 0) { $numRichieste = "richiesta"; if ($richieste > 1) { $numRichieste = "richieste"; } echo "(" . $richieste . " " . $numRichieste . ") "; } } echo " "; } ?> Gestione Articoli Crea nuovo articolo Elenco articoli TipoCreaConcerto == 1) { echo "Amministrazione concerti "; echo "Crea concerto "; echo "Elenco concerti "; echo " "; } if (count($utente->Zona) > 0 || $utente->IDTipo == 99) { echo "Amministrazione realtą "; echo "Elenco artisti "; echo "Elenco luoghi "; echo "Elenco organizzatori "; echo " "; echo "Elenco Utenti/Realtą "; echo " "; } } else // TODO: scheda dell'utente per il navigatore comune { if (isset($_GET["id"])) { $utente = new Utente(0, $handle); $utente->getUtente($handle, $_GET["id"]); $articoli = $utente->getArticoli($handle, false, 0); if (count($articoli) > 0) { echo " "; } } } break; case "a1": // articolo_admin.php if ($azione == "MOD" || $azione == "INS") { if (in_array($id, $utente->UtenteArticolo)) { echo "Carica/Cambia Immagine "; echo " "; echo "Torna all'elenco "; } } if ($azione == "NEW" || $azione == "NEW2" || $azione == "NEWB") { echo "Torna all'elenco "; } if ($azione == "DIR") { echo "Torna alla tua pagina personale "; echo " "; echo "Scrivi un nuovo articolo"; } break; case "i": // index.php /*echo " "; echo "Il primo contest per band emergenti organizzato dal Checkmate Rock Club. "; echo " "; echo " ![]() "; echo " ";*/ echo "ULTIMI COMMENTI "; $arrCommenti = array(); $arrCommenti = getElencoCommenti($handle, 7); for ($i = 0; $i < count($arrCommenti); $i++) { if ($i % 2 == 0) { echo ""; } echo "- " . $arrCommenti[$i]["Nome"] . ", su "; echo $arrCommenti[$i]["Titolo"] . " "; if ($i % 2 == 0) { echo ""; } } echo " "; echo " ![]() "; echo " "; $oggi = date("Ymd"); //echo " "; echo " "; echo " "; echo " ![]() "; echo " "; echo "Avete un negozio, un locale, uno studio, una saletta, e volete dimostrare che la vostra cittą offra tanti buoni concerti? Stampate e appendete il vostro calendario di zona! "; echo " "; echo " "; echo " ![]() "; echo " "; echo " "; echo "Bootleg in studio per voi, direttamente dalle salette delle band pił interessanti. "; echo " "; echo " ![]() "; echo " "; echo " "; echo " "; echo " |