-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeposit.php
178 lines (170 loc) · 8.35 KB
/
deposit.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<?php
include('session.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo $s0['instansi']; ?></title>
<meta name="description" content="<?php echo $s0['deskripsi']; ?>">
<meta name="keywords" content="<?php echo $s0['keyword']; ?>">
<meta property="og:title" content="<?php echo $s0['instansi']; ?>"/>
<meta property="og:description" content="<?php echo $s0['deskripsi']; ?>" />
<meta property="og:url" content="<?php echo $urlweb; ?>" />
<meta property="og:image" content="<?php echo $urlweb; ?>/upload/<?php echo $s0['image']; ?>" />
<meta name="resource-type" content="document" />
<meta http-equiv="content-type" content="text/html; charset=US-ASCII" />
<meta http-equiv="content-language" content="en-us" />
<meta name="author" content="<?php echo $urlweb; ?>" />
<meta name="contact" content="<?php echo $urlweb; ?>" />
<meta name="copyright" content="Copyright (c) <?php echo $urlweb; ?>. All Rights Reserved." />
<meta name="robots" content="index, nofollow">
<link rel="shortcut icon" type="image/x-icon" href="<?php echo $urlweb; ?>/upload/favicon.png">
<link rel="stylesheet" href="<?php echo $urlweb; ?>/assets/plugins/summernote/dist/summernote-bs4.css"/>
<!-- simplebar CSS-->
<link href="<?php echo $urlweb; ?>/assets/plugins/simplebar/css/simplebar.css" rel="stylesheet"/>
<!-- Bootstrap core CSS-->
<link href="<?php echo $urlweb; ?>/assets/css/bootstrap.min.css" rel="stylesheet"/>
<!--Data Tables -->
<link href="<?php echo $urlweb; ?>/assets/plugins/bootstrap-datatable/css/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css">
<link href="<?php echo $urlweb; ?>/assets/plugins/bootstrap-datatable/css/buttons.bootstrap4.min.css" rel="stylesheet" type="text/css">
<!-- animate CSS-->
<link href="<?php echo $urlweb; ?>/assets/css/animate.css" rel="stylesheet" type="text/css"/>
<!-- Icons CSS-->
<link href="<?php echo $urlweb; ?>/assets/css/icons.css" rel="stylesheet" type="text/css"/>
<!-- Custom Style-->
<?php include('style.php'); ?>
<link href="<?php echo $urlweb; ?>/assets/css/owl.carousel.css" rel="stylesheet"/>
<link href="<?php echo $urlweb; ?>/assets/css/owl.carousel.min.css" rel="stylesheet"/>
</head>
<body>
<!-- Start wrapper-->
<div id="wrapper">
<header>
<?php include('header.php'); ?>
</header>
<section class="mt-4 mb-5 deposit">
<div class="container">
<div class="row">
<div class="col-sm-3"></div>
<div class="col-sm-6">
<div class="row">
<div class="col p-1">
<a class="btn btn-transaksi active w-100 mb-1" href="<?php echo $urlweb; ?>/deposit/">Deposit</a>
</div>
<div class="col p-1">
<a class="btn btn-transaksi w-100 mb-1" href="<?php echo $urlweb; ?>/withdraw/">Withdraw</a>
</div>
<div class="col p-1">
<a class="btn btn-transaksi w-100 mb-1" href="<?php echo $urlweb; ?>/history/">Transaksi</a>
</div>
<div class="col p-1">
<a class="btn btn-transaksi w-100 mb-1" href="<?php echo $urlweb; ?>/bank/">Info Akun</a>
</div>
</div>
<div class="form-tab-heading vertical-align-center">
<div class="text-uppercase form-heading-subtab text-center active">
01 formulir
</div>
<div class="text-uppercase form-heading-subtab text-center">
02 konfirmasi
</div>
<div class="text-uppercase form-heading-subtab text-center">
03 hasil
</div>
</div>
<div class="card" style="background-color: #000;">
<div class="card-body p-2">
<form role="form" class="mt-3 mb-4" action="<?php echo $urlweb; ?>/function/deposit.php" method="POST">
<div class="form-group mb-3">
<label>Nominal Deposit</label>
<input type="number" name="nominal" placeholder="Masukan Jumlah Deposit" min="<?php echo $sad['min_depo']; ?>" class="form-control" value="">
<span style="font-size: 12px;">Minimal Deposit Rp. <?php echo number_format($sad['min_depo']); ?></span>
</div>
<div class="form-group mb-3">
<label>Tujuan Transfer</label>
<select name="metode" id="metode" class="form-control" required>
<option value=""> Pilih </option>
<?php
$sql_bank = mysqli_query($conn,"SELECT * FROM `tb_rekening_deposit` WHERE userID = 1 AND status = 1 ORDER BY cuid ASC") or die(mysqli_error());
$no=0;
while($sb = mysqli_fetch_array($sql_bank)){
$no++;
?>
<option value="<?php echo $sb['cuid']; ?>">
<?php echo $sb['akun']; ?> - <?php echo $sb['pemilik']; ?>
</option>
<?php } ?>
</select>
</div>
<div class="form-group mb-3">
<label>Promo</label>
<select name="gameid" class="form-control">
<option value=""> Pilih </option>
<?php
$sql_transaksi = mysqli_query($conn,"SELECT * FROM `tb_post` WHERE kategori = 0 AND cuid NOT IN(SELECT gameid FROM `tb_transaksi` WHERE userID = '$userID' AND jenis = 1 AND status = 1) ORDER BY cuid ASC") or die(mysqli_error());
$no=0;
while($st = mysqli_fetch_array($sql_transaksi)){
$no++;
?>
<option value="<?php echo $st['cuid']; ?>">
<?php echo ucwords(strtolower($st['title'])); ?>
</option>
<?php } ?>
</select>
</div>
<div class="form-group mb-3">
<label>Catatan</label>
<input type="text" name="catatan" class="form-control" placeholder="Apabila Anda Mengirim Bukan Menggunakan Bank Terikat, Berikan Keterangan Disini">
</div>
<div id="boxDeposit"></div>
<button type="submit" name="submit" value="submit" class="btn btn-secondaries w-100" style="height: 40px;">KONFIRMASI</button>
</form>
<?php
error_reporting(0);
if (!empty($_GET['notif'])) {
if ($_GET['notif'] == 1) {
echo '
<div class="alert alert-warning alert-dismissible mb-2" role="alert">
<button type="button" class="close" data-dismiss="alert">×</button>
<div class="alert-message">
<span><strong>Warning!</strong> Minimal Deposit adalah IDR '.number_format($sad['min_depo']).'</span>
</div>
</div>
';
}
else if ($_GET['notif'] == 2) {
echo '
<div class="alert alert-warning alert-dismissible mb-2" role="alert">
<button type="button" class="close" data-dismiss="alert">×</button>
<div class="alert-message">
<span><strong>Warning!</strong> Anda Masih Memiliki Permintaan deposit yang Belum Diproses!</span>
</div>
</div>
';
}
}
?>
</div>
</div>
</div>
<div class="col-sm-3"></div>
</div>
</div>
</section>
<!--Start footer-->
<?php include('footer.php'); ?>
<script>
$(document).ready(function (){
$("#metode").change(function (){
url = "<?php echo $urlweb; ?>/getRekening.php?id="+$(this).val();
$('#boxDeposit').load(url);
//console.log(url);
return false;
});
});
</script>
</body>
</html>