fetch_one_array("SELECT * FROM ".$db_prefix."sort WHERE parentid='9' ORDER BY displayorder,binary etitle,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); //計算文章筆數 $sortid = intval($_GET['sid']); $ssortid="WHERE sortid=".$sortid; $nav = new buildNaveng; $total = $DB->fetch_one_array("SELECT COUNT(*) AS count FROM ".$db_prefix."article AS article $ssortid and langeno='eng' and visible=1"); $nav->total_result = $total[count]; $isquery=0; $listshow=0; $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[esimg]; $bannerid=$pauserinfo[bannerimg]; $classcontent=$pauserinfo[enotes]; $showsort=$pauserinfo[showsortinfos]; $parentid=$pauserinfo[parentid]; } //由文章內容和類別填寫的相關資料獲取Banner等資訊 //echo $pid; //echo $total[count]; /** if($imageid==0 && $bannerid==0 && $classcontent==""){ if(intval($total[count])>0){ $listshow=1; foreach($pidary as $k=>$v) { $pauserinfo = $DB->fetch_one_array("SELECT * FROM ".$db_prefix."sort WHERE sortid='".intval($v)."'"); if (empty($pauserinfo)) { } else { if (!empty($pauserinfo[enotes])) { $imageid=$pauserinfo[esimg]; $bannerid=$pauserinfo[bannerimg]; } } } }else{ if(empty($classcontent) && $parentid>0){ foreach($pidary as $k=>$v) { $pauserinfo = $DB->fetch_one_array("SELECT * FROM ".$db_prefix."sort WHERE sortid='".intval($v)."'"); if (empty($pauserinfo)) { } else { if (!empty($pauserinfo[enotes])) { $imageid=$pauserinfo[esimg]; $bannerid=$pauserinfo[bannerimg]; $classcontent=$pauserinfo[enotes]; } } } } } } **/ if(!empty($total[count])){ $listshow=1; foreach($pidary as $k=>$v) { if(intval($v)==12){ $isquery=1; } $pauserinfo = $DB->fetch_one_array("SELECT * FROM ".$db_prefix."sort WHERE sortid='".intval($v)."'"); if (empty($pauserinfo)) { } else { if (!empty($pauserinfo[enotes])) { $imageid=$pauserinfo[esimg]; $bannerid=$pauserinfo[bannerimg]; $classcontent=$pauserinfo[enotes]; } } } }else{ if(empty($classcontent) && $parentid>0){ foreach($pidary as $k=>$v) { $pauserinfo = $DB->fetch_one_array("SELECT * FROM ".$db_prefix."sort WHERE sortid='".intval($v)."'"); if (empty($pauserinfo)) { } else { if (!empty($pauserinfo[enotes])) { $imageid=$pauserinfo[esimg]; $bannerid=$pauserinfo[bannerimg]; $classcontent=$pauserinfo[enotes]; } } } } } $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==9){ $parentaddiv=true; } } if($sort[sortid]==9 || $parentaddiv==true){ if($sort[parentid]==9){ echo "
\n"; } if($sort[sortid]!=9){ echo "
\n"; } } } } } function buildsortnav($sortid){ global $eparentsort; if (empty($sortid)) return; if ($sortid!=-1){ foreach ($eparentsort[$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/en/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) { $nav->execute("SELECT article.* FROM ".$db_prefix."article AS article $ssortid and langeno='eng' and visible=1 ORDER BY article.langeno,article.displayorder,article.articleid",$_GET[shownums]); if($showsort==1){ ?> fetch_array($nav->sql_result)){ ?> $_get_value) { if ($_get_name != "offset") { $_get_vars_list .= "&$_get_name=$_get_value"; } } ?> "> "; }else{ echo ""; } ?>
 
   


 
規格 0) { ?>容量 0) { echo $article[ml];?> ml 重量 g 0) { ?>高度 0) { echo $article[hmm];?> mm 0) { ?>直徑 0) { echo $article[mm];?> mm
"); } else{ echo ("selected"); } } ?>
"; echo $nav->pagenav(); echo "
"; echo $classcontent; echo "