<table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td bgcolor="#FFFFFF" align="center" style="border-bottom:1px solid#999"><div align="left"><strong>ข่าวสารประชาสัมพันธ์</strong></div></td> </tr> <?php $StrSqlP = "select * from promotion where status='1'order by ProID DESC LIMIT 0,10"; $objQueryP = mysql_query($StrSqlP) or die ("Error Query [".$StrSqlP."]"); while ($objResultP = mysql_fetch_array($objQueryP)){ $smallPicP = $objResultP[smallPic]; $titleP = $objResultP[proTitle]; $brifeP = $objResultP[proBrife]; $proIDP = $objResultP[proID]; ?> <tr> <td align="left" class="table4" ><p><font size = "2"><img src="images/add-to-favorites32.png" alt="" width="12" height="12" /></font><font size = "2"><a href="press-release-detail.php?id=<?=$proIDP?>&cate=news"> <?=$titleP ?> </a></font></p></td> </tr> <? } ?> </table>
<table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td colspan="2" align="center" bgcolor="#FFFFFF" style="border-bottom:1px solid#999"><div align="left"><strong>ข่าวสารประชาสัมพันธ์</strong></div></td> </tr> <?php $StrSqlP = "select * from promotion where status='1'order by ProID DESC LIMIT 0,10"; $objQueryP = mysql_query($StrSqlP) or die ("Error Query [".$StrSqlP."]"); while ($objResultP = mysql_fetch_array($objQueryP)){ $smallPicP = $objResultP[smallPic]; $titleP = $objResultP[proTitle]; $brifeP = $objResultP[proBrife]; $proIDP = $objResultP[proID]; ?> <tr> <td width="4%" align="left" class="table4" > <? $max_news = 3; $n = 0; { ++$n; if($n<=$max_news) { //<p><font size = "2"><img src="images/add-to-favorites32.png" alt="" width="12" height="12" /></font></p> echo '<img src="images/StarYellow.png" width="17" height="22" />'; } else { echo '<img src="images/add-to-favorites32.png" width="17" height="22" />'; } $max_news++; } ?> </td> <td width="96%" align="left" class="table4" ><font size = "2"><a href="press-release-detail.php?id=<?=$proIDP?>&cate=news"> <?=$titleP ?> </a></font></td> </tr> <? } ?> </table>
<table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td colspan="2" align="center" bgcolor="#FFFFFF" style="border-bottom:1px solid#999"><div align="left"><strong>ข่าวสารประชาสัมพันธ์</strong></div></td> </tr> <?php $StrSqlP = "select * from promotion where status='1'order by ProID DESC LIMIT 0,10"; $objQueryP = mysql_query($StrSqlP) or die ("Error Query [".$StrSqlP."]"); $max_news = 3; $n = 0; while ($objResultP = mysql_fetch_array($objQueryP)){ ++$n; $smallPicP = $objResultP[smallPic]; $titleP = $objResultP[proTitle]; $brifeP = $objResultP[proBrife]; $proIDP = $objResultP[proID]; ?> <tr> <td width="4%" align="left" class="table4" > <?php if($n <= $max_news) { //<p><font size = "2"><img src="images/add-to-favorites32.png" alt="" width="12" height="12" /></font></p> echo '<img src="images/StarYellow.png" width="17" height="22" />'; } else { echo '<img src="images/add-to-favorites32.png" width="17" height="22" />'; } $max_news++; ?> </td> <td width="96%" align="left" class="table4" ><font size = "2"><a href="press-release-detail.php?id=<?=$proIDP?>&cate=news"> <?php echo $titleP ?> </a></font></td> </tr> <?php } ?> </table>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง