403Webshell
Server IP : 104.21.80.248  /  Your IP : 172.71.28.155
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  E:/Inetpub/www/news/csr/admin/pages/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/www/news/csr/admin/pages/adddonor.php
<?php
if(isset($ugroup)){
	
?>

	<div class="row">
		<div class="col-xl-12">
			<div class="breadcrumb-holder">
				<h1 class="main-title float-left">ความต้องการบริจาค</h1>
					<ol class="breadcrumb float-right">
					<li class="breadcrumb-item">Home</li>
					<li class="breadcrumb-item active"><?=$ugroup;?></li>
                    </ol>
                    <div class="clearfix"></div>
            </div>
		</div>
	</div>
	<?php		
		if ($msg =='error_name')
				echo '<div class="alert alert-danger" role="alert">Error! พบข้อมูลซ้ำในระบบ ไม่สามารถเพิ่มข้อมูลได้</div>';	
		if ($msg =='error_username')
				echo '<div class="alert alert-danger" role="alert">Error! Input valid username</div>';	
		if ($msg =='error_duplicate_username')
				echo '<div class="alert alert-danger" role="alert">Error! There is another user with this username address</div>';	
		if ($msg =='edit_ok')
				echo '<div class="alert alert-success" role="alert">User updated</div>';	
		if ($msg =='add_ok')
				echo '<div class="alert alert-success" role="alert">เพิ่มข้อมูลเรียบร้อย</div>';	
		if ($msg =='delete_ok')
				echo '<div class="alert alert-success" role="alert">User deleted</div>';	
		if ($msg =='error_delete_protected')
				echo '<div class="alert alert-danger" role="alert">Error! This user can not be deleted</div>';	
	?>	
    <!-- end row -->
	<link rel="stylesheet" type="text/css" href="<?php echo ADMIN_URL;?>/assets/plugins/datatables/dataTables.bootstrap4.min.css"/>
	<script type="text/javascript" src="<?php echo ADMIN_URL;?>/assets/plugins/datatables/jquery.dataTables.min.js"></script>
	<script type="text/javascript" src="<?php echo ADMIN_URL;?>/assets/plugins/datatables/dataTables.bootstrap4.min.js"></script>
	<link rel="stylesheet" href="<?php echo ADMIN_URL;?>/assets/css/bootstrap-select.css">
	<script src="<?php echo ADMIN_URL;?>/assets/js/bootstrap-select.js"></script>
	<script src="<?php echo ADMIN_URL;?>/assets/js/script.js"></script>

	<script>
	// START CODE FOR BASIC DATA TABLE 
	$(document).ready(function() {
		$('#example1').DataTable();
	} );
	$(document).ready(function() {
		$('#table1').DataTable();
	} );	
	// END CODE FOR BASIC DATA TABLE 	
	 	
	</script>
<style type="text/css">
table.dataTable tbody th, table.dataTable tbody td {
    padding: 3px 2px;
}
</style>	
	<div class="row">
			
        <div class="col-lg-12">						
			<div class="card mb-3">
				<div class="card-header">						
				<h3><i class="fa fa-table"></i> เพิ่มข้อมูล</h3>
				</div>
								
					<div class="card-body">
						<!-- ส่วนของฟอร์มข้อมูล-->
<?php 
//เผื่อไว้แสดงข้อมูลปีปัจจุบัน
$setyear=date("Y")+543; 

?>
<!-- ------------------------------------------------------------ -->

<script type="text/javascript">
function get_price()
{
 var el=document.getElementById( "d_type" );
var text = el.value;
 if(text )
 {
  $.ajax({
	type: 'post',
	url: '<?php echo ADMIN_URL;?>/pages/check_price.php',
	data: {
		id:text,
	},
	success: function (response) {
			var obj = JSON.parse(response);
			var elp=document.getElementById( "show_price" );
			if(elp){
				var price =  obj[0].d_price ;
				if( price) {
					elp.innerHTML="ราคากลาง " + price ;
				}
				else{
					elp.innerHTML=""
				}
			}
	}	
  });
}
 else
 {
  $( '#alert1' ).html("");
  return false;
 }
}
</script>
<!-- ------------------------------------------------------------ -->
<form action="core/adddonor.php" method="post" enctype="multipart/form-data">
		<div class="row">
		<div class="col-lg-4">
		
	<select class="selectpicker form-control" name="d_type"  id="d_type" onchange="get_price();"  data-container="body" data-live-search="true" title="โปรดระบุรายการ" data-hide-disabled="true" style="color:red;" required>
	<?php 
	$sql= $mysqli->query("SELECT * FROM tb_category_detail ");
	while($row=mysqli_fetch_array($sql)) {
	echo "<option value='$row[Did]'>$row[d_title]</option>";
	}
	?>
	</select>
	<div id="show_price" style="color:red;"> </div>
	<small id="r_type" class="form-text text-muted"><font color="#608FFE">*หากไม่พบข้อมูลให้ระบุเป็น  อื่นๆ.</font></small>		
		
		</div>  
		</div>
	<br>
	<div class="row">
	<div class="col-lg-4">		
	<div class="form-group">
    <input type="text" name="d_detail" class="form-control" placeholder="รายละเอียดเพิ่มเติม" style="color:red;">
    <small class="form-text text-muted"><font color="#608FFE">กรณีเลือกรายการอื่นๆ</font></small>
	</div>		
	</div>  
	</div>		

	<div class="row">
	<div class="col-lg-2">		
	<div class="form-group">
    <input type="text" name="d_max" class="form-control" placeholder="จำนวน" style="color:red;" required>
    <small class="form-text text-muted"><font color="#608FFE">จำนวนที่ต้องการขอ พร้อมหน่วยนับเช่น [100 เมตร , 2 คัน , 2 หลัง]</font></small>
	</div>		
	</div>  
	</div>	

	<div class="row">
	<div class="col-lg-2">		
	<div class="form-group">
    <input type="number" name="d_sarary" class="form-control" placeholder="งบประมาณ" style="color:red;">
    <small class="form-text text-muted"><font color="#608FFE">งบประมาณใส่เป็นเลขจำนวนเต็มเท่านั้นห้ามมีเครื่องหมายใดๆ เช่น 5000</font></small>
	</div>		
	</div>  
	</div>
				<button type="button" onclick="goBack()" class="btn btn-secondary" data-dismiss="modal">ยกเลิก</button>
				<button type="submit"  name="importtea" class="btn btn-primary">บันทึก</button>
				<script>function goBack() { window.history.back(); }</script>
</form>

						<!-- สจบ่วนของฟอร์มข้อมูล-->

								
					</div>														
			</div><!-- end card-->					
        </div>
					


	</div>
<?php }else{
header("Location: ../index.php?msg=error");
exit;	
} ?>		

Youez - 2016 - github.com/yon3zu
LinuXploit