<?php
require_once '../../../config.php';

$id = $_GET['id'];
if(!isset($id))
    die('No direct script access allowed!');
$query = mysqli_query($db, "SELECT * FROM gift_skin WHERE id = '$id'");
$q = mysqli_fetch_assoc($query); 
?>

<form method="POST">
<div class="row">
      <div class="col-12 mt-2">
        <blockquote class="blockquote pl-1 border-left-primary border-left-3">
        <p class="mb-0">Apakah anda yakin untuk menghapus Jadwal ini?</p>
        <hr>
        <input type="hidden" class="form-control" name="id" value="<?= $q['id']; ?>" Readonly>
        <div class="form-group mb-3">
            <label>Date Create</label>
            <input type="text" class="form-control" value="<?= $q['date_create']; ?>" Readonly>
        </div>
        <div class="form-group mb-3">
            <label>Date Gift</label>
            <input type="text" class="form-control" value="<?= $q['date_gift']; ?>" Readonly>
        </div>
        <div class="form-group mb-3">
            <label>User ID</label>
            <input type="text" class="form-control" value="<?= $q['userid']; ?>" Readonly>
        </div>
        <div class="form-group mb-3">
            <label>Nickname</label>
            <input type="text" class="form-control" value="<?= $q['nickname']; ?>" Readonly>
        </div>
        <div class="form-group mb-3">
            <label>Status</label>
            <input type="text" class="form-control" value="<?= $q['status']; ?>" Readonly>
        </div>
        </blockquote>    
    </div>
    </div>
    <div class="float-right">
        <button type="button" data-bs-dismiss="modal" aria-label="Close" class="btn btn-block bg-light fw-bold">BACK</button>
        <button type="submit" name="delete" class="btn btn-block btn-danger">DELETE</button>
    </div>
</form>
        
