/
home
/
efamember
/
domains
/
efa-member.com
/
public_html
/
backoffice
/
ajax
/
notifications
/
up file
home
<?php include("../../../config/main_function.php"); $secure = "cAh3DrJACzw4RbU"; $connection = connectDB($secure); $sql = "SELECT * FROM tbl_notifications ORDER BY created_at DESC"; $rs = mysqli_query($connection, $sql) or die($connection->error); ?> <div class="table-responsive animated fadeInDown" style="padding-top:20px;"> <table class="table table-striped dataTables-example table-bordered"> <thead> <tr role="row"> <th style="width: 10%;">วันที่ประกาศ</th> <th style="width: 20%;">หัวข้อแจ้งเตือน</th> <th style="width: 40%;">รายละเอียดแจ้งเตือน</th> <th style="width: 5%;">จัดการ</th> </tr> </thead> <tbody> <?php while ($row = mysqli_fetch_assoc($rs)) { $created_at = date("d/m/Y", strtotime($row['created_at'])); ?> <tr id="tr_<?php echo $row['id'] ?>"> <td><?php echo $created_at ?></td> <td><?php echo $row['title'] ?></td> <td><?php echo $row['message'] ?></td> <td class="text-center"> <div class="col-md-12 col-sm-12"> <button class="btn btn-warning btn-block btn-xs mb-1" onclick="GetModalEdit('<?php echo $row['id']; ?>')"></i> ตั้งค่าประกาศ</button> </div> </td> </tr> <?php } ?> </tbody> </table> </div>