".showallcat2($categories[$i][0],"0",stripslashes($categories[$i][1]))."
".stripslashes($categories[$i][1])." 

"; } themehead(_LANG_34); echo $data; themefoot(); mysql_close($connection); exit; } $result = @mysql_db_query($dbname,$sql); if(!@mysql_num_rows($result)){ $nofollow = true; themehead("The page cannot be found"); echo ""._LANG_36_3.""; themefoot(); exit; } $array = mysql_fetch_array($result); mysql_db_query($dbname,"update ".$fix."catalog set counter=(counter+1) where idp='$array[idp]' "); $query = mysql_db_query($dbname,"select MAX(idp) from ".$fix."catalog where category='$array[category]'"); $new_idp = @mysql_result($query,0); $new = ($new_idp==$array['idp']) ? "" : ""; $categoryname = searchcat_by($array['category']); if($category) themehead($categoryname); else themehead(stripslashes($array['title'])); //echo "
"; echo "
"; if(!ereg("L",$array['category'])){ if($categoryname=="เครื่องดีด"){ echo "\"$categoryname\""; }else if($categoryname=="เครื่องสี"){ echo "\"$categoryname\""; }else if($categoryname=="เครื่องตี"){ echo "\"$categoryname\""; }else if($categoryname=="เครื่องเป่า"){ echo "\"$categoryname\""; }else if($categoryname=="สื่อการสอน"){ echo "\"$categoryname\""; }else if($categoryname=="วงเครื่องสาย"){ echo "\"$categoryname\""; }else if($categoryname=="วงปี่พาทย์"){ echo "\"$categoryname\""; }else if($categoryname=="วงมโหรี"){ echo "\"$categoryname\""; }else if($categoryname=="วงพื้นบ้านภาคกลาง"){ echo "\"$categoryname\""; }else if($categoryname=="วงพื้นบ้านภาคเหนือ"){ echo "\"$categoryname\""; }else if($categoryname=="วงพื้นบ้านภาคอีสาน"){ echo "\"$categoryname\""; }else if($categoryname=="วงพื้นบ้านภาคใต้"){ echo "\"$categoryname\""; }else if($categoryname=="วงอังกะลุง"){ echo "\"$categoryname\""; }else if($categoryname=="วงสยามดนตรีไทย"){ echo "\"$categoryname\""; } } echo "
"; if($array['title']==$toplinking[1][1]){ echo "
"; echo "
Date: ".datetime($array['createon'])." Views: $array[counter]
"; }else if($array['title']==$toplinking[2][1]){ echo "
"; echo "
Date: ".datetime($array['createon'])." Views: $array[counter]
"; }else if($array['title']==$toplinking[3][1]){ echo "
"; echo "
Date: ".datetime($array['createon'])." Views: $array[counter]
"; }else if($array['title']==$toplinking[4][1]){ echo "
"; echo "
Date: ".datetime($array['createon'])." Views: $array[counter]
"; } echo "
"; echo ""; if($array['category']!="L2" && $array['category']!="L3" && $array['category']!="L4" && $array['category']!="L5"){ $select_product = mysql_query("select * from smeweb_product where mainid='$array[idp]';"); $result_product = mysql_fetch_array($select_product); $resul_num = mysql_num_rows($select_product); $save = number_format($result_product['price_index']-$result_product['price']); $select_cate = mysql_query("select idp from smeweb_catalog where category='$array[category]';"); $num_cate = mysql_num_rows($select_cate); if($resul_num==1){ echo " "; }else{ echo " "; } } if($array['title']==$toplinking[1][1]){ echo""; }else if($array['title']==$toplinking[2][1]){ echo""; }else if($array['title']==$toplinking[3][1]){ echo""; }else if($array['title']==$toplinking[4][1]){ echo""; } echo "
หมวด $categoryname ($num_cate รายการ)
"; echo "
"; echo "Date: ".datetime($array['createon'])." Views: $array[counter]
"; echo "
$array[title]
Code : $result_product[itemno]
Weight : $result_product[weight]
Size : $result_product[site]
฿".number_format($result_product['price']).".-
฿".number_format($result_product['price_index'])." -15%
You Save : ฿$save .-
"; if($shoppingsys){ $select_detail = mysql_db_query($dbname,"select * from ".$fix."product where mainid='$array[idp]';"); // เลือกเอาจำนวนสินค้าในสต๊อก $result_detail = mysql_fetch_array($select_detail); if($result_detail['quantity']>=1){ echo ""; echo "
Add to cart
"; } } echo "
หมวด $categoryname ($num_cate รายการ)
Date: ".datetime($array['createon'])." Views: $array[counter]
$array[title]
Code : $result_product[itemno]
มีเครื่องดนตรี "; echo ($resul_num-1); echo " ชนิด
฿".number_format($result_product['price']).".-
฿".number_format($result_product['price_index'])." -15%
You Save : ฿$save .-
"; if($shoppingsys){ $select_detail = mysql_db_query($dbname,"select * from ".$fix."product where mainid='$array[idp]';"); // เลือกเอาจำนวนสินค้าในสต๊อก $result_detail = mysql_fetch_array($select_detail); if($result_detail['quantity']>=1){ echo ""; echo "
Add to cart
"; } } echo "
"; while($res_pro=mysql_fetch_array($select_product)){ echo "
".showthumb3($res_pro['itemno'],$array['idp'],stripslashes($array['title']))."
$res_pro[title]
Code : $res_pro[itemno]
฿".number_format($res_pro['price']).".-
฿".number_format($res_pro['price_index'])." -15%
"; } echo "
".stripslashes(str_replace("[emailform]","",$array['story']))."
".stripslashes(str_replace("[emailform]","",$array['story']))."
".stripslashes(str_replace("[emailform]","",$array['story'])).""; $read_news = $_GET["read_news"]; if($read_news){ $result_news = mysql_db_query($dbname,"select title,detail,picture from smeweb_news where smeweb_news.id = $read_news"); $array_news = mysql_fetch_array($result_news); echo "
$array_news[0]
$array_news[1]
"; echo "
"; }else{ $result_news = mysql_db_query($dbname,"select id,title,detail,picture,status from smeweb_news order by id desc"); while($array_news = mysql_fetch_array($result_news)){ $cut_news = explode(";",$array_news[2]); if($array_news[4] == 1){ $status_news = ""; }else if($array_news[4] == 2){ $status_news = ""; }else if($array_news[4] == 3){ $status_news = ""; }else if($array_news[4] == 4){ $status_news = ""; }else if($array_news[4] == 5){ $status_news = ""; } // *********************************** หน้าข่าวสารกิจกรรม **************************************** echo "
$array_news[1] $status_news
$cut_news[0]
» อ่านต่อ
"; } } echo "
".stripslashes(str_replace("[emailform]","",$array['story']))."
"; if( (ereg("L",$array['category'])) && (ereg("\[emailform\]",$array['story'])) ){ echo "
"; include "mail.php"; echo "

"; } if(!ereg("L",$array['category'])){ echo "
"; if(searchcat_opt($array['category'])==1){ showallcatp($array['category'],$array['idp'],$categoryname); }else{ showallcat($array['category'],$array['idp'],$categoryname,$pro_limit); echo ""; } } echo ""; themefoot(); mysql_close($connection); ?>