fetch_one_array("SELECT * FROM ".$db_prefix."sort WHERE sortid='7' ORDER BY displayorder,binary ctitle,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; if (isset($productsorts[$sortid])) { //foreach ($productsorts[$sortid] as $key => $sort){ listsubsort(7); //} } } function listsubsort($sortid="-1"){ global $DB,$db_prefix,$productsorts,$ctitle,$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']); } } //$ctitle = new Chinese("BIG5","GB2312",$sort[title]); //$ctitle = $ctitle->ConvertIT(); $ctitle = htmlspecialchars(trim($sort[ctitle])); //$cl = new Chinese("BIG5","GB2312","│"); //$cl = $cl->ConvertIT(); $cl = "│"; if($_GET['sid']==$sort[sortid]){ $ctitle=$sort[title]; $imageid=$sort[csimg]; echo ""; echo " "; echo " "; echo " "; echo "
".$cl.$ctitle."
"; }else{ echo ""; echo " ".$cl.$ctitle.""; echo ""; } $j=$j+1; } } } 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 ""; } ?>
 
"; echo $article[description]; echo "
"; echo $classcontent; echo "