fetch_one_array("SELECT * FROM ".$db_prefix."sort WHERE sortid='7' ORDER BY displayorder,binary title,sortid ASC LIMIT 0,1"); if (empty($pauserinfo)) { } else { $_GET['sid']=$pauserinfo[sortid]; } }else if(intval($_GET['sid'])>0){ $_GET['sid']=intval($_GET['sid']); } //導引根目錄 $pid=substr(buildsortnavid($_GET['sid']),1,strlen(buildsortnavid($_GET['sid']))-1); $pidary=explode(",",$pid); $pcount = count($pidary); $imageid=0; $bannerid=0; $classcontent=""; $showsort=0; $parentid=-1; //取得類別相關資料 $pauserinfo = $DB->fetch_one_array("SELECT * FROM ".$db_prefix."sort WHERE sortid='".intval($_GET['sid'])."'"); if (empty($pauserinfo)) { } else { $imageid=$pauserinfo[simg]; $bannerid=$pauserinfo[bannerimg]; $classcontent=$pauserinfo[notes]; $showsort=$pauserinfo[showsortinfos]; $parentid=$pauserinfo[parentid]; } $productsorts = productsorts(); function listsort($sortid="-1"){ global $DB,$db_prefix,$productsorts; if (isset($productsorts[$sortid])) { //foreach ($productsorts[$sortid] as $key => $sort){ listsubsort(7); //} } } function listsubsort($sortid="-1"){ global $DB,$db_prefix,$productsorts,$title,$imageid; if (isset($productsorts[$sortid])) { $j=0; foreach ($productsorts[$sortid] as $key => $sort){ if($j==0){ if(!$_GET['sid'] || intval($_GET['sid'])==0){ $_GET['sid'] = $sort[sortid]; }else if(intval($_GET['sid'])>0){ $_GET['sid']=intval($_GET['sid']); } } if($_GET['sid']==$sort[sortid]){ $title=$sort[title]; $imageid=$sort[simg]; echo ""; echo " "; echo " "; echo " "; echo "
│".$sort[title]."
"; }else{ echo ""; echo " │".$sort[title].""; echo ""; } $j=$j+1; } } } function buildsortnav($sortid){ global $parentsort; if (empty($sortid)) return; if ($sortid!=-1){ foreach ($parentsort[$sortid] as $psid => $stitle) { $navbit = " >  $stitle"; $navbit = buildsortnav($psid).$navbit; } } return $navbit; } function buildsortnavid($sortid){ global $parentsortid; if (empty($sortid)) return; if ($sortid!=-1){ foreach ($parentsortid[$sortid] as $psid => $ssortid) { $navbitid = ",$ssortid"; $navbitid = buildsortnavid($psid).$navbitid; } } return $navbitid; } require("./incweb/tw/inc_top.inc"); ?>
 
 
   
     
  fetch_one_array("SELECT * FROM ".$db_prefix."gallery WHERE id='$bannerid'"); $filename ="/upload/images/$image[filename]"; $banner_img = ""; } else { //$banner_img = ""; } echo $banner_img; if (!empty($imageid)) { $image = $DB->fetch_one_array("SELECT * FROM ".$db_prefix."gallery WHERE id='$imageid'"); $filename ="/upload/images/$image[filename]"; $articlelistbit_img = ""; $articlelistbit_img .= ""; } else { $articlelistbit_img = ""; } echo $articlelistbit_img; //if ($listshow==1) { // $sortid = intval($_GET['sid']); // $ssortid="WHERE sortid=".$sortid; // // $nav = new buildNav; // $nav->execute("SELECT article.* FROM ".$db_prefix."article AS article $ssortid and langeno='big5' and visible=1 ORDER BY article.langeno,article.displayorder,article.articleid"); // while ($article = $DB->fetch_array($nav->sql_result)){ // echo ""; // } // }else{ echo ""; //} ?>
 
‧".$article[title]."
"; echo $classcontent; echo "