dbms, $my_utility); $my_club = 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(); #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)) $annata = $my_query_string->in_query["annata"]; else $annata = $my_utility->get_annata(); $my_html = new customer(); $my_html->format(); # 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; } $ok = $my->get_layout($annata); if ($ok < 0) { $error_dett = $my->out_error_description; header("Location: error/error.php?code=$ok&error=$error_dett&NOMENU=$NOMENU"); exit; } if ($ok == 0 || $ok > 1){ $error_dett = "Configuration error"; header("Location: error/error.php?code=$ok&error=$error_dett&NOMENU=$NOMENU"); exit; } $layout = $my->out[0]; // Recupero le informazioni sul distretto $in = array(); $in["club_id"] = 0; $ok = $my->club_get_district($in); if ($ok < 0) { $error_dett = $my->out_error_description; header("Location: error/error.php?code=$ok&error=$error_dett&NOMENU=$NOMENU"); exit; } $head_dis = $my->out[0]; // Recupero le informazioni sul Menu orizzontale (Primo livello) $in = array(); $in["club_id"] = 0; $in["annata"] = $annata; //$in["add_where"] = "(" . implode(',', $my_html->FIRST_LINE_MENU_CATEGORIES_ID) . ") "; $in["settore"] = "FIRST_LINE_MENU_CATEGORIES_ID"; $ok = $my->club_get_categorie($in); if ($ok < 0) { $error_dett = $my->out_error_description; header("Location: error/error.php?code=$ok&error=$error_dett&NOMENU=$NOMENU"); exit; } $menu = $my->out; //Recupero le informazioni sulla categoria 'OTHER' $in = array(); $in["club_id"] = 0; $in["annata"] = $annata; //$in["add_not_where"] = "(" . $my_html->GOVERNOR_CATEGORY_ID . ',' .implode(',', $my_html->FIRST_LINE_MENU_CATEGORIES_ID) . ',' .implode(',', $my_html->WIDENING_MENU_CATEGORIES_ID) . ") "; $in["settore"] = "SECOND_LINE_MENU_CATEGORIES_ID"; $ok = $my->club_get_categorie($in); if ($ok < 0) { $error_dett = $my->out_error_description; header("Location: error/error.php?code=$ok&error=$error_dett&NOMENU=$NOMENU"); exit; } $menu2 = $my->out; $ok = $my->club_get_header(); 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; //Recupero le informazioni sulla categoria 'Altri link' $in = array(); $in["club_id"] = 0; $in["annata"] = $annata; $in["settore"] = "WIDENING_MENU_CATEGORIES_ID"; $ok3 = $my->club_get_categorie($in); if ($ok3 < 0) { $error_dett = $my->out_error_description; header("Location: error/error.php?code=$ok3&error=$error_dett&NOMENU=$NOMENU"); exit; } $menu3 = $my->out; //Recupero le informazioni sulla categoria 'GOVERNATORE' $in = array(); $in["club_id"] = 0; $in["annata"] = $annata; $in["settore"] = "GOVERNOR_CATEGORY_ID"; $ok = $my->club_get_categorie($in); if ($ok < 0) { $error_dett = $my->out_error_description; header("Location: error/error.php?code=$ok&error=$error_dett&NOMENU=$NOMENU"); exit; } $governor_category = array(); if (array_key_exists(0,$my->out)) $governor_category = $my->out[0]; $ok_tipo_carica_id = $my->search_tipo_carica_id("Governatore", "", "Distretto 2060"); if ($ok_tipo_carica_id < 0) { $error_dett = $my->out_error_description; header("Location: error/error.php?code=$ok_tipo_carica_id&error=$error_dett&NOMENU=$NOMENU"); exit; } $tipo_carica = $my->out[0]; $tipo_carica_id = $tipo_carica["tipo_carica_id"]; $ok_governatore = $my->get_governatore($tipo_carica_id, $annata); if ($ok_governatore < 0) { $error_dett = $my->out_error_description; header("Location: error/error.php?code=$ok_governatore&error=$error_dett&NOMENU=$NOMENU"); exit; } if ($ok_governatore > 0) { $governatore = $my->out[0]; $in_action = array(); $in_action["club_id"] = 0; if (count($governor_category)){ $in_action["categoria_padre"] = $governor_category["categoria_id"]; $ok_categories = $my->club_get_categorie_figlie($in_action); if ($ok_categories < 0) { $error_dett = $my->out_error_description; header("Location: error/error.php?code=$ok_categories&error=$error_dett&NOMENU=$NOMENU"); exit; } $governator_categories = $my->out; } } $title= "Mappa del Sito"; $dir_year = str_replace("/", "-", $annata); $css = "allegati/upload.layout/" . $dir_year . "/style.web.css"; ?> <? if (strcmp(" ",$title)) echo $head_dis["club"] . " - " . $title; else echo $head_dis["club"]; ?> ">
Mappa del Sito
 "; $entries[] = "
  • Home
  • "; for($i=0;$i" . $menu[$i]["categoria"] .""; else $entries[] = "
  • " . $menu[$i]["categoria"] ."
  • "; } $entries[] = "
  • Club del Distretto
  • "; $entries[] = "

     

    "; for($i=0;$i" . $menu2[$i]["categoria"] .""; else $entries[] = "
  • " . $menu2[$i]["categoria"] ."
  • "; } $entries[] = "
  • Admin Distretto
  • "; $entries[] = "

    " . $governor_category["categoria"] . "

    "; for($i=0;$i<$ok_categories - 1;$i++) { $entries[] = "
  • " . $governator_categories[$i]["categoria"] ."
  • "; } $entries[] = "
  • " . $governator_categories[$i]["categoria"] ."
  • "; $entries[] = "

    Links

    "; if (!strcmp($annata, "2007/2008")){ $entries[] = "
  • I Presidenti dei Club
  • "; } $entries[] = "
  • Mappa del Sito
  • "; for($i=0;$i<$ok3;$i++) { $entries[] = "
  • " . $menu3[$i]["categoria"] ."
  • "; } $entries[] = "
  • ROTARACT
  • "; $num_elements = count($entries); $num_elements_per_column = ceil($num_elements / 3); ?>
    HOME
    = $num_elements){ break; } echo $entries[$i]; } ?>
    0){ $entries = array(); $entries[] = ""; # Istanzio la libreria customer $my_leaf = new customer($my_repository->dbms, $my_utility); $in_action_leaf = array(); $in_action_leaf["categoria_padre"] = $menu[$i]["categoria_id"]; $in_action_leaf["club_id"] = $menu[$i]["club_id"]; $ok_leaf = $my_leaf->club_get_categorie_figlie($in_action_leaf); if ($ok_leaf < 0) { $error_dett = $my_leaf->out_error_description; header("Location: error/error.php?code=$ok_leaf&error=$error_dett&NOMENU=$NOMENU"); exit; } $leaf = $my_leaf->out; for($j = 0; $j < count($leaf) - 1; $j++){ $entries[] = "
  • " . $leaf[$j]["categoria"] ."
  • "; } $entries[] = "
  • " . $leaf[count($leaf) - 1]["categoria"] ."
  • "; ?>
    0){ $entries = array(); $entries[] = ""; # Istanzio la libreria customer $my_leaf = new customer($my_repository->dbms, $my_utility); $in_action_leaf = array(); $in_action_leaf["categoria_padre"] = $menu2[$i]["categoria_id"]; $in_action_leaf["club_id"] = $menu2[$i]["club_id"]; $ok_leaf = $my_leaf->club_get_categorie_figlie($in_action_leaf); if ($ok_leaf < 0) { $error_dett = $my_leaf->out_error_description; header("Location: error/error.php?code=$ok_leaf&error=$error_dett&NOmenu2=$NOmenu2"); exit; } $leaf = $my_leaf->out; for($j = 0; $j < count($leaf) - 1; $j++){ $entries[] = "
  • " . $leaf[$j]["categoria"] ."
  • "; } $entries[] = "
  • " . $leaf[count($leaf) - 1]["categoria"] ."
  • "; ?>