

<?php
$ID = $_GET['id'];
$res = [];
if($ID != ''){
    include 'database.php';
    $res = get_id($ID);
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
<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">
    <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.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
    <title>MIGRATE - @mybot</title>


</head>
<body>
    <nav class="navbar navbar-light bg-light">
        <a href='index.php' class="navbar-brand">@MYBOT</a>
    </nav>
	<div class="container" >
        <br>
        <form action="_updateTime.php"  method="get" >
            <input type="hidden" name="id" value="<?php echo $res['json'][0]['groupline_id'];?>" >
            <div class="form-group">
                <label>GID</label>
                <input type="text" class="form-control" value="<?php echo $res['json'][0]['groupline_key'];?>" disabled>
            </div>  
            <div class="form-group">
                <label>NAME</label>
                <input type="text" class="form-control" value="<?php echo $res['json'][0]['groupline_name'];?>" disabled>
            </div>
            <div class="form-group">
                <label>บอทเนม</label>
                <input type="text" class="form-control" value="<?php echo $res['json'][0]['groupline_products'];?>" disabled>
            </div>
            <div class="form-group">
                <label>DATE START[ระบุเวลา]</label>
                <input type="date" class="form-control" name="date_start" value="<?php echo $res['json'][0]['groupline_buy_date'];?>">
            </div>
            <div class="form-group">
                <label>DATE END [ระบุเวลา]</label>
                <input type="date" class="form-control" name="date_end" value="<?php echo $res['json'][0]['groupline_buy_end'];?>">
            </div>
            <div class="form-group">
                <label>DATE CREATE</label>
                <input type="text" class="form-control" value="<?php echo $res['json'][0]['groupline_create'];?>" disabled>
            </div>
            <div class="form-group">
                <label>COMMENT</label>
                <textarea name="comment" class="form-control" ><?php echo $res['json'][0]['groupline_text'];?></textarea>
            </div>

            <button type="submit" class="btn btn-primary">update and show</button>
        </form>
        <br><br>
    </div>
</body>
</html>
