fetch_one_array("SELECT * FROM ".$db_prefix."sort WHERE sortid='278' 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[csimg]; $bannerid=$pauserinfo[cbannerimg]; $classcontent=$pauserinfo[cnotes]; $showsort=$pauserinfo[showsortinfos]; $parentid=$pauserinfo[parentid]; } $productsorts = productsorts(); function listsort($sortid="-1"){ global $DB,$db_prefix,$productsorts,$pid,$pcount,$pidary; if (isset($productsorts[$sortid])) { foreach ($productsorts[$sortid] as $key => $sort){ $parentaddiv=false; $parentad=false; $parentlistary=explode(",",$sort[parentlist]); foreach($parentlistary as $k=>$v) { if($v==4){ $parentaddiv=true; } } //$ctitle = new Chinese("BIG5","GB2312",$sort[title]); //$ctitle = $ctitle->ConvertIT(); $ctitle = htmlspecialchars(trim($sort[ctitle])); if($sort[sortid]==4 || $parentaddiv==true){ if($sort[parentid]==4){ echo "
\n"; } if($sort[sortid]!=4){ echo "
\n"; } } } } } function buildsortnav($sortid){ global $parentsort; if (empty($sortid)) return; if ($sortid!=-1){ foreach ($parentsort[$sortid] as $psid => $stitle) { //$stitle = new Chinese("BIG5","GB2312",$stitle); //$stitle = $stitle->ConvertIT(); $stitle = htmlspecialchars(trim($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/cn/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='gb2312' and visible=1 ORDER BY article.langeno,article.displayorder,article.articleid"); // while ($article = $DB->fetch_array($nav->sql_result)){ // echo ""; // } // }else{ echo ""; //} ?>
 
‧".$article[title]."
"; //$classcontent = new Chinese("BIG5","GB2312",$classcontent); //$classcontent = $classcontent->ConvertIT(); $classcontent = trim($classcontent); echo $classcontent; echo "