| Server IP : 27.254.66.5 / Your IP : 216.73.217.39 Web Server : Apache/2 System : Linux cs82.hostneverdie.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64 User : technic2 ( 1951) PHP Version : 7.4.30 Disable Function : apache_child_terminate, apache_setenv, define_syslog_variables, escapeshellarg, escapeshellcmd,exec, fp, fput, highlight_file, ini_alter, ini_restore, inject_code, passthru,phpAds_remoteInfo, phpAds_XmlRpc,phpAds_xmlrpcDecode, phpAds_xmlrpcEncode, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid,posix_setuid, posix_setuid, posix_uname,proc_open,proc_close, proc_get_status, proc_nice, proc_terminate, shell_exec, syslog, system, xmlrpc_entity_decode, show_source,sleep,pcntl_exec,virtual,suexec,dbmopen,dl,symlink,disk_free_space,diskfreespace,leak MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/technic2/public_html/ |
Upload File : |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>Rayong Technical College</title>
<meta content="" name="description">
<meta content="" name="keywords">
<!-- Favicons -->
<link href="assets/img/logo.png" rel="icon">
<link href="assets/img/logo.png" rel="apple-touch-icon">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,500,500i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">
<!-- Vendor CSS Files -->
<link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/vendor/icofont/icofont.min.css" rel="stylesheet">
<link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
<link href="assets/vendor/venobox/venobox.css" rel="stylesheet">
<link href="assets/vendor/animate.css/animate.min.css" rel="stylesheet">
<link href="assets/vendor/remixicon/remixicon.css" rel="stylesheet">
<link href="assets/vendor/owl.carousel/assets/owl.carousel.min.css" rel="stylesheet">
<link href="assets/vendor/bootstrap-datepicker/css/bootstrap-datepicker.min.css" rel="stylesheet">
<!-- Template Main CSS File -->
<link href="assets/css/style.css" rel="stylesheet">
<!-- =======================================================
* Template Name: Medilab - v2.1.1
* Template URL: https://bootstrapmade.com/medilab-free-medical-bootstrap-theme/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
======================================================== -->
</head>
<body>
<?php
include('topbar.php');
include('connect.php');
include('header.php');
if(isset($_GET['news_id'])){$news_id=$_GET['news_id'];}
if(isset($_POST['news_id'])){$news_id=$_POST['news_id'];}
?>
<!-- ======= Hero Section ======= -->
<main id="main">
<!-- ======= Breadcrumbs Section ======= -->
<section class="breadcrumbs">
<div class="container">
<div class="d-flex justify-content-between align-items-center">
<h2>ข่าว</h2>
<ol>
<li><a href="index.php">หน้าหลัก</a></li>
<li>ข่าว</li>
</ol>
</div>
</div>
</section><!-- End Breadcrumbs Section -->
<?php include('head.php'); ?>
</main><!-- End #main -->
<section class="inner-page">
<div class="container">
<h4><font color="blue">
<?php
$sql = "SELECT * FROM news where news_id='$news_id'" ;
$result=mysqli_query($conn,$sql);
if(mysqli_num_rows($result) > 0){
$row = mysqli_fetch_array($result,MYSQLI_ASSOC);
$news_id=$row['news_id'];
$news_h=$row['news_h'];
$news_detail=$row['news_detail'];
$news_file=$row['news_file'];
$news_date=$row['news_date'];
$news_h1=$row['news_h1'];
$news_h2=$row['news_h2'];
$news_h3=$row['news_h3'];
$news_h4=$row['news_h4'];
$news_h5=$row['news_h5'];
$news_h6=$row['news_h6'];
$news_h7=$row['news_h7'];
$news_h8=$row['news_h8'];
$news_h9=$row['news_h9'];
$news_h10=$row['news_h10'];
$news_link1=$row['news_link1'];
$news_link2=$row['news_link2'];
$news_link3=$row['news_link3'];
$news_link4=$row['news_link4'];
$news_link5=$row['news_link5'];
$news_link6=$row['news_link6'];
$news_link7=$row['news_link7'];
$news_link8=$row['news_link8'];
$news_link9=$row['news_link9'];
$news_link10=$row['news_link10'];
//$USER_STATUS=$result["USE_STATUS"] ;
$sqlx ="SELECT MIN(news_id) AS min_num FROM news";
$resultx=mysqli_query($conn,$sqlx);
if(mysqli_num_rows($resultx) > 0){
$rowx = mysqli_fetch_array($resultx,MYSQLI_ASSOC);
$min=$rowx['min_num'];
$nummin = $min-1;
}
$sqlz ="SELECT MAX(news_id) AS max_num FROM news";
$resultz=mysqli_query($conn,$sqlz);
if(mysqli_num_rows($resultz) > 0){
$rowz = mysqli_fetch_array($resultz,MYSQLI_ASSOC);
$max=$rowz['max_num'];
$nummax = $max+1;
}
$news_ids = $news_id+1;
$news_idp = $news_id-1;
//echo $subsys_id;
//echo "</br>";
//$pic ="20210430-1.pdf";
?>
<?php echo $news_h ;?></font></h4>
<font color="blue"><?php echo $news_date ;?></font>
<?php if($news_detail != null){ ?>
</br></br>
<?php echo $news_detail ; }?>
</br>
</br>
</div>
<div class="container" align="Center">
<object data="pdf/<?php echo $news_file ?>" type="application/pdf" width="100%" height="900"></object>
</div>
</br>
<?php if($news_link1 != Null){?>
<div class="container">
<a href="<?php echo $news_link1; ?>"><?php echo $news_h1;?></a>
</div>
<?php }if($news_link2 != Null){?>
<div class="container">
<a href="<?php echo $news_link2; ?>"><?php echo $news_h2;?></a>
</div>
<?php }if($news_link3 != Null){?>
<div class="container">
<a href="<?php echo $news_link3; ?>"><?php echo $news_h3;?></a>
</div>
<?php }if($news_link4 != Null){?>
<div class="container">
<a href="<?php echo $news_link4; ?>"><?php echo $news_h4;?></a>
</div>
<?php }if($news_link5 != Null){?>
<div class="container">
<a href="<?php echo $news_link5; ?>"><?php echo $news_h5;?></a>
</div>
<?php }if($news_link6 != Null){?>
<div class="container">
<a href="<?php echo $news_link6; ?>"><?php echo $news_h6;?></a>
</div>
<?php }if($news_link7 != Null){?>
<div class="container">
<a href="<?php echo $news_link7; ?>"><?php echo $news_h7;?></a>
</div>
<?php }if($news_link8 != Null){?>
<div class="container">
<a href="<?php echo $news_link8; ?>"><?php echo $news_h8;?></a>
</div>
<?php }if($news_link9 != Null){?>
<div class="container">
<a href="<?php echo $news_link9; ?>"><?php echo $news_h9;?></a>
</div>
<?php }if($news_link10 != Null){?>
<div class="container">
<a href="<?php echo $news_link10; ?>"><?php echo $news_h10;?></a>
</div>
<?php } ?>
<div class="container" align="Left">
</br>
</br>
<?php if($news_idp != $nummin ){ ?>
<button type="submit" name="btnInsert" value="Previous" class="btn btn-primary btn-sm"
onclick="window.location.href='news_s.php?news_id=<?php echo $news_idp;?>'">
<i class="fa fa-dot-circle-o"></i> Previous</button>
<?php
$sqlp = "SELECT * FROM news where news_id='$news_idp'";
//3.เก็บข้อมูลที่ query ออกมาไว้ในตัวแปร result .
$resultp=mysqli_query($conn,$sqlp);
if(mysqli_num_rows($resultp) > 0){
$rowp = mysqli_fetch_array($resultp,MYSQLI_ASSOC);
$news_detailp=$rowp['news_h'];
echo "<a href=\"news_s.php?news_id=".$news_idp."\">$news_detailp</a>\n";
}
}else{}
?>
</br>
<hr>
<?php if($news_ids != $nummax ){ ?>
<button type="submit" name="btnInsert" value="Next" class="btn btn-primary btn-sm"
onclick="window.location.href='news_s.php?news_id=<?php echo $news_ids;?>'">
<i class="fa fa-dot-circle-o"></i> Next </button>
<?php
$sqls = "SELECT * FROM news where news_id='$news_ids'";
//3.เก็บข้อมูลที่ query ออกมาไว้ในตัวแปร result .
$results=mysqli_query($conn,$sqls);
if(mysqli_num_rows($results) > 0){
$rows = mysqli_fetch_array($results,MYSQLI_ASSOC);
$news_details=$rows['news_h'];
echo "<a href=\"news_s.php?news_id=".$news_ids."\">$news_details</a>\n";
}
}else{}
} ?>
</div>
</section>
<?php include('footer.php');?>
<div id="preloader"></div>
<a href="#" class="back-to-top"><i class="icofont-simple-up"></i></a>
<!-- Vendor JS Files -->
<script src="assets/vendor/jquery/jquery.min.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="assets/vendor/jquery.easing/jquery.easing.min.js"></script>
<script src="assets/vendor/php-email-form/validate.js"></script>
<script src="assets/vendor/venobox/venobox.min.js"></script>
<script src="assets/vendor/waypoints/jquery.waypoints.min.js"></script>
<script src="assets/vendor/counterup/counterup.min.js"></script>
<script src="assets/vendor/owl.carousel/owl.carousel.min.js"></script>
<script src="assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
<!-- Template Main JS File -->
<script src="assets/js/main.js"></script>
</body>
</html>