| Server IP : 172.67.187.206 / Your IP : 172.71.28.155 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : E:/Inetpub/www/news/group/ |
Upload File : |
<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1"/>
<head>
<link href="https://news.sesaorb.go.th/news/csr/admin/assets/css/style.css" rel="stylesheet" type="text/css" />
<meta name="author" content="">
<!-- Bootstrap core CSS -->
<link href="https://news.sesaorb.go.th/news/csr/main/assets/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome CSS -->
<link href="https://news.sesaorb.go.th/news/csr/main/assets/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!-- Custom styles for this template -->
<link href="https://news.sesaorb.go.th/news/csr/main/assets/css/custom.css" rel="stylesheet">
<!-- Core Scripts -->
<script src="https://news.sesaorb.go.th/news/csr/main/assets/js/jquery.min.js"></script>
<script src="https://news.sesaorb.go.th/news/csr/main/assets/js/bootstrap.bundle.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Prompt" rel="stylesheet">
<style>
body {
margin-top: -50px;
margin-left: 30px;
font-family: 'Prompt', sans-serif;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
font-family: 'Prompt', sans-serif;
}
bx {
color: #ffffff;
text-shadow: -2px 0 #330033, 0 2px #330033, 3px 0 #330033, 0 -2px #330033;
}
.cardx1 {
position: absolute;
margin-top: 47% !important;
margin-left: 5% !important;
margin-right: 0% !important;
padding: 0;
}
.cardx2 {
position: absolute;
margin-top: 3% !important;
margin-left: 5% !important;
margin-right: 0% !important;
padding: 0;
color: #ffffff;
}
.ex1{
background-color: #669900;
width : 105px;
}
.cardx3 {
position: absolute;
margin-top: 43% !important;
margin-left: 2% !important;
margin-right: 0% !important;
padding: 0;
}
</style>
</head>
<?php include "db.php"; ?>
<body >
<div class="row">
<?php
$sql1= $mysqli->query("SELECT * FROM posts where cat_id between '71' and '85' ORDER BY id DESC LIMIT 6");
$intRows = 0;
while($objResult = mysqli_fetch_array($sql1))
{
$intRows++;
?>
<div class="card d-flex align-items-stretch" style="width:240px">
<?php if ($objResult['id'] > 1){ ?>
<center><img class="card-img-top" src="https://news.sesaorb.go.th/news/group/uploads/<?php echo $objResult["image"];?>" alt="<?php echo $objResult["title"];?>" style="width:65%" height="150"></center>
<?php } else { ?>
<img src="<?php echo $objResult["image"];?>" style="width:100%" height="120" alt="<?php echo $objResult["title"];?>">
<?php } ?>
<div class="card-body">
<a href="https://news.sesaorb.go.th/news/group/story.php?id=<?php echo $objResult["id"];?>" target="_blank">
<div class="card-img-overlay cardx2">
<font size="1">
<div class="row">
<?php
$today=date("d-m-Y");
$date_news=$objResult['date'];
$rest2 = substr("$date_news", 0,-9);
$news_day=(strtotime($today)-strtotime($rest2))/(60*60*24);
if($news_day <= 2) { echo "  <img src='images/update_news.gif'>";} else { echo "   ";}
?><p class="ex1">
<?=$objResult['date'];?></font>
</div>
</div>
<div class="card-img-overlay cardx1">
<?php
$sc=$objResult['cat_id'];
$sql2= $mysqli->query("select * from users where id = $sc");
$record = mysqli_fetch_array($sql2);
$schoolname=$record['school'];
$sc_school = iconv_substr("$schoolname", 0,27,"UTF-8")."";
echo "<div><bx><font size='3'><span class='badge badge-dark'>$sc_school</span></font></bx></div>";
?>
</div>
<div class="card-img-overlay cardx3">
<div class="spinner-grow text-warning"></div>
</div>
</a>
<?php $ti_news = iconv_substr("$objResult[title]", 0,75,"UTF-8").".."; echo "<font size='2'><span class='{vertical-align:top;}'>$ti_news</span></font>"; ?>
</div>
</div>
<?php }
echo "
<table width='98%' border='0'>
<tr>
<td align='right'><a href='https://news.sesaorb.go.th/news/group/sesao8_all.php' target='_blank'><img src='images/more_r.png' border='0'></a></td>
</tr>
</table>";
?>
</div>
</body>