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
100
101
102
103
104
105
106
107
108
|
<!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"); ?> <?php $rowPerPage=8; if((!$_GET['page'])||($_GET['page']==1)){ $_GET['page']=1; $startRow=0; }else{ $startRow=($_GET['page']-1)*$rowPerPage; } //------------------------------------------------------------SELECT DATA $queryAct="SELECT * FROM tbl_knowledge_data WHERE first_page='1' "; $queryActLm=$queryAct." ORDER BY date_post DESC LIMIT $startRow, $rowPerPage"; $resultAct=mysql_query($queryActLm); ?> <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> </p></td> </tr> <tr> <td height="35" align="left" valign="top" class="txt30"><table width="94%" border="0" cellspacing="0" cellpadding="0">
<?php while($act=mysql_fetch_assoc($resultAct)){ $cateName=$act['category_name']; ?> <tr> <td valign="top"> <?php $query="SELECT * FROM tbl_knowledge_pic WHERE model_data_id = '".$act['id']."' LIMIT 0,1 "; $resultPix=mysql_query($query); $pix=mysql_fetch_assoc($resultPix); ?> <img src="<?php echo $path_product."thb/".$pix['pic_name']?>" alt="news" hspace="5" vspace="5" class="border"> </td> <td valign="top"class="LR20"> <a href="knowledge_detail.php?NewsID=<?php echo $act['id']?>&page=<?php echo $_GET['page']?>"><strong><?php echo $act['topic']?></strong></a> <?php $icon=" <img src='images/ico-4408.gif' width='30' height='10' border='0'/>"; GetNewIcon($act['date_start'],$icon)?> [<?php echo GetThaiDate2($act['date_post'])?>]<br /> <br /> <p > <?php $act['detail']=strip_tags($act['detail'], '<*>'); echo substr($act['detail'],0,1000);?> <br /> </p> </td> </tr> <tr> <td height="10" colspan="2" class="line"></td> </tr> <?php } ?> </table> <p> </p></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 align="center" valign="top">Page : <?php $self="knowledge.php?"; PageDisplay($queryAct,$rowPerPage,$_GET['page'],$self,$word)?></td> </tr> <tr> <td align="left" valign="top" class="txt30"> </td> </tr> </table> <p> </p> </center> <?php include("footer.php"); ?> </body> </html>
|