/
home
/
efamember
/
domains
/
efa-member.com
/
public_html
/
main
/
ajax
/
working_billing
/
up file
home
<?php session_start(); include('../../../config/main_function.php'); $secure = "cAh3DrJACzw4RbU"; $connection = connectDB($secure); if ($connection) { $member_id = mysqli_real_escape_string($connection, $_POST['ref_member_id']); $temp_id = explode(".", $member_id); $ref_member_id = bigsara_decode($temp_id[0], $temp_id[1]); $sql_select = "SELECT * FROM tbl_billing_head"; $res_select = mysqli_query($connection, $sql_select) or die($connection->error); } else { echo "Connection Error"; } mysqli_close($connection); ?> <div class="table-responsive"> <table class="table table-striped dataTables-example table-bordered"> <thead> <tr> <td>เลขที่</td> <td>รายละเอียด</td> <td>ยอดรวมสุทธิ</td> <td></td> </tr> </thead> <tbody> <?php while ($row = mysqli_fetch_assoc($res_select)) { ?> <tr> <!-- <td><?php echo $row['invoice_number']; ?></td> --> <td><?php echo $row['billing_no']; ?></td> <td><?php echo ($row['customer_name'] != '') ? $row['customer_name'] : "-" ?></td> <td><?php echo $row['total_amount']; ?></td> <td style="width: 2%;"> <button class="btn btn-info btn-sm w-100 mb-2"><i class="fa fa-search"></i> รายละเอียด</button> <button class="btn btn-primary btn-sm w-100 bm-2" onclick="GetModalConfirmPay('<?php echo $row['billing_id']; ?>')"><i class="fa fa-money"></i> ชำระเงิน</button> </td> </tr> <?php } ?> </tbody> </table> </div>