<% function ReportFilestatus(fldr) dim fso Set fso = createObject("Scripting.FileSystemObject") If (fso.FileExists(fldr)) then ReportFilestatus = true else ReportFilestatus = false end if end function %>
 
 
 
 
   บริษัท ห้างเทพนคร จำกัด เป็นตัวแทนจำหน่ายสินค้า เกี่ยวกับ เครื่องใช้สำนักงาน, เครื่องใช้ไฟฟ้าภายในบ้าน, เครื่องใช้ในครัวเรือน, ตู้น้ำดื่มหยอดเหรียญยี่ห้อ Clear Water และธุรกิจให้บริการเช่ารถยนต์, รถกะบะ และ รถตู้ ทางบริษัทฯ มีทีมงานที่มีคุณภาพ และ ประสบการณ์ ที่พร้อมจะให้บริการคุณทุกเมื่อ
 
 สินค้าแนะนำ 
  
       
<% Sql = "Select ID_pro, Id_typ from Product ,Type_Product, BrandProduct where Typ_Pro = Id_typ and Bra_Pro = ID_Bra " set Rs = server.CreateObject("ADODB.RECORDSET") Rs.open Sql ,adoCon,3,3 array001 = "":array002 = "":array003 = "":array004 = "":array005 = "" do until rs.eof select case rs("Id_typ") case "001" array001 = array001 & rs("Id_typ") & "," & rs("ID_pro") & "|" case "002" array002 = array002 & rs("Id_typ") & "," & rs("ID_pro") & "|" case "003" array003 = array003 & rs("Id_typ") & "," & rs("ID_pro") & "|" case "004" array004 = array004 & rs("Id_typ") & "," & rs("ID_pro") & "|" case "005" array005 = array005 & rs("Id_typ") & "," & rs("ID_pro") & "|" end select rs.movenext loop Rndpass = "" Endarray = 0 Do Until Endarray = 5 Randomize random = int(rnd * 5) NotIn = 0 if Rndpass <> "" then ArrayRndPass = Split(Rndpass,",") NotIn = 0 For j = 0 to UBound(ArrayRndPass) if trim(random) = trim(arrayRndpass(j)) then NotIn = 1 next end if if NotIn = 0 then Rndpass = Rndpass & random & "," Endarray = Endarray + 1 end if loop ArrayRndPass = Split(Rndpass,",") for i = 0 to UBound(ArrayRndPass) - 1 select case ArrayRndPass(i) case "0" Datashow = Split(array001,"|") case "1" Datashow = Split(array002,"|") case "2" Datashow = Split(array003,"|") case "3" Datashow = Split(array004,"|") case "4" Datashow = Split(array005,"|") end select random = int(rnd * UBound(Datashow)) if random >= 0 then Showdata = Datashow(random) DataCheck = Split(Datashow(random),",") Sql = "Select ID_pro, Name_pro,Des_pro, Name_ttp, Name_Bra,Typ_pro from Product ,Type_Product, BrandProduct where Typ_Pro = Id_typ and Bra_Pro = ID_Bra and Id_Typ ='" & DataCheck(0) & "' and ID_pro ='" & DataCheck(1) & "' order by Id_Pro" set Rs = server.CreateObject("ADODB.RECORDSET") Rs.open Sql ,adoCon,3,3 files = "Database/Pic/" & rs("Name_ttp") & "/" & rs("Name_Pro") & "/" & rs("Name_Pro") & "_S.jpg" filesR = files files = server.MapPath(files) if ReportFilestatus(files) = false then filesR= "Database/Pic/Notpic_S.jpg" end if %>
&IDP=<%=rs("ID_pro")%> > width="80" height="60" border="0">
 
Model : <%=rs("Name_pro")%>
Brand : <%=rs("Name_Bra")%>
Descrition :
<%=mid(rs("Des_pro"),1,23) & "..." %>
&IDP=<%=rs("ID_pro")%> class="red-menutitel">{รายละเอียดเพื่มเติม}
<% end if next %>
 
 

    - เครื่องใช้สำนักงาน
    - เครื่องใช้ภายในครัวเรือน
    - เครื่องใช้ไฟฟ้าภายในบ้าน
    - รถยนต์
    - ตู้น้ำดื่มหยอดเหรียญ