<?php

include 'query_all.php';
$data = '';
$ID = '';
if(isset($_GET['id'])){
	$ID = $_GET['id'];
	$data = get_last_item_id($ID ); 
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Remove - @mybot</title>
	<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
	<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>

	<script src="https://getbootstrap.com/docs/4.0/assets/js/vendor/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
	<script src="https://getbootstrap.com/docs/4.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
	<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script><script src="/docs/4.0/assets/js/docs.min.js"></script>

</head>
<body>


	<div class="card" style="width: 18rem;">
	  <div class="card-body">
	    <h5 class="card-title">=> ยืนยันการลบ <=</h5>
	    <h6 class="card-subtitle mb-2 text-muted"><b><?php echo $data[0]['groupline_name'];?></b></h6>
	    <ul>
			<li>วันที่เช่า : <?php echo $data[0]['groupline_buy_date']; ?></li>
            <li>ถึงวันที่ : <?php echo $data[0]['groupline_buy_end']; ?></li>
            <li>รวมทั้งสิ้น : <?php echo $data[0]['groupline_alldate']; ?> วัน</li>
            <li>บอท : <?php echo $data[0]['groupline_products']; ?></li>
            <li>เวอชั่น : <?php echo $data[0]['groupline_version']; ?></li>
            <li>สถานะ : <?php echo $data[0]['groupline_status']; ?></li>
        </ul>
	    <p class="card-text">รายการจะหายไปจาก ฐานข้อมูล โดนกู้คืนไม่ได้</p>
	    <a href="remove_row.php?id=<?php echo $ID;?>" class="btn btn-danger">ลบเลย</a>
	    <a href="http://150.95.89.148/python_rent" class="btn btn-default">ไม่ลบแล้ว</a>
	  </div>
	</div>

</body>
</html>
