Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 218

Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 219

Warning: Cannot modify header information - headers already sent by (output started at /home/destefa1/public_html/nf/function.php:1) in /home/destefa1/public_html/nf/function.php on line 220
Gagal: Deposito tidak ditemukan."; } elseif ($datadb['status'] != "Pending") { $msg_type = "error"; $msg_content = "×Gagal: Deposito berstatus ".$datadb['status']."."; } else { $post_user = $datadb['user']; $post_balance = $datadb['balance']; $send_balance = mysqli_query($db, "UPDATE users SET balance = balance+$post_balance WHERE username = '$post_user'"); $update_depo = mysqli_query($db, "UPDATE deposits SET status = 'Success' WHERE code = '$post_code'"); if ($send_balance == TRUE) { $msg_type = "success"; $msg_content = "×Berhasil: Permintaan deposito diterima.
Kode: $post_code
Penerima: $post_user
Jumlah Saldo: Rp $post_balance"; } else { $msg_type = "error"; $msg_content = "×Gagal: Kesalahan sistem"; } } } elseif (isset($_POST['cancel'])) { $post_code = $_POST['code']; $checkdb = mysqli_query($db, "SELECT * FROM deposits WHERE code = '$post_code'"); $datadb = mysqli_fetch_assoc($checkdb); if (mysqli_num_rows($checkdb) == 0) { $msg_type = "error"; $msg_content = "×Gagal: Deposito tidak ditemukan."; } elseif ($datadb['status'] != "Pending") { $msg_type = "error"; $msg_content = "×Gagal: Deposito berstatus ".$datadb['status']."."; } else { $post_user = $datadb['user']; $update_depo = mysqli_query($db, "UPDATE deposits SET status = 'Error' WHERE code = '$post_code'"); if ($update_depo == TRUE) { $msg_type = "success"; $msg_content = "×Berhasil: Permintaan deposito dibatalkan.
Kode: $post_code"; } else { $msg_type = "error"; $msg_content = "×Gagal: Kesalahan sistem"; } } } include("../lib/headeradmin.php"); // widget $check_worder = mysqli_query($db, "SELECT SUM(balance) AS total FROM deposits WHERE status = 'Success'"); $data_worder = mysqli_fetch_assoc($check_worder); $check_worder = mysqli_query($db, "SELECT * FROM deposits WHERE status = 'Success'"); $count_worder = mysqli_num_rows($check_worder); ?>

Data Deposit

Tanggal Kode Pengguna Metode Catatan Jumlah Saldo didapat Status Aksi
Rp Rp