[x] ปิดหน้าต่างนี้
 
 

à¹×éÍËÒ : ˹ѧÊ×ÍËÒÂÒ¡
ËÁÇ´ËÁÙè : ¢èÒÇ»ÃЪÒÊÑÁ¾Ñ¹¸ì
ËÑÇ¢éÍàÃ×èͧ : ÍÂÒ¡ãËé¢èÒÇÁÕ 2 ¤ÍÅÑÁÀì

¾Ø¸ ·Õè 11 à´×͹ ÁԶعÒ¹ ¾.È.2551


<?
//áÊ´§¢èÒÇÊÒÃ/»ÃЪÒÊÑÁ¾Ñ¹¸ì
if($_GET[category]){
 $SQLwhere = " category=''".$_GET[category]."'' ";
 $SQLwhere2 = " WHERE category=''".$_GET[category]."'' ";
}
$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
$limit = 10 ;
$SUMPAGE = $db->num_rows(TB_NEWS,"id","$SQLwhere");
$page=$_GET[page];
if (empty($page)){
 $page=1;
}
$rt = $SUMPAGE%$limit ;
$totalpage = ($rt!=0) ? floor($SUMPAGE/$limit)+1 : floor($SUMPAGE/$limit);
$goto = ($page-1)*$limit ;

$res[news] = $db->select_query("SELECT * FROM ".TB_NEWS." $SQLwhere2 ORDER BY id DESC LIMIT $goto, $limit ");
$count=0;
while($arr[news] = $db->fetch($res[news])){
 if ($count==0) { echo "<TR>"; }
 //ª×èÍËÁÇ´ËÁÙè
 $res[category] = $db->select_query("SELECT category_name FROM ".TB_NEWS_CAT." WHERE id=".$arr[news][category]." ");
 $arr[category] = $db->fetch($res[category]);
?>
   <TD width="25%" valign=top> 
    <TABLE width="100%">
    <TR>
     <TD><FONT COLOR="#990000"><B>
     <?= ThaiTimeConvert($arr[news][post_date],"","");?> : <?=$arr[category][category_name];?>
     </B></FONT></TD>
    </TR>
    <TR><TD height="3" ></TD></TR>
    <TR>
     <TD>
     <A HREF="?name=news&file=readnews&id=<?=$arr[news][id];?>" target="_blank">
     <IMG SRC="newsicon/<?=$arr[news][post_date];?>.jpg" WIDTH="80" HEIGHT="60" BORDER="0" ALIGN="left" class="topicicon"><B><?=$arr[news][topic];?></A></B>
     <?NewsIcon(TIMESTAMP, $arr[news][post_date], "images/icon_new.gif");?>
     <BR><?=$arr[news][headline];?>
     </TD>
    </TR>
    <TR><TD height="3" ></TD></TR>
    </TABLE>
   </TD>
<?
$count++;
if (($count%_NEWS_COL) == 0) { echo "</TR><TR><TD colspan=2 height=\"1\" class=\"dotline\"></TD></TR>"; $count=0; }
}
$db->closedb ();
//¨º¡ÒÃáÊ´§¢èÒÇÊÒÃ
?>



à¢éÒªÁ : 781


¢èÒÇ»ÃЪÒÊÑÁ¾Ñ¹¸ì 5 Íѹ´ÑºÅèÒÊØ´

      ÁÒáÇéÇ Beautiful BOY!!!! 20 / Á.¤. / 2554
      Åͧáºè§¤ÍÅÑÁÀìÍÕ¡·Õ 11 / ÁÔ.Â. / 2551
      ÍÂÒ¡ãËé¢èÒÇÁÕ 2 ¤ÍÅÑÁÀì 11 / ÁÔ.Â. / 2551
      Ê׺ÊÒ¹»ÃÐླÕʧ¡ÃÒ¹µì ¡È¹.â¤ÃÒª 16 / àÁ.Â. / 2551


 
Êӹѡ§Ò¹Êè§àÊÃÔÁ¡ÒÃÈÖ¡Éҹ͡ÃкºáÅСÒÃÈÖ¡ÉÒµÒÁÍѸÂÒÈÑ  ¨Ñ§ËÇѴʵÙÅ
ËéͧÊÁØ´»ÃЪҪ¹ÍÓàÀÍ·èÒá¾
ËÁÙè·Õè 2 ¶¹¹©Åا - ÅЧ٠µÓºÅ·èÒá¾  ÍÓàÀÍ·èÒá¾  ¨Ñ§ËÇѴʵÙÅ 91150  â·ÃÈѾ·ì  xxx-xxxxxx
â·ÃÊÒÃ  xxx-xxxxxx    
satun@moe.go.th     nikorn@korat.nfe.go.th
ÊÅç͵àÇ纵ç Powered by MAXSITE 1.10   Modify by   Í.¹Ô¡Ã à¡Éâ¡ÁÅ   Version 2.05HD  Update by