/home/bjcompany/domains/benjabhorn.com/public_html/benjabhorn_group/knowledge_detail.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<title>เบญจพรกรุ๊ป  Benjabhorn Group</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
    background-image:url(images/bg-inside.jpg); background-position:top; background-repeat:repeat-x;
}
#apDiv1 {
    position:absolute;
    left:422px;
    top:136px;
    width:822px;
    height:310px;
    z-index:1;
}
#apDiv2 {
    position:absolute;
    left:130px;
    top:160px;
    width:1000px;
    height:50px;
    z-index:1;
}
-->
</style>
</head>
<body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!--<div id="apDiv1">
<iframe src="slide-project/index.html" width="800" height="300" frameborder="0" scrolling="no"></iframe></div>
 -->
<center>
<?php include("header.php"); ?>
<script type="text/javascript" src="exteen/jquery.lightbox.js"></script>  
<link rel="stylesheet" type="text/css" href="exteen/jquery.lightbox.css" media="screen" />  
<script type="text/javascript">  
$(function() { 
    $('#gallery a').lightBox(); 
}); 
</script>   

<?php 
            $queryAct
="SELECT * FROM tbl_knowledge_data WHERE id='".$_GET['NewsID']."'     ";
            
$resultAct=mysql_query($queryAct);
            
$act=mysql_fetch_assoc($resultAct);
?>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
  <td width="1000" height="420"  align="left" valign="top"><iframe src="Slideshow2/slide/index_slide.php" width="994" height="430" scrolling="no" frameborder="0" style="background:transparent;"></iframe></td>
  </tr>
  <tr>
    <td  align="left" valign="top"><p class="txt30">HOME KNOWLEDGES / ความรู้เรื่องบ้าน</p>
      <hr size="2" noshade="noshade" />      <p>&nbsp;</p></td>
    </tr>
  <tr>
    <td height="35" align="left" valign="top" class="txt30"><table width="95%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="2" class="h-title"><strong><?php echo $act['topic']?>&nbsp;<?php $icon=" <img src='images/ico-4408.gif'  width='30' height='10' border='0'/>"GetNewIcon($act['date_start'],$icon)?></strong></td>
        </tr>
      <tr>
        <td width="360" height="251" align="center" valign="top">
      <div id="gallery">
                    <ul> 
        <?php 
                       $query
="SELECT * FROM tbl_knowledge_pic WHERE  model_data_id= '".$act['id']."' ORDER BY id ASC  ";
                    
$resultIMG=mysql_query($query);
                                      
$n=1$col=1
                                          while(
$pix=mysql_fetch_assoc($resultIMG)){
                                      
?>
               
                 <li><a href="<?php echo $path_product.$pix['pic_name']?>" title="" ><img src="<?php echo $path_product."thb/".$pix['pic_name']?>" border="0" class="border"></a></li> 

                <?php     ?>
                 </ul> 
               </div>
        
        <td align="left" valign="top"><p><strong><?php echo $act['detail']?></td>
      </tr>
    </table></td>
    </tr>
  <tr>
    <td align="right" valign="top"><map name="Map" id="Map2">
        <area shape="rect" coords="229,2,299,30" href="#" alt="" />
        <area shape="rect" coords="306,2,383,30" href="type.php" alt="" />
      </map></td>
    </tr>
  <tr>
    <td height="73" align="left" valign="bottom" ><a href="knowledge.php?&page=<?php echo $_GET['page']?>">&laquo;&nbsp;&nbsp;กลับหน้าความรู้เรื่องบ้านทั้งหมด</a></td>
  </tr>
  <tr>
    <td align="left" valign="top" class="txt30">&nbsp;</td>
  </tr>
</table>
</center>
<?php include("footer.php"); ?>
</body>
</html>