|
=$rec[subject]?>
if(($rec[filename2]=="none") || !isset($rec[filename2])){
}else{?>
}?>
=$rec[body]?>

|
|
 |
|
 |
Headline News |
|
 |
|
|
$qid2 = db_query("select code, subject, startdate from News where language='T' order by startdate desc limit 0,10");
while($rec2 = db_fetch_array($qid2)){
$thaimonth = array("Á¤.","¡¾.","ÁÕ¤.","àÁÂ.","¾¤.","ÁÔÂ.","¡¤.","ʤ.","¡Â.","µ¤.","¾Â.","¸¤.");
$datefromdb = $rec2[startdate];
$year1 = substr($datefromdb,0,4);
$mon1 = substr($datefromdb,5,2);
$day1 = substr($datefromdb,8,2);
$year1 = $year1+543;
$year2=substr($year1,2,2);
$tmpda = $day1 + ($mon1 * 30);
$nda = date("j") + (date("m" )* 30);
$date1 = mktime(0,0,0,$mon1,$day1,$year1);
$varDate = date("j M Y",$date1);
$nday = date("j",$date1);
$nmon = $thaimonth[$mon1 - 1];
$nyear = date("Y",$date1) + 543;
?>
=$day1;?>
/
=$mon1;?>
/
=$year2;?>
=$rec2[subject];?>
}?>
|
|
 |