/home/bjcompany/domains/benjabhorn.com/public_html/BJconcrete/showdetail.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php include("phpconfig.php");
                
$query="SELECT * FROM `tbl_product_data` WHERE id = '".$_GET['id']."' ";
                
$result=mysql_query($query);
                
$currentData=mysql_fetch_assoc($result);
                
?>
<meta property="og:url" content="http://www.bj.co.th/BJconcrete/product.php?MainCate=<?php echo $_GET['MainCate']?>&product=<?php echo $_GET['product']?>"/>


<meta property="og:site_name" content="เบญจพร คอนกรีต โปรดักส์"/>
<meta property="og:title" content="<?php echo $currentData['product_name_th']?> "/>
<meta property="og:image" content="images/logo-bj-concrete.png"/>
<meta property="og:description" content="ส่งมอบตรงเวลา  ลูกค้าพึงพอใจ  ใส่ใจในมาตรฐาน  มุ่งมั่นพัฒนางานและบุคลากรอย่างต่อเนื่อง "/>


<meta property="og:site_name" content="David Walsh Blog"/>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php if($_GET['id']!="undefined"){  ?>
 <table width="700" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="5" bgcolor="#f92f00"></td>
          </tr>
          <tr>
            <td align="left" class="menu-left"><i class="icon-file-alt"></i><strong class="txt-product-red LRTB10"><?php echo $currentData['product_name_th']?></strong></td>
          </tr>
          <tr>
            <td align="center" bgcolor="#333333" class="LRTB20">
            <?php echo $currentData['product_detail_th']?>
            </td>
          </tr>
          <tr>
            <td bgcolor="#333333" align="center">
              <?php if($currentData['product_image']){?>

           <a href="<?php echo $uploadfolder.$currentData['product_image'];?>" target="_blank">
          <img src="<?php echo $uploadfolder.$currentData['product_image'];?>" alt="" /></a><br />
          <?php  ?>
            </td>
          </tr>
           <tr>
    <td bgcolor="#FFFFFF" style="padding-left:30px; padding-top:10px; padding-bottom:10px;">
    <div id="fb-root"></div>
      <script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/th_TH/sdk.js#xfbml=1&version=v2.3";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
      <div class="fb-share-button" data-href="http://www.bj.co.th/BJconcrete/product.php?MainCate=<?php echo $_GET['MainCate']?>&product=<?php echo $_GET['product']?>" data-layout="button"></div></td>
  </tr>
          <tr>
            <td   align="center">&nbsp;</td>
          </tr>
        </table>
       <?php } else {  ?>
 <table width="700" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="5" bgcolor="#f92f00"></td>
          </tr>
          <tr>
            <td align="left" class="menu-left"><i class="icon-file-alt"></i><strong class="txt-product-red LRTB10"><?php echo $currentData['product_name_th']?></strong></td>
          </tr>
        
          <tr>
            <td height="50" align="center" valign="middle" bgcolor="#333333"><h3 style="color:#FFF">ยังไม่มีผลิตภัณฑ์ในหมวดนี้</h3></td>
   </tr>
          <tr>
            <td bgcolor="#333333" align="center">&nbsp;</td>
          </tr>
 </table>       
       <?php mysql_close(); ?>