-
Notifications
You must be signed in to change notification settings - Fork 0
/
userPurchase.html
216 lines (186 loc) · 5.82 KB
/
userPurchase.html
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
<!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.0">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/vendor/bootstrap-icons/bootstrap-icons.css">
<!-- Dashboard CSS -->
<link rel="stylesheet" href="assets/vendor/dashboard/dashboard.css">
<!-- Styles CSS -->
<link rel="stylesheet" href="assets/css/styles.css">
<title>Adam Hosting co. | Purchase</title>
</head>
<body style="overflow-y:hidden; overflow-x: hidden;">
<div class="container">
<div class="mainbg">
<br>
<div class="jumbotron">
<center>
<b>
<h4>Adam Hosting Services</h4>
<h5></h5>
<p>International Hosting Company</p>
</b>
</center>
</div>
<div class="row">
<div class="col-md">
<div class="form">
<!--<form action="userCheckout.php" class="form" method="post">-->
<!--<form action="printResult.php" class="centered-wrapper form" method="post">-->
<hr>
<label for="customerName" class="form-label">Nama Pembeli</label>
<input type="text" id="customerName" name="customerName" class="form-control" placeholder="Nama Pembeli" required>
<br>
<label for="customerNumber" class="form-label">Telepon</label>
<input type="text" id="customerNumber" name="customerNumber" class="form-control" placeholder="(Optional)">
<br>
<label for="nationality" class="form-label">Country</label>
<input type="text" id="nationality" name="nationality" class="form-control" placeholder="Indonesia" required>
<br>
<div class="row">
<div class="col-6">
<h4>Server Class</h4>
<select name="serverClass" id="serverClass" class="form-select" onchange="getCars(); getHarga()" required>
<option value="">-Pilih Merk-</option>
<option value="Regular">Regular</option>
<option value="Premium">Premium</option>
<option value="dedicated_Regular">Dedicated Regular</option>
<option value="dedicated_Premium">Dedicated Premium</option>
</select>
</div>
<br>
<div class="col-6">
<h4>Server Type</h4>
<select name="serverType" id="serverType" class="form-select" onchange="getHarga()" disabled required>
<option value="">-Pilih Merk-</option>
</select>
<br>
</div>
</div>
<h4>Harga: </h4>
<p name="total" id="total">Rp 0.</p>
<h4>Payment Type:</h4>
<select id="paymentType" name="paymentType" class="form-select" required>
<option value="">- Pilih Jenis Pembayaran -</option>
<option value="Card">Debit / Credit</option>
<option value="PayPal">PayPal</option>
</select>
<br>
<!--
<h4> DP: </h4>
<input type="text" name="dp" id="dp" class="form-control"> </input>
-->
<h4>Rent Duration:</h4>
<select id="rentDuration" name="rentDuration" class="form-select" required>
<option value="">- Pilih Durasi Penyewaan -</option>
<option value="rentDuration_monthly">1 Month (Monthly)</option>
<option value="rentDuration_quarterly">3 Months (Quarterly)</option>
<option value="rentDuration_semiannual">6 Months (Semi Annual)</option>
<option value="rentDuration_annually">12 Months (Annually)</option>
</select>
<br>
<!--<button type="submit" onclick="FungsiNilai()" class="but btn btn-success">Purchase</button>-->
<br>
<button type="submit" id="submitAJAX" class="but btn btn-success" style="color: white;">Add to Cart <i class="bi bi-save"></i></button>
<hr>
</div>
</div>
<div class="col-md-6">
<div class="formcheckout">
<!--<form action="userCheckout.php" class="form" method="post">-->
<!--<form action="printResult.php" class="centered-wrapper form" method="post">-->
<table border="0">
<tr>
<td class="pe-3">
<h5>Nama Pembeli</h5>
</td>
<td class="pe-3">
<h5>:</h5>
</td>
<td> <h5 id="result_customerName"></h5> </td>
</tr>
<tr>
<td>
<h5>Telepon</h5>
</td>
<td>
<h5>:</h5>
</td>
<td> <h5 id="result_customerNumber"></h5> </td>
</tr>
<tr>
<td>
<h5>Country</h5>
</td>
<td>
<h5>:</h5>
</td>
<td> <h5 id="result_nationality"></h5> </td>
</tr>
<tr>
<td>
<h5>Server Class</h5>
</td>
<td>
<h5>:</h5>
</td>
<td> <h5 id="result_serverClass"></h5> </td>
</tr>
<tr>
<td>
<h5>Server Type</h5>
</td>
<td>
<h5>:</h5>
</td>
<td> <h5 id="result_serverType"></h5> </td>
</tr>
<tr>
<td>
<h5>Payment Type</h5>
</td>
<td>
<h5>:</h5>
</td>
<td> <h5 id="result_paymentType"></h5> </td>
</tr>
<tr>
<td>
<h5>Rent Duration</h5>
</td>
<td>
<h5>:</h5>
</td>
<td> <h5 id="result_rentDuration"></h5> </td>
</tr>
<tr>
<td>
<h5>Total</h5>
</td>
<td>
<h5>:</h5>
</td>
<td> <h5 id="result_Total"></h5></td>
</tr>
</table>
<input class="but btn btn-success" type="submit" name="submit" value="Checkout" style="color: green">
<!-- <button type="submit" id="submitAJAX" class="btn btn-primary">Simpan <i class="bi bi-save"></i></button> -->
<hr>
</div>
</div>
</div>
</div>
</div>
<!-- </form> -->
<!-- Bootstrap Javascripts -->
<script src="assets/js/jquery-3.6.0.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/sweetalert.min.js"></script>
<script src="assets/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/script.js"> </script>
</body>
</html>