dbms, $my_utility); # Istanzio la libreria customer $my_voci = new customer($my_repository->dbms, $my_utility); # Istanzio la libreria customer $my_categoria = new customer($my_repository->dbms, $my_utility); # Istanzio la libreria customer $my_all_annata = new customer($my_repository->dbms, $my_utility); # Istanzio la libreria query string $my_query_string = new query_string; # Leggo la HTTP query string $ok = $my_query_string->get_query_string(); if ($ok < 0) { header("Location: error/error.php?code=$ok&error=Nessun dettaglio&NOMENU=$NOMENU"); exit; } #Parametro per gestione Menu' $NOMENU = 0; if(array_key_exists("NOMENU", $my_query_string->in_query)) $NOMENU = $my_query_string->in_query["NOMENU"]; if(array_key_exists("annata",$my_query_string->in_query)){ if (!strcmp($my_query_string->in_query["annata"], $my->ALL_ANNATA)) $annata = ""; else $annata = $my_query_string->in_query["annata"]; }else{ $annata = $my_utility->get_annata(); } # Eseguo l'accesso al data base $ok_repository = $my_repository->dbms->repository_connect(); if ($ok_repository < 0) { $error_dett = $my_repository->dbms->out_error_description; header("Location: error/error.php?code=$ok_repository&error=$error_dett&NOMENU=$NOMENU"); exit; } if(array_key_exists("in_action",$my_query_string->in_query)){ $in_action = unserialize($my_utility->decodeUrl($my_query_string->in_query["in_action"])); foreach ($in_action as $key => $value){ $my_query_string->in_query[$key] = $value; } } $in = array(); $in["club_id"] = $my_query_string->in_query["club_id"]; $in["categoria_id"] = $my_query_string->in_query["categoria_id"]; $ok = $my->club_get_header($in); if ($ok < 0) { $error_dett = $my->out_error_description; header("Location: error/error.php?code=$ok&error=$error_dett&NOMENU=$NOMENU"); exit; } $head = $my->out[0]; $in["categoria_padre"] = $in["categoria_id"]; $ok_categorie = $my->club_get_categorie($in); if ($ok_categorie < 0) { $error_dett = $my->out_error_description; header("Location: error/error.php?code=$ok_categorie&error=$error_dett&NOMENU=$NOMENU"); exit; } $menu = $my->out; if ($annata){ $in["annata"] = $annata; } $ok_voci = $my_voci->club_get_voci($in); if ($ok_voci < 0) { $error_dett = $my_voci->out_error_description; header("Location: error/error.php?code=$ok_voci&error=$error_dett&NOMENU=$NOMENU"); exit; } if (!$ok_voci) { $ok_categoria = $my_categoria->club_get_categoria($in); if ($ok_categorie < 0){ $error_dett = $my_categoria->out_error_description; header("Location: error/error.php?code=$ok_categoria&error=$error_dett&NOMENU=$NOMENU"); exit; }else{ $my_voci->out[0]["categoria_id"] = $my_categoria->out[0]["categoria_id"]; $my_voci->out[0]["categoria"] = $my_categoria->out[0]["categoria"]; $my_voci->out[0]["des_cat"] = $my_categoria->out[0]["descrizione"]; } } $ok_all_annata = $my_all_annata->get_all_annata($in); if ($ok_all_annata < 0) { $error_dett = $my_all_annata->out_error_description; header("Location: error/error.php?code=$ok_all_annata&error=$error_dett&NOMENU=$NOMENU"); exit; } if (array_key_exists("0", $my_voci->out) && is_array($my_voci->out[0]) && $my_voci->out[0]["categoria"]){ if (strlen($my_voci->out[0]["categoria"]) > 60){ $title = substr($my_voci->out[0]["categoria"], 1, 57) . "..."; }else{ $title = $my_voci->out[0]["categoria"]; } }else{ $title = " "; } $all_annata = $my_all_annata->out; $my_html = new customer(); $my_html->format(); ?> <? if (strcmp(" ",$title)) echo "Rotary Club " . $head["club"] . " - " . $title; else echo "Rotary Club " . $head["club"]; ?> ">
0 && $my_voci->out[0]["voce_id"]) for($i=0;$i<$ok_voci;$i++) { ?> out[$i]["immagine1"])>0) { //list($nome,$estensione) = explode(".", $my_voci->out[$i]["immagine1"]); preg_match("/([^\.]+)(\.[^\.]+)*\.([^\.]+)$/",$my_voci->out[$i]["immagine1"],$matches); $estensione = ""; if (count($matches)) $estensione = $matches[count($matches) - 1]; $is_img= 0; switch (strtolower($estensione)) { case "pdf": $icona="pdf.gif"; break; case "doc": case "txt": $icona="doc.gif"; break; case "xls": $icona="xls.gif"; break; case "zip": $icona="zip.gif"; break; case "ppt": case "pps": $icona="ppt.gif"; break; case "jpg": case "gif": $is_img= 1; break; default: $icona="doc.gif"; break; } if ($is_img){ $img_test .= "FILE_IMMAGINE1_PATH. "/".$in["club_id"]."/".$my_voci->out[$i]["immagine1"]."\">FILE_IMMAGINE1_PATH. "/".$in["club_id"]."/".$my_voci->out[$i]["immagine1"]."\" border=\"0\" height=120 alt \"Ingrandisci\">"; }else{ $img_test .= "FILE_IMMAGINE1_PATH. "/".$in["club_id"]."/".$my_voci->out[$i]["immagine1"]."\">"; } } if (strlen($my_voci->out[$i]["immagine2"])>0) { //list($nome,$estensione) = explode(".", $my_voci->out[$i]["immagine2"]); preg_match("/([^\.]+)(\.[^\.]+)*\.([^\.]+)$/",$my_voci->out[$i]["immagine2"],$matches); $estensione = ""; if (count($matches)) $estensione = $matches[count($matches) - 1]; $is_img= 0; switch (strtolower($estensione)) { case "pdf": $icona="pdf.gif"; break; case "doc": case "txt": $icona="doc.gif"; break; case "xls": $icona="xls.gif"; break; case "zip": $icona="zip.gif"; break; case "ppt": case "pps": $icona="ppt.gif"; break; case "jpg": case "gif": $is_img= 1; break; default: $icona="doc.gif"; break; } if ($is_img){ $img_test .= " FILE_IMMAGINE2_PATH. "/".$in["club_id"]."/".$my_voci->out[$i]["immagine2"]."\">FILE_IMMAGINE1_PATH. "/".$in["club_id"]."/".$my_voci->out[$i]["immagine2"]."\" border=\"0\" height=120 alt \"Ingrandisci\">"; }else{ $img_test .= " FILE_IMMAGINE2_PATH. "/".$in["club_id"]."/".$my_voci->out[$i]["immagine2"]."\">"; } } ?> out[$i]["news"],"1")){ ?>
out) && is_array($my_voci->out[0]) && $my_voci->out[0]["des_cat"]){ if (strlen($my_voci->out[0]["des_cat"]) > 60){ echo substr($my_voci->out[0]["des_cat"], 1, 57) . "..."; }else{ echo $my_voci->out[0]["des_cat"]; } }else{ echo " "; } ?>
out[$i]["evidenzia"],"1")) echo "\"In"; else echo ""; ?> out[$i]["voce"]; ?> out[$i]["descrizione"]) > 200){ echo substr($my_voci->out[$i]["descrizione"], 0, 197) . "..."; ?>

' completa" href="enlarge.php?club_id=&categoria_padre=&categoria_id=&voce_id=out[$i]["voce_id"]; ?>&annata=ALL_ANNATA;} ?>" class=normal>[Continua... ] out[$i]["descrizione"]; } ?>

  ['" href="prenota_club.php?club_id=&categoria_padre=&categoria_id=&voce_id=out[$i]["voce_id"]; ?>&annata=ALL_ANNATA;} ?>" class=normal>Prenota]