<?php
include 'config/database.php';
?>
<!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>NOTIFY API | @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">
</head>
<body>

  <nav class="navbar navbar-light bg-light">
    <a class="navbar-brand" href="#">
      @MYBOT
    </a>

    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" href="keynote.php">KEY NOTE </a>
      </li>
    </ul>
    <span class="form-inline">
      <a class="nav-link" href="list.php">รายชื่อกลุ่ม</a>
    </span>
  </nav>

<div class="container">
  <div class="row">
    <div class="col-sm-12">

 <?php $res = get_unregister(); ?>

<div class="row">
  <div class="col-md-12"><br></div>
  <?php
  $i = 0;
  foreach ($res as $key => $value) {
    $i = $i+1;
  ?>  
  <div class="col-md-4">
    <div class="card" style="width: 100%;float: left;margin-right: 10px;margin-bottom: 10px;">
      <div class="card-body">
        <h6 class="card-title" style="margin-bottom: 0px !important;">GroupID : <?php echo $value['n_groupid'];?></h6>
        <br>
        <p><?php echo $value['n_create']; ?></p>
        <a href="/create2.php?gid=<?php echo $value['n_groupid'];?>" class="btn btn-primary btn-sm">ลบทะเบียน</a>
      </div>
    </div>
  </div>
  <?php  } ?>


  </div>

    </div>

  </div>
</div>



<!--
https://notify-bot.line.me/oauth/authorize?
response_type=code&
client_id=KuL3lBRRRuofauZBW0Tv6C&
redirect_uri=http://150.95.89.148:8001/callback.php&
scope=notify&
state=push

-->
</body>
</html>

<!--

https://notify-bot.line.me/oauth/authorize
?response_type=code
&client_id=KuL3lBRRRuofauZBW0Tv6C
&redirect_uri=http://localhost:80/callback
&scope=notify
&state=abcdef123456


 -->