0byt3m1n1-V2
Path:
/
home
/
bangtoey
/
domains
/
bangtoey.go.th
/
public_html
/
[
Home
]
File: egpdata.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title></title> <META NAME="Author" CONTENT="PASWORLD.CO.TH Call Center 094-5845783 "> <META NAME="Keywords" CONTENT=""> <META NAME="Description" CONTENT="PASWORLD COMMUNICATION "> <link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Josefin+Sans" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Nothing+You+Could+Do" rel="stylesheet"> <link rel="stylesheet" href="fonts/stylesheet.css"> <!--body--> <link rel="stylesheet" type="text/css" href="css/style2.css"> <style> .mySlides {display:none;} </style> <!--body--> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; font-family: thai_sans_literegular, thai_sans_literegular, Helvetica, sans-serif; } --> </style> <link href="styles.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- .style3 { font-family: 'thai_sans_literegular'; font-size: 12px; font-weight: bold; } .style4 {color: #0000FF} --> </style> </head> <body> <center> <table width="100%" border="0" cellpadding="2" cellspacing="2" style="border-collapse: collapse;"> <tr style="border-top:1px solid #dee2e6;border-bottom:1px solid #dee2e6;"> <td width="1%"></td> <td width="5%">ÅӴѺ</td> <td width="74%">ËÑÇ¢éÍ</td> <td width="20%">Çѹ·Õè</td> </tr> <? include('admin/Connections/conndb.php'); mysql_select_db($database_conndb, $conndb); function dateThai_rss($date) { $m_name = array("00"=>" ","01"=>"Á.¤.","02"=>"¡.¾.","03"=>"ÁÕ.¤.","04"=>"àÁ.Â.","05"=>"¾.¤.","06"=>"ÁÔ.Â.","07"=>"¡.¤.","08"=>"Ê.¤.","09"=>"¡.Â.","10"=>"µ.¤.","11"=>"¾.Â.","12"=>"¸.¤."); $yy=substr("$date",0,4);$mm=substr("$date",5,2);$dd=substr("$date",8,2);$time=substr("$date",11,8); $dateTh = ""; if($yy=="0000") { $dateTh = $dd." ".$m_name[$mm]." ".$yy; }else{ $yy+=543; $dateTh = $dd." ".$m_name[$mm]." ".$yy; } if($time != ""){ $dateTh .= " ".$time; } return $dateTh; } $sql = "select * From `tbl_egp_rss` where 1 "; $sql .= "Order by `id` Desc "; //$sql .= "Order by `egp_date` Desc ,`egp_projectId` Desc "; $sql .= "LIMIT 10"; $result = mysql_query($sql); $inumber = 0; While($row= mysql_fetch_assoc($result)) { $inumber = $inumber + 1; if(($inumber % 2) == 0){ $bcolor ="background-color: rgba(0,0,0,.05);"; } else $bcolor ="background-color:#fff;"; $c_egp_title = $row["egp_title"]; $c_egp_link = $row["egp_link"]; $c_egp_date = $row["egp_date"]; $c_egp_date_th = dateThai_rss($c_egp_date); if(strlen($c_egp_title) > 60){ //$c_egp_title = trim(utf8_substr($c_egp_title,0,60)); } echo "<tr style='".$bcolor."border-top:1px solid #dee2e6;border-bottom:1px solid #dee2e6;'>\n"; echo "<td></td>\n"; echo "<td valign='top' class='detail-s'>".$inumber."</td>"; echo "<td valign='top' class='detail-s'><a href=".$c_egp_link." class='more' target='_blank'>".$c_egp_title." </a></td>\n"; echo "<td valign='top' class='detail-s'>".$c_egp_date_th."</td>\n"; echo "</tr>\n"; } //while if(isset($result)){ mysql_free_result($result ); unset($result); } if(isset($conndb)) { mysql_close($conndb); unset($conndb); } ?> <tr> <td colspan="4" width="100%" height="16"></td> </tr> </table> </center> </body> </html>
©
2018.