Server IP : 119.59.102.212 / Your IP : 216.73.216.74 Web Server : Apache/2 System : Linux narin 2.6.32-042stab142.1 #1 SMP Tue Jan 28 23:44:17 MSK 2020 x86_64 User : yangkam ( 1022) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/yangkam/domains/yangkam.go.th/public_html/coremain/module/freerss/ |
Upload File : |
<?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 % 2 == 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]), 0, 300); 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]), 0, 300); 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(); ?>