/
home
/
efamember
/
domains
/
efa-member.com
/
public_html
/
backoffice
/
ajax
/
setting_seo
/
up file
home
<?php session_start(); include('../../../config/main_function.php'); $secure = "cAh3DrJACzw4RbU"; $connection = connectDB($secure); $sql = "SELECT * FROM tbl_setting_seo"; $res = mysqli_query($connection, $sql); ?> <div class="table-responsive"> <table class="table table-striped dataTables-example table-bordered"> <thead> <tr> <th style="width: 1%;">#</th> <th style="width: 60%;">ข้อมูล SEO</th> <th class="text-center">Image</th> <th class="text-center" style="width: 15%;">สถานะ</th> </tr> </thead> <tbody> <?php $i = 1; while ($row = mysqli_fetch_assoc($res)) { ?> <tr> <td><?php echo $i; ?></td> <td> <strong>ชื่อเพจ : </strong><?php echo $row['page_title']; ?><br> <strong>คำอธิบายของหน้า : </strong><?php echo $row['page_description']; ?><br> <strong>url ของหน้า : </strong><?php echo $row['page_url']; ?><br> </td> <td class="text-center"><img src="img/<?php echo $row['page_image'] == '' ? 'AddFile.png' : $row['page_image'] ?>" width="100px" height="100px" /></td> <td class="text-center"> <button class="btn btn-warning btn-xs w-100" onclick="GetModal('<?php echo $row['seo_id']; ?>','edit')">แก้ไข</button> </td> </tr> <?php $i++; } ?> </tbody> </table> </div>