-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuy_coins_1.php
271 lines (195 loc) · 6.9 KB
/
buy_coins_1.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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
<?php
include_once("coin_header.php");
include_once("db.php");
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
if(!isset($_GET['request_id'])){
echo "<script>alert('Request ID required');</script>";
}
$request_id = $_GET['request_id'];
$sql = "select sell_requests.id, banks.name as bankName, accounts.name, accounts.number from sell_requests inner join accounts on sell_requests.intern_id=accounts.intern_id inner join banks on sell_requests.account=banks.id where sell_requests.id = :request_id";
$stmt = $db->prepare($sql);
$stmt->bindParam(':request_id', $request_id);
$stmt->setFetchMode(PDO::FETCH_ASSOC);
$stmt->execute();
$sell_request = $stmt->fetch();
var_dump($sell_request);
?>
<style>
body{
background: #ffffff;
/*font-size: 14px;*/
font-family: Lato;
}
.main-container{
padding-right: 10%;
padding-left: 10%;
font-size: 14px;
}
main{
/*margin-bottom: 7.4%;*/
/*margin-right: 10%;
margin-left: 10%;*/
padding-bottom: 3.1%;
box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.25);
}
.input-form{
padding-top: 11%;
padding-bottom:4.5%;
}
.label-for-form,#sellerDetails,thead>tr>th{
font-size: 1.25em;
color: #3d3d3d;
line-height: 1.5em;
}
td,.footerText{
font-size: 1.125em;
color: #323232;
line-height:1.250em;
}
td,.heavy-text{
font-weight: 600;
}
#sellerDetails{
font-weight: bold;
}
.input-for-form{
font-size: 1.25em;
color: #828282;
line-height: 1.5em;
}
.table-div{
padding-bottom: 3%;
}
.modal-content{
padding: 1.4% 3.3%;
}
#modalHeader{
/*font-size: 1.25em;*/
/*font-size: 2.625em;*/
font-size: 2em;
font-style: normal;
font-weight: bold;
line-height: normal;
color: #3d3d3d;
margin-bottom: 2.2%;
}
#confirmModal{
background: rgba(196, 196, 196, 0.3) !important;
}
.visible{
display: block;
}
.hidden{
display: none;
}
.crumbs:hover{
cursor: pointer;
}
/* media queries */
@media(min-width: 360px) {
#checkMark {
left:10%; }
}
</style>
<div class="main-container">
<div style="margin-top: 6.5%;display:flex">
<div id="crumb1" class="crumbs" style="position: relative; margin-right: -0.45%;margin-left: 0%;width: 25%;color: white">
<img style="width: 100%" src="img/blue_1_bar.svg" alt="first arrow">
<span style="position:absolute;top:30%;left: 50%;font-size: 1.253em">1</span>
</div>
<div id="crumb2" class="crumbs" style="position: relative; margin-right: -0.45%;margin-left: 0%;width: 25%;color: white">
<img style="width: 100%" src="img/blue_1_bar.svg" alt="first arrow">
<span style="position:absolute;top:30%;left: 50%;font-size: 1.253em">2</span>
<img style="width: 20%;height: 100%;position: absolute;top: 0%;left: -2%;padding-left: 0%;" src="img/blue_1_arrow.svg" alt="first arrow">
</div>
<div id="crumb3" class="crumbs" style="position: relative; margin-right: -0.45%;margin-left: 0%;width: 25%;color: white">
<img style="width: 100%" src="img/blue_2_bar.svg" alt="first arrow">
<span style="position:absolute;top:30%;left: 50%;font-size: 1.253em">3</span>
<img style="width: 20%;height: 100%;position: absolute;top: 0%;left: -2%;padding-left: 0%;" src="img/blue_1_arrow.svg" alt="first arrow">
</div>
<div id="crumb4" class="crumbs" style="position: relative; margin-right: 0%;margin-left: 0%;width: 25%;color: white">
<img style="width: 100%" src="img/blue_2_bar.svg" alt="first arrow">
<span style="position:absolute;top:30%;left: 50%;font-size: 1.253em">4</span>
<img style="width: 20%;height: 100%;position: absolute;top: 0%;left: -2%;padding-left: 0%;" src="img/blue_2_arrow.svg" alt="first arrow">
</div>
</div>
<h1 style="text-align: left;color: #3D3D3D;line-height: 1.571em; margin-top: 2.4%;margin-bottom:0%;
font-family: 'Work Sans';
font-style: normal;
font-weight: bold;
line-height: normal;
font-size: 1.25em;"> SEND PAYMENT</h1>
<p class="heavy-text" style="text-align: left;color: #3D3D3D;font-size:1.125em;line-height: 1.571em; margin: 1.4% 0%;"> You are buying 0.00118811 HNGcoins from Dammy. Please send payment per instructions below</p>
<main class="container">
<!-- Button trigger modal -->
<div class="row justify-content-md-center">
<div class="col-xs-12- col-sm-10" id="sellerDetails" style="text-align: center;background: #f2f2f2; padding: 1% 0%; margin-top:3%">Payment Details</div>
</div>
<div class="row justify-content-md-center table-div">
<table class="table table-bordered col-xs-12 col-sm-10">
<tbody>
<tr>
<td class="w-50">Payment Method</th>
<td class="w-50">Bank Transfer</th>
</tr>
<tr>
<td>Amount to be paid</td>
<td>3,395 NGN</td>
</tr>
<tr>
<td>Bank Name</td>
<td><?php echo $sell_request['bankName'] ?></td>
</tr>
<tr>
<td>Bank Account Name
</td>
<td><?php echo $sell_request['name'] ?></td>
</tr>
<tr>
<td>Bank Account Number</td>
<td><?php echo $sell_request['number'] ?></td>
</tr>
</tbody>
</table>
</div>
<p class="footerText" style="text-align: center;color: #3D3D3D;"> You will recieve HNGcoin immediately after seller has confirmed your payment</p>
<div class="row justify-content-md-center">
<hr style="margin-bottom: 5.2%; background: #f2f2f2;" class="col-10">
</div>
<div class="row justify-content-md-center justify-content-xs-center" style="padding-bottom: 3.7%;">
<button type="button" id="cancelButton" class="btn btn-primary col-xs-6 col-sm-3" style="font-size: 1.563em;
color:#fafafa;line-height: 1.875em;">Cancel Trade</button>
</div>
</main>
<h1 style="text-align: left;color: #3D3D3D;line-height: 1.571em; margin-top: 3.4%;margin-bottom:0%;
font-family: 'Work Sans';
font-style: normal;
font-weight: bold;
line-height: normal;
font-size: 1.25em;"> SUBMIT PROOF OF PAYMENT</h1>
<p class="heavy-text" style="text-align: left;color: #3D3D3D;font-size:1.125em;line-height: 1.571em; margin: 1.4% 0%;"> You are required to submit a screenshot of successful payment transaction</p>
<div class="row justify-content-md-center justify-content-xs-center" style="padding-bottom: 3.7%;">
<button type="button" id="proofButton" class="btn btn-primary btn-sm col-xs-6 col-sm-3" style="font-size: 1.563em;
color:#fafafa;line-height: 1.875em; margin-top:4.6%;margin-bottom:6.8%">Submit Payment Proof</button>
</div>
</div>
<script type="text/javascript">
window.onload = function() {
$('#crumb1').on('click', function () {
moveToPage("buy_coins_0.php");
});
$('#cancelButton').on('click', function () {
moveToPage("transaction_cancelled.php");
});
$('#proofButton').on('click', function () {
moveToPage("transaction_pending.php");
});
function moveToPage(page){
window.location.href = page;
}
}
</script>
<!-- Footer -->
<?php
include_once("footer.php");
?>