setCurrentPage("productcenter"); $XMLtranlateion->getCurrentPage(); getValue("page"); if ($page=="") $page=1; $noOfPage = 1; $noOfProductsPerPage = 10; $countpage = 0; $count = 0; ?> $noOfPage) { $page = $noOfPage; } if(!empty($arrId)) { if(strpos($arrId[$page], ",") == 0) { $IDs = substr($arrId[$page], 1, strlen($arrId[$page])-1); } $sql = "SELECT * FROM product WHERE product_id IN(".$IDs.")"; //$sql .= " ORDER BY news_id DESC"; mysql_query("SET NAMES UTF8"); $result=mysql_query($sql); $counttypeproduct=0; while($row=mysql_fetch_array($result)) { $counttypeproduct++; $product_id[$counttypeproduct]=$row["product_id"]; $product_partno[$counttypeproduct] = $row["product_partno"]; $product_model_eng[$counttypeproduct] = $row["product_model_eng"]; $product_briefinfo_chi[$counttypeproduct] = $row["product_briefinfo_chi"]; $product_briefinfo_eng[$counttypeproduct] = $row["product_briefinfo_eng"]; $product_price[$counttypeproduct] = $row["product_price"]; $product_year[$counttypeproduct]=$row["product_year"]; $sqlBrand="SELECT brand_name_chi,brand_name_eng FROM brand WHERE brand_id=".$row["product_brand_id"]; mysql_query("SET NAMES UTF8"); $Brandresult=mysql_query($sqlBrand); $brandrow=mysql_fetch_array($Brandresult); $BrandCname[$counttypeproduct]=$brandrow["brand_name_chi"]; $BrandEname[$counttypeproduct]=$brandrow["brand_name_eng"]; } } } getValue('brandsearch'); getValue('modelsearch'); getValue('year'); getValue('typesearch'); getValue('search'); ?> $noOfPage) { $page = $noOfPage; } if(!empty($arrId)) { if(strpos($arrId[$page], ",") == 0) { $IDs = substr($arrId[$page], 1, strlen($arrId[$page])-1); } $sql = "SELECT * FROM product WHERE product_id IN(".$IDs.")"; mysql_query("SET NAMES UTF8"); $result=mysql_query($sql); $countproduct=0; while($row=mysql_fetch_array($result)) { $countproduct++; //search $product_id[$countproduct]=$row["product_id"]; $product_partno[$countproduct] = $row["product_partno"]; $product_model_eng[$countproduct] = $row["product_model_eng"]; $product_briefinfo_chi[$countproduct] = $row["product_briefinfo_chi"]; $product_briefinfo_eng[$countproduct] = $row["product_briefinfo_eng"]; $product_brand_id[$countproduct] = $row["product_brand_id"]; $product_year[$countproduct]=$row["product_year"]; $product_price[$countproduct] = $row["product_price"]; $sqlbrand="SELECT brand_name_chi,brand_name_eng FROM brand WHERE brand_id=".$product_brand_id[$countproduct]; mysql_query("SET NAMES UTF8"); $brandresult=mysql_query($sqlbrand); while($brandrow=mysql_fetch_array($brandresult)){ $brand_name_chiSearch[$countproduct]=$brandrow["brand_name_chi"]; $brand_name_engSearch[$countproduct]=$brandrow["brand_name_eng"]; } $product_type_id[$countproduct] = $row["product_type_id"]; $sqltype="SELECT type_name_chi,type_name_eng FROM type WHERE type_id=".$row["product_type_id"]; mysql_query("SET NAMES UTF8"); $typeresult=mysql_query($sqltype); while($typerow=mysql_fetch_array($typeresult)){ $type_name_chiSearch[$countproduct]=$typerow["type_name_chi"]; $type_name_engSearch[$countproduct]=$typerow["type_name_eng"]; } } } } if($brand!=""){ $sql="SELECT brand_name_eng,brand_name_chi FROM brand WHERE brand_id=".trim($brand); mysql_query("SET NAMES UTF8"); $result=mysql_query($sql); $row = mysql_fetch_array($result); $BrandEName=$row['brand_name_eng']; $BrandCName=$row['brand_name_chi']; $sql="SELECT product_id FROM product WHERE product_brand_id=".$brand." and product_enable=1 GROUP BY product_id"; mysql_query("SET NAMES UTF8"); $result=mysql_query($sql); while($row=mysql_fetch_array($result)){ $countpage++; $noOfPage = ceil($countpage/$noOfProductsPerPage); $arrId[$noOfPage] .= ",'".$row["product_id"]."'"; } if($page > $noOfPage) { $page = $noOfPage; } if(!empty($arrId)) { if(strpos($arrId[$page], ",") == 0) { $IDs = substr($arrId[$page], 1, strlen($arrId[$page])-1); } $sql = "SELECT * FROM product,type WHERE product_id IN(".$IDs.")"; $sql .= "GROUP BY product_id ORDER BY product_id DESC "; mysql_query("SET NAMES UTF8"); $result=mysql_query($sql); $countproduct=0; while($row=mysql_fetch_array($result)) { $countproduct++; $product_id[$countproduct]=$row["product_id"]; $product_partno[$countproduct] = $row["product_partno"]; $product_model_eng[$countproduct] = $row["product_model_eng"]; $product_briefinfo_chi[$countproduct] = $row["product_briefinfo_chi"]; $product_briefinfo_eng[$countproduct] = $row["product_briefinfo_eng"]; $product_year[$countproduct]=$row["product_year"]; $product_type_id[$countproduct]=$row["product_type_id"]; $sql="SELECT type_name_chi,type_name_eng FROM type WHERE type_id=".$product_type_id[$countproduct]; mysql_query("SET NAMES UTF8"); $Brandresult=mysql_query($sql); $Typerow=mysql_fetch_array($Brandresult); $type_name_chi_byBrand[$countproduct]=$Typerow['type_name_chi']; $type_name_eng_byBrand[$countproduct]=$Typerow['type_name_eng']; } } } $sql="SELECT type_id,type_name_chi,type_name_eng,type_photolink FROM type WHERE type_enable=1 ORDER BY type_id"; mysql_query("SET NAMES UTF8"); $result=mysql_query($sql); $counttype=0; while($row=mysql_fetch_array($result)) { $counttype++; $type_id_forType[$counttype]=$row["type_id"]; $type_name_chi_forType[$counttype]=$row["type_name_chi"]; $type_name_eng_forType[$counttype]=$row["type_name_eng"]; $type_photolink_forType[$counttype]=$row["type_photolink"]; } $sql="SELECT type_name_chi,type_name_eng FROM type WHERE type_id=".$type; mysql_query("SET NAMES UTF8"); $result=mysql_query($sql); $row=mysql_fetch_array($result); $TypeChiName=$row["type_name_chi"]; $TypeEngName=$row["type_name_eng"]; ?>
 

gettagValue("advandceSearchpc"); ?>

 
 
 
 

gettagValue("SearchResult"); ?>

 

1) { if($lang==0){ echo("Page:"); } // $pagename = $self; if($page == 1) { echo("  "); echo ("1"); } else { ?>   1 1 AND $i < $noOfPage){ $firstpage[$i] = $pagecount++; if($firstpage[$i] == 1 AND $i != 2){ echo("  ...");} if(($i) == $page) { echo("  "); echo ("".$i."");} else {?>    1 AND $i<$noOfPage-1){ echo("  ...");} } if($page == $noOfPage) { echo("  "); echo ("".$noOfPage."");} else { ?>   
 
 
 
  • No Product Found
    沒有找尋到適合的結果,請嘗試其他搜尋
 
 
  • gettagValue("modelnameforsearchresult"); ?>
  • gettagValue("productNameforsearchresult"); ?>
  • gettagValue("Brandforsearchresult"); ?>
  • gettagValue("typeforsearchresult"); ?>
  • gettagValue("yeartitle"); ?> 1){ echo $tempyear[0]."-".$tempyear[count($tempyear)-1]; }else{ echo $tempyear[0];}}else{ $tempyear=explode(",",$product_year[$i]);if(count($tempyear)>1){ echo $tempyear[0]."-".$tempyear[count($tempyear)-1]; }else{ echo $tempyear[0];} } ?>
  • gettagValue("price"); ?>
 

