<?php
error_reporting(0);
session_start();
include 'config/database.php';
$data = '';
if(isset($_GET['kid'])){
	$data = get_keynote_item(trim($_GET['kid']));
}
?>
<!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 href='http://at-mybot.me:8000/index.php' class="navbar-brand">@MYBOT</a>
		<ul class="navbar-nav">
			<li class="nav-item">
				<a class="nav-link" href="index.php">หน้าแรก</a>
			</li>			
		</ul>
		<span class="form-inline" >
		  <a class="nav-link" href="list.php">รายชื่อกลุ่ม</a>
		</span>
	</nav>
	<div class="container">

			<?php foreach ($data as $key => $data): ?>
				<h4><?php echo $data['k_title']; ?></h4>
				<hr>
				<p><?php echo html_entity_decode($data['k_text']); ?></b>
			<?php endforeach; ?>
	</div>
</body>
</html>
