setPrefix(''); $breadcrumb->setBreadcrumbPre('
  • '); $breadcrumb->setBreadcrumbSuf('
  • '); //$breadcrumb->setDivider(' '); $breadcrumb->add("首頁", "/", NULL, ""); $action = (empty($_REQUEST['action']))?"home":$_REQUEST['action']; $option = (empty($_REQUEST['option']))?NULL:$_REQUEST['option']; $do = (empty($_REQUEST['do']))?NULL:$_REQUEST['do']; $type = (empty($_REQUEST['type']))?NULL:$_REQUEST['type']; $ajax = (!empty($_REQUEST['ajax']))?$_REQUEST['ajax']:NULL; $page_num = (empty($_REQUEST['page']))?1:$_REQUEST['page']; $id = (empty($_REQUEST['id']))?null:$_REQUEST['id']; $web_id = (empty($_REQUEST['web_id']))?null:$_REQUEST['web_id']; $city = (empty($_REQUEST['city']))?0:$_REQUEST['city']; if($do == "member"){ $city = "" ; } $area = (empty($_REQUEST['area']))?0:$_REQUEST['area']; $school = (empty($_REQUEST['school']))?0:$_REQUEST['school']; $line = (empty($_REQUEST['line']))?'':$_REQUEST['line']; $price = (empty($_REQUEST['price']))?0:$_REQUEST['price']; $plan = (empty($_REQUEST['plan']))?0:$_REQUEST['plan']; $keyword = (empty($_REQUEST['keyword']))?null:urldecode($_REQUEST['keyword']); $mobile = (empty($_REQUEST['mobile']))?NULL:$_REQUEST['mobile']; $trtc = (empty($_REQUEST['trtc']))?NULL:$_REQUEST['trtc']; $trtcCity = (empty($_REQUEST['trtcCity']))?1:$_REQUEST['trtcCity']; $qsa = $_SERVER['QUERY_STRING']; //舊版網址轉為新版網址 require_once(ROOT."transform.php"); //中文網址轉為英文網址 require_once(ROOT."seoChinese.php"); //if($web_id == 0){ // //依照地區隨機設置b區廣告 // $rand_keys = array_rand($WEB_NAME, 1); // //echo $rand_keys = ($rand_keys>8 || $rand_keys==0)?6:$rand_keys; // $web_id = $rand_keys ; //} //$banner = new banner($web_id); //$banner->setCity($WEB_ARRAY[$web_id]); //麵包屑顯示 $breadcrumb_display = true; if (isset($action)){ if(file_exists("$action/index.html")){ $tpl="$action/index.html"; }else{ //麵包屑不顯示 $breadcrumb_display = false; $tpl="home.html"; } } //echo "
    action=".$action.", option=".$option.", page=".$page_num.", type=".$type." , id=".$id." , tpl = ".$tpl; $breadcrumb_html = $breadcrumb->show(); $breadcrumb_html = str_replace ('»','',$breadcrumb_html); //if($do == "member") { //個人專頁亂數顯示 // $banner_H = $free->getSliderBanner2H($city_banner); //}else if($action == "home"){ //首頁的廣告亂數取 // $city_banner = $WEB_ARRAY[array_rand($WEB_ARRAY, 1)]; // $banner_AM = $free->getSliderBanner('AM',$city_banner); // $banner_AM = $free->randAD($banner_AM); // $banner_H = $free->getSliderBanner2H($city_banner); // $city2AD = $city_banner ; //}else if($option == "one"){ // $banner_H = $free->getSliderBanner2H($city2AD); //}else{ // $banner_H = $free->getSliderBanner2H($city); //} //print_nice($banner_H);exit; //$allCount = $free->getCount(); //print_nice($allCount);exit; ob_start(); include($tpl); $content=ob_get_contents(); ob_get_clean(); //print_nice($navigatorTree);exit; ?> <?=$title?>