1) { if($lang==0){ echo("Page:"); } // $pagename = $self; if($page == 1) { echo("  "); echo ("1"); } else { ?>   1 1 AND $i < $noOfPage){ $firstpage[$i] = $pagecount++; if($firstpage[$i] == 1 AND $i != 2){ echo("  ...");} if(($i) == $page) { echo("  "); echo ("".$i."");} else {?>    1 AND $i<$noOfPage-1){ echo("  ...");} } if($page == $noOfPage) { echo("  "); echo ("".$noOfPage."");} else { ?>   
 

 

1) { if($lang==0){ echo("Page:"); } // $pagename = $self; if($page == 1) { echo("  "); echo ("1"); } else { ?>   1 1 AND $i < $noOfPage){ $firstpage[$i] = $pagecount++; if($firstpage[$i] == 1 AND $i != 2){ echo("  ...");} if(($i) == $page) { echo("  "); echo ("".$i."");} else {?>    1 AND $i<$noOfPage-1){ echo("  ...");} } if($page == $noOfPage) { echo("  "); echo ("".$noOfPage."");} else { ?>   
 
  • No product found in this brand
    這個品牌沒有找到任何產品
 
 
 
  • Product Number: 產品編號:
  • Vehicle Application: 適用車型:
  • Brand: 品牌:
  • Type: 種類:
  • Year: 年份: 1){ echo $tempyear[0]."-".$tempyear[count($tempyear)-1]; }else{ echo $tempyear[0];} ?>
  • Product Price: 貨物價錢:
 
