/
home
/
efamember
/
domains
/
efa-member.com
/
public_html
/
backoffice
/
ajax
/
setting_bank
/
up file
home
<?php session_start(); include('../../../config/main_function.php'); $secure = "cAh3DrJACzw4RbU"; $connection = connectDB($secure); $sql = "SELECT * FROM tbl_bank"; $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: 30%;">ชื่อธนาคาร</th> <th>หมายเลขบัญชี</th> <th>ชื่อบัญชี</th> <th class="text-center">โลโก้</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><?php echo $row['bank_name']; ?></td> <td><?php echo $row['account_number']; ?></td> <td><?php echo $row['account_name']; ?></td> <td class="text-center"><img src="img/<?php echo $row['logo'] == '' ? 'AddFile.png' : $row['logo'] ?>" width="100px" height="100px" /></td> <td class="text-center"> <!-- <?php if ($row['active_status'] == 1) { ?> <button class="btn btn-primary btn-xs w-100 mb-2" onclick="ChangeStatus('<?php echo $row['bank_id']; ?>','0')">แสดง</button> <?php } else if ($row['active_status'] == 0) { ?> <button class="btn btn-danger btn-xs w-100 mb-2" onclick="ChangeStatus('<?php echo $row['bank_id']; ?>','1')">ไม่แสดง</button> <?php } ?> --> <button class="btn btn-warning btn-xs w-100" onclick="GetModal('<?php echo $row['bank_id']; ?>','edit')">แก้ไข</button> </td> </tr> <?php $i++; } ?> </tbody> </table> </div>