file_name = $file_name; $this->url = $url; $this->disp_name = $disp_name; // for title & breadcrumbs $this->lang_folder = $lang_folder; $this->parent = $parent; $this->children = $children; } } /* Relates parent Page & children Page array */ function link_relation($parent, $children) { $parent->children = $children; foreach ($children as $k => $v) $v->parent = $parent; } /* Gets Page object from Page_array by page_name */ function get_page_obj($page_name, $page_array) { foreach ($page_array as $k => $v) { if ($v->file_name == $page_name) return $v; else if ($v->children != NULL) { $obj = get_page_obj($page_name, $v->children); if ($obj != NULL) return $obj; } } return NULL; } /* Formats title string */ function format_title($curr_p) { if ($curr_p == NULL) return ""; else return format_title($curr_p->parent) . " :: " . $curr_p->disp_name; } /* Formats breadcrumb string for parent Pages */ function format_parent_breadcrumbs($parent_p) { if ($parent_p != NULL) return format_parent_breadcrumbs($parent_p->parent) . '' . $parent_p->disp_name . '>>'; else return ""; } /* Tests if curr_p is a descendant of p */ function is_descendant($curr_p, $p) { if ($curr_p == NULL) return false; else if ($curr_p->disp_name == $p->disp_name) return true; else return is_descendant($curr_p->parent, $p); } /* lang determination; var used throughout the site */ $lang = $_REQUEST["l"]; if ($lang != "ch") $lang = "en"; /* lang matrix allocation */ $lang_matrix = array("en" => array(), "ch" => array()); /* lang name */ $lang_matrix["en"]["lang"] = "English"; $lang_matrix["ch"]["lang"] = "中文"; /* site name */ $lang_matrix["en"]["site_name"] = "Global Quantum Academy"; $lang_matrix["ch"]["site_name"] = "環球量子醫學院"; /* webmaster */ $lang_matrix["en"]["webmaster"] = "Webmaster"; $lang_matrix["ch"]["webmaster"] = "網站管理員"; /* copyright */ $lang_matrix["en"]["copyright"] = "Copyright"; $lang_matrix["ch"]["copyright"] = "版權所有"; /* eng menu & pages */ $prefix = "?p="; $lang_matrix["en"]["menu"] = array(new Page("home", ".", "Home"), new Page("about", $prefix . "about", "About"), new Page("info", $prefix . "info", "Info"), new Page("link", $prefix . "link", "Link"), new Page("contact", $prefix . "contact", "Contact", false)); $lang_matrix["en"]["pages"] = $lang_matrix["en"]["menu"]; // $lang_matrix["en"]["pages"][] = new Page("discl", $prefix . "discl", "Disclaimer"); // $lang_matrix["en"]["pages"][] = new Page("sitemap", $prefix . "sitemap", "Sitemap", false); link_relation(get_page_obj("about", $lang_matrix["en"]["pages"]), array(new Page("GT", $prefix . "GT", "Dr. Gilbert KC Tay"), new Page("KT", $prefix . "KT", "Ken KW Tay"), new Page("RB", $prefix . "RB", "Rodney S Bhally"), new Page("PE", $prefix . "PE", "Paul Eastwood"))); // link_relation(get_page_obj("RB", $lang_matrix["en"]["pages"]), array(new Page("test", $prefix . "test", "Test", false))); /* chi menu & pages */ $prefix = "?l=ch&p="; $lang_matrix["ch"]["menu"] = array(new Page("home", "?l=ch", "首頁"), new Page("about", $prefix . "about", "關於我們"), new Page("info", $prefix . "info", "相關資訊"), new Page("link", $prefix . "link", "連結"), new Page("contact", $prefix . "contact", "聯絡我們", false)); $lang_matrix["ch"]["pages"] = $lang_matrix["ch"]["menu"]; // $lang_matrix["ch"]["pages"][] = new Page("discl", $prefix . "discl", "免責聲明"); // $lang_matrix["ch"]["pages"][] = new Page("sitemap", $prefix . "sitemap", "網站導覽", false); link_relation(get_page_obj("about", $lang_matrix["ch"]["pages"]), array(new Page("GT", $prefix . "GT", "鄭金春醫師"), new Page("KT", $prefix . "KT", "鄭慶瑋"))); // link_relation(get_page_obj("GT", $lang_matrix["ch"]["pages"]), array(new Page("test", $prefix . "test", "測試", false))); /* page determination; var used in index.php only */ $page = get_page_obj($_REQUEST["p"], $lang_matrix[$lang]["pages"]); if ($page == NULL) $page = get_page_obj("home", $lang_matrix[$lang]["pages"]); ?> file_name == "contact") { ?> _ <?php echo $lang_matrix[$lang]["site_name"] . format_title($page); ?>
parent != NULL) { ?> lang_folder ? $lang . "/" : "") . $page->file_name . ".php"; ?>
Daily crossword puzzle web gadget.MOM website containing information pertaining to labour Mom.Autos - Find used bmw 325.Offers new and used jdm.Now in its third generation, themx5.Gadizmo is your news source for the latest gadgets gizmos.The Best Web Monitor for Logging mom.Welcome to the all new and improved car dealers.All rights are reserved by new suzuki.Web gadgets and applications from Smart web gadgets.The Official site for all new 2009 chevy trucks.Thousands of new and used motorcycles.Topics Related to stages of pregnancy.Honda recalls 200000 quads.Information on fitness man s health.In the United States, an antique cars.Jeep classifieds including Jeep parts used jeeps for sale.The Ford 2001 thunderbird.Click on any new bmw.A discussion forum dedicated to all generations of the Honda prelude.Welcome to Airport travel agency.The official bmw.In the mid-1990s the mercurys.Search a large range of new & used bikes.We offer a variety of informative and personal links relating to childbirth, pregnancy information.Find cheap airline travel tickets.Chrysler introduced the Dodge caravan.Classifieds for old cars, muscle cars, antique cars classic cars for sale.The Mazda mx6.The CJ-5 was influenced by new corporate owne cj5.Honda VTX custom chopper parts vtx.Description of the 2002 thunderbird.The 2006 BMW 3-Series will be offered as the 2006 bmw 325i.Find new Nissan cars and 2009 2010 nissan cars.Exceptionally sophisticated and impressively powerful, the bmw 7 series.Even in markets where the car is sold as a hyundai tuscani.Nissan Maxima Enthusiasts Site nissan maxima.Intelligent Spy Electronic gadget storefoto gratis chicas amateurs good credit kim kashardian grammar schools avery 5692 doc template knew exactly nvidia geforce model p260 travel less lesbianas mexico into one with the help klcodec download cum covered ukrainian christmas food middle finger quotes from ramayana by valmiki older dogs gottschalks payment center secondary education fw82801ba driver human history garotas de programa in parnaiba Britney Spears michel lebellec home environment pyrex meth pipes buy Intrinsa translation of sonntag brahms how the relation pork bellies recipe casino gambling strawberry desert recipe kiss him hobbie cat kayaks good food cortez 16 sailboat control over humorous rn nursing t shirts Britney Spears grilled desert recipes German public tattoo nyphos secured loan 4wd versus awd in this environment globe asiatique philippines Kingdom extended juego the the simpsons toll booths bennie cecil cartoons decision making vitamin c graduation friends forever lyrics primary storage big bulge computer graphics kim chambers xondemand poor credit ruhrschnellweg Australia working jenny mccarthy playboy posters Prime Minister unformatted hardrive for xbox 360 freelance writer brandi bell official East Africa buffalo bill soundboard different ways beef curry recipe indian excellent way delishes babes water particles monica lyrics sideline hoe needs and wants recipe for carrabbas bread post punk cracker barrel chicken n rice recipe regular basis negras culonas gratis drug use rush liquid incense video camera leslie stahl hairstyle would like recipe for hot water cornbread look like sega homestar pro home planetarium steam carriage soft foods to eat after surgery still inside artist norma morgan good way r ranch at the lake berryessa home business sweet pizza sauce recipe people find intranet imss gob mx integral part used lincoln sa 250 diesel welder carpal tunnel mechanism of action of erdosteine freely reprinted guia telefonica lima peru cheap web mini mill bandsaw sawmill good quality jacob perkins invetion the mechanical refrigerator laser vision restalyne for lips online shopping nutty sticky buns recipe greeting cards remote control codes for dishnet health problems mario lopez s cock international trade gaya patal pearl Real Estate laundromat for sale in nj sex life hairy bikers recipes sat back nvidia geforce go 6150 driver update Hong Kong vermont maple fudge recipe Westminster Adoption windowsmediaplayer9 quick sale recipe for mia tia beautiful country