-
Notifications
You must be signed in to change notification settings - Fork 0
/
paymentForm.php
162 lines (139 loc) · 6.09 KB
/
paymentForm.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
<?php
require("lib.php");
print_r(Config::$TRANSACTION_AMOUNT);
$deps = 0;
$nos = request("nos");
if(request("deposit")) {
$deps++;
}
if(request("dslip")) {
$deps += count($_REQUEST["dslip"]);
}
//die("D: $deps");
?>
<div class="panel-body">
<div class="row">
<div class="col-md-6">
<fieldset>
<legend class="text-semibold"><i class="icon-reading position-left"></i> Personal details</legend>
<div class="form-group">
<label>Card Number:</label>
<input type="text" class="form-control" name="cardNumber" id="cardNumber" maxlength="19" placeholder="xxxx-xxxx-xxxx-xxxx">
</div>
<div class="form-group">
<label>Expiration Date:</label>
<input type="text" class="form-control" name="date" id="date" maxlength="5" placeholder="yy/MM">
</div>
<div class="form-group">
<label>cvc:</label>
<input type="text" class="form-control" name="cvc" maxlength="cvc" placeholder="XXX">
</div>
<div class="form-group">
<label>Your message:</label>
<textarea rows="5" cols="5" class="form-control" name="message" placeholder="Enter your message here"></textarea>
</div>
</fieldset>
</div>
<div class="col-md-6">
<fieldset>
<legend class="text-semibold"><i class="icon-truck position-left"></i> Shipping details</legend>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label>First name:</label>
<input type="text" placeholder="Your first name" class="form-control" name="pfirstname">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Last name:</label>
<input type="text" placeholder="Your last namev" class="form-control" name="plastname">
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label>Email:</label>
<input type="text" placeholder="[email protected]" class="form-control" name="email">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Phone #:</label>
<input type="text" placeholder="+99-99-9999-9999" class="form-control" name="phone">
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="col-lg-3 control-label">Country:</label>
<select data-placeholder="Select your country" class="select form-control" name="country">
<!--option></option-->
<option value="Bosnia and Herzegovina">Bosnia and Herzegovina</option>
<option value="Cambodia">Cambodia</option>
<option value="Cameroon">Cameroon</option>
<option value="Canada">Canada</option>
<option value="Cape Verde">Cape Verde</option>
</select>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>State/Province:</label>
<input type="text" placeholder="Bayern" class="form-control" name="state">
</div>
</div>
</div>
<div class="row">
<div class="col-md-3">
<div class="form-group">
<label>ZIP code:</label>
<input type="text" placeholder="1031" class="form-control" name="zip">
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<label>City:</label>
<input type="text" placeholder="Munich" class="form-control" name="city">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label>Address line:</label>
<input type="text" placeholder="Ring street 12" class="form-control" name="street">
</div>
</div>
</div>
<hr />
<h5>Order detail</h5>
<table>
<thead>
<tr>
<th>description</th>
<th>qty</th>
<th>amount</th>
</tr>
</thead>
<tr>
<td>Stub download<br />Item price: $<?php echo Config::$TRANSACTION_AMOUNT["AMOUNT_PAYCHECK"]; ?></td>
<td style="text-align: right"><?php echo $nos - $deps; ?></td>
<td style="text-align: right"><?php echo Config::$TRANSACTION_AMOUNT["AMOUNT_PAYCHECK"] * ($nos - $deps); ?></td>
</tr>
<tr>
<td>Stub Download with slip<br />Item price: $<?php echo Config::$TRANSACTION_AMOUNT["AMOUNT_PAYCHECK"] + Config::$TRANSACTION_AMOUNT["AMOUNT_SLIP"]; ?></td>
<td style="text-align: right"><?php echo $deps; ?></td>
<td style="text-align: right"><?php echo $deps * (Config::$TRANSACTION_AMOUNT["AMOUNT_PAYCHECK"] + Config::$TRANSACTION_AMOUNT["AMOUNT_SLIP"]); ?></td>
</tr>
<tr>
<td style="font-weight: bold;">Total</td>
<td></td>
<td style="text-align: right; font-weight: bold;">$<?php echo Config::$TRANSACTION_AMOUNT["AMOUNT_PAYCHECK"] * ($nos - $deps) +
$deps * (Config::$TRANSACTION_AMOUNT["AMOUNT_PAYCHECK"] + Config::$TRANSACTION_AMOUNT["AMOUNT_SLIP"]); ?></td>
</tr>
</table>
</fieldset>
</div>
</div>
</div>