/home/banprang/domains/plai.go.th/public_html/coremain/module/freerss/freerss.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
<?php

bar_header
("ประชาสัมพันธ์กิจกรรม");
fieldset_top("ประชาสัมพันธ์กิจกรรม");

// ################################เธ เธฒเธžเธเธดเธˆเธเธฃเธฃเธก ###################################
echo"<table width='97%' border='0' cellpadding='0' cellspacing='0' align='center'>";

$query "SELECT DISTINCT a.id_topic, a . *  ,b.pic,a.block FROM `port_gallery_topic` AS a INNER JOIN port_gallery_record AS b ON a.id_topic = b.id_topic WHERE  a.status='1' GROUP BY a.id_topic ORDER BY a.id_topic DESC Limit 4";
$count 0;
$result mysql_query($query);
while (
$data mysql_fetch_array($result)) {
  if (
$count == 0) {
    echo
"<tr width='100%'>";
    echo
"<td valign='top' align=left width='20%'>";
    if (
$data[pic] != "") {
      
box_picture_firstpage("../gallery/$data[pic]""index.php?mod=gallery_update&id_update=$data[id_topic]&block=$data[block]&path=gallery");
    } else {
      
box_nopicture_firstpage("index.php?mod=gallery_update&id_update=$data[id_topic]&block=$data[block]&path=gallery");
    }
    echo
"</td>";
    echo
"<td  valign='top' align=left width='25%'>";
    echo
"<img SRC='coremain/images/marker.gif'> ";
    echo 
substr(strip_tags($data[fulltexts]), 0300);
    echo 
" ...";
    echo
"</td>";
  } else {
    echo
"<td  valign='top' align=left width='25%'>";
    if (
$data[pic] != "") {
      
box_picture_firstpage("../gallery/$data[pic]""index.php?mod=gallery_update&id_update=$data[id_topic]&block=$data[block]&path=gallery");
    } else {
      
box_nopicture_firstpage("index.php?mod=gallery_update&id_update=$data[id_topic]&block=$data[block]&path=gallery");
    }
    echo
"</td>";

    echo
"<td   valign='top' align=left width='25%'>";
    echo
"<img SRC='coremain/images/marker.gif'> ";
    echo 
substr(strip_tags($data[fulltexts]), 0300);
    echo 
" ...";
    echo
"</td>";

    echo
"</tr>";
  }


  
$count++;
}
echo 
"</table>";

if (
$count >= 4) {
  echo
"<table width='97%' border='0' cellpadding='0' cellspacing='0' align='center'>";
  echo 
"<tr height='22'>";
  echo 
"<td align=center>";
  echo 
"<a href='index.php?mod=gallery&path=gallery'><img src='coremain/images/more.gif' title='รูปภาพทั้งหมด' border='0'></a>";
  echo
"</td>";
  echo
"</tr>";
  echo 
"</table>";
}

fieldset_down();
?>