| 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>
<!-- ======= Top Bar ======= -->
<?php
include('topbar.php');
include('connect.php');
include('header.php');
if(isset($_GET['events_id'])){$events_id=$_GET['events_id'];}
if(isset($_POST['events_id'])){$events_id=$_POST['events_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 events where events_id='$events_id'" ;
$result=mysqli_query($conn,$sql);
if(mysqli_num_rows($result) > 0){
$row = mysqli_fetch_array($result,MYSQLI_ASSOC);
$events_id=$row['events_id'];
$events_h=$row['events_h'];
$events_detail=$row['events_detail'];
$events_pic=$row['events_pic'];
$events_pic2=$row['events_pic2'];
$events_pic3=$row['events_pic3'];
$events_pic4=$row['events_pic4'];
$events_pic5=$row['events_pic5'];
$events_pic6=$row['events_pic6'];
$events_pic7=$row['events_pic7'];
$events_pic8=$row['events_pic8'];
$events_pic9=$row['events_pic9'];
$events_pic10=$row['events_pic10'];
$events_date=$row['events_date'];
$events_link=$row['events_link'];
//$USER_STATUS=$result["USE_STATUS"] ;
$sqlx ="SELECT MIN(events_id) AS min_num FROM events";
$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(events_id) AS max_num FROM events";
$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;
}
$events_ids = $events_id+1;
$events_idp = $events_id-1;
?>
<?php echo $events_h ;?></font></h4>
<font color="blue"><?php echo $events_date ;?></font></br>
<?php echo $events_detail ;?></br>
</br>
</div>
<div class="container" align="Center">
<?php if($events_pic != null){ ?>
<Img src="events/<?php echo $events_pic;?>" width="80%" height="80%"></br></br>
<?php }if($events_pic2 != null){ ?>
<Img src="events/<?php echo $events_pic2;?>" width="80%" height="80%"></br></br>
<?php }if($events_pic3 != null){ ?>
<Img src="events/<?php echo $events_pic3;?>" width="80%" height="80%"></br></br>
<?php }if($events_pic4 != null){ ?>
<Img src="events/<?php echo $events_pic4;?>" width="80%" height="80%"></br></br>
<?php }if($events_pic5 != null){ ?>
<Img src="events/<?php echo $events_pic5;?>" width="80%" height="80%"></br></br>
<?php }if($events_pic6 != null){ ?>
<Img src="events/<?php echo $events_pic6;?>" width="80%" height="80%"></br></br>
<?php }if($events_pic7 != null){ ?>
<Img src="events/<?php echo $events_pic7;?>" width="80%" height="80%"></br></br>
<?php }if($events_pic8 != null){ ?>
<Img src="events/<?php echo $events_pic8;?>" width="80%" height="80%"></br></br>
<?php }if($events_pic9 != null){ ?>
<Img src="events/<?php echo $events_pic9;?>" width="80%" height="80%"></br></br>
<?php }if($events_pic10 != null){ ?>
<Img src="events/<?php echo $events_pic10;?>" width="80%" height="80%"></br></br>
<?php } ?>
</div>
<?php if($events_link != Null){?>
<div class="container" align="Center" width="80%" height="80%">
<?php echo $events_link;?>
</div>
<?php } ?>
<div class="container" align="Left">
</br>
</br>
<?php if($events_idp != $nummin ){ ?>
<button type="submit" name="btnInsert" value="Previous" class="btn btn-primary btn-sm"
onclick="window.location.href='events_s.php?events_id=<?php echo $events_idp;?>'">
<i class="fa fa-dot-circle-o"></i> Previous</button>
<?php
$sqlp = "SELECT * FROM events where events_id='$events_idp'";
$resultp=mysqli_query($conn,$sqlp);
if(mysqli_num_rows($resultp) > 0){
$rowp = mysqli_fetch_array($resultp,MYSQLI_ASSOC);
$events_detailp=$rowp['events_h'];
echo "<a href=\"events_s.php?events_id=".$events_idp."\">$events_detailp</a>\n";
}
}else{}
?>
</br>
<hr>
<?php if($events_ids != $nummax ){ ?>
<button type="submit" name="btnInsert" value="Next" class="btn btn-primary btn-sm"
onclick="window.location.href='events_s.php?events_id=<?php echo $events_ids;?>'">
<i class="fa fa-dot-circle-o"></i> Next </button>
<?php
$sqls = "SELECT * FROM events where events_id='$events_ids'";
$results=mysqli_query($conn,$sqls);
if(mysqli_num_rows($results) > 0){
$rows = mysqli_fetch_array($results,MYSQLI_ASSOC);
$events_details=$rows['events_h'];
echo "<a href=\"events_s.php?events_id=".$events_ids."\">$events_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>