1) { if($lang==0){ echo("Page:"); } // $pagename = $self; if($page == 1) { echo("  "); echo ("1"); } else { ?>   1 1 AND $i < $noOfPage){ $firstpage[$i] = $pagecount++; if($firstpage[$i] == 1 AND $i != 2){ echo("  ...");} if(($i) == $page) { echo("  "); echo ("".$i."");} else {?>    1 AND $i<$noOfPage-1){ echo("  ...");} } if($page == $noOfPage) { echo("  "); echo ("".$noOfPage."");} else { ?>   
 

 

1) { if($lang==0){ echo("Page:"); } // $pagename = $self; if($page == 1) { echo("  "); echo ("1"); } else { ?>   1 1 AND $i < $noOfPage){ $firstpage[$i] = $pagecount++; if($firstpage[$i] == 1 AND $i != 2){ echo("  ...");} if(($i) == $page) { echo("  "); echo ("".$i."");} else {?>    1 AND $i<$noOfPage-1){ echo("  ...");} } if($page == $noOfPage) { echo("  "); echo ("".$noOfPage."");} else { ?>   
 
 
  • No product found in this product type.
    這個種類沒有合適的產品
 
 
  • 1){echo $tempyear[0]."-".$tempyear[count($tempyear)-1]; }else{ echo $tempyear[0]; } ?>
 
1) { if($lang==0){ echo("Page:"); } // $pagename = $self; if($page == 1) { echo("  "); echo ("1"); } else { ?>   1 1 AND $i < $noOfPage){ $firstpage[$i] = $pagecount++; if($firstpage[$i] == 1 AND $i != 2){ echo("  ...");} if(($i) == $page) { echo("  "); echo ("".$i."");} else {?>    1 AND $i<$noOfPage-1){ echo("  ...");} } if($page == $noOfPage) { echo("  "); echo ("".$noOfPage."");} else { ?>   
 

 

gettagValue("productcenterproducttype"); ?>