/var/www/hkosl.com/innoutstorage2019/en/confirm_rent.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
<?php
    
require_once ('../webadmin/basic_info.php');

    
$master_room_info get_master_room($_SESSION["warehousing_web"]["master_room_id"]);

    
$product_info get_product();

    
$customer_type get_master_type_code("CUSTOMER_TYPE");

    if(empty(
$_SESSION["warehousing_web"]["room_id"])){
        echo 
"<script>alert('Cannot get the room id. Please try again.'); location.href='rent.php?id=".$_SESSION["warehousing_web"]["master_room_id"]."'</script>";
    }
?>
<!DOCTYPE html>
<html dir="ltr" lang="en-US">
<head>

    <?php require_once ("html_head.php"?>

    <?php
        
if(isset($_GET["error"]) && $_GET["error"] == 1){
            echo 
"<script>alert('Error occur when processing Paypal payment. Please try again.');</script>";
        }
    
?>

</head>

<body class="stretched no-transition">

<?php require_once ("google_analysis.php"); ?>

<!-- Document Wrapper
============================================= -->
<div id="wrapper" class="clearfix">

    <!-- Header
    ============================================= -->
    <?php require_once ("html_header.php"?>

    <!-- Content
    ============================================= -->
    <section id="content">

        <div class="content-wrap">

            <div class="container clearfix">

                <div class="heading-block center">
                    <h1>RENT STORAGE</h1>
                </div>

                <form class="nobottommargin" id="billing-form" name="billing-form" action="../paypal/ReviewOrder.php?online=1&langcode=en" method="post">

                <div class="col-md-12 reserve">
                    <div class="table-responsive clearfix">
                        <h4>Your Summary</h4>
                        <table class="table cart">
                            <thead>
                            <tr>
                                <th class="cart-product-name">Item</th>
                                <th class="cart-product-subtotal">Sub Total</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr class="cart_item">
                                <td class="cart-product-name">
                                    <h1>Unit Size(LxWxH): <?=$master_room_info["display_size"]?></h1>
                                    Unit Fee: HK$<?=$_SESSION["warehousing_web"]["discounted_price"]?> / month<br />
                                    Rent Month: <?=$_SESSION["warehousing_web"]["rent_month"]?> month(s)<br />
                                    Prepaid all rent fee:
                                    <?php
                                        
if($_SESSION["warehousing_web"]["prepaid"] == 1){
                                            echo 
"Yes<br />";
                                        }else{
                                            echo 
"No<br />";
                                        }

                                        if(
$_SESSION["warehousing_web"]["first_month_half_price"] > 0){
                                            echo 
"First month free: -HK$".numberformat($_SESSION["warehousing_web"]["first_month_half_price"])."<br />";
                                        }
                                    
?>

                                </td>

                                <td class="cart-product-subtotal">
                                    <span class="amount">HK$<?=numberformat($_SESSION["warehousing_web"]["discounted_price"]*$_SESSION["warehousing_web"]["rent_month"]-$_SESSION["warehousing_web"]["first_month_half_price"])?></span>
                                </td>
                            </tr>
                            <tr class="cart_item">
                                <td class="cart-product-name">
                                    <h1>Deposit fee</h1>
                                    HK$<?=numberformat($_SESSION["warehousing_web"]["retail_price"])?> x 2
                                </td>

                                <td class="cart-product-subtotal">
                                    <span class="amount">HK$<?=numberformat($_SESSION["warehousing_web"]["deposit"])?></span>
                                </td>
                            </tr>

                            <?php
                                $product_total 
0;
                                if (!empty(
$_SESSION["warehousing_web"]["order_product"])) {

                                    foreach (
$_SESSION["warehousing_web"]["order_product"] as $product) {
                                        
$product_info  get_product($product["product_id"]);
                                        
$product_total += ($product["price"] * $product["qty"]);
                                        echo 
'<tr class="cart_item">';
                                        echo 
'<td class="cart-product-name">
                                                <h1>' 
$product_info["name_" $langcode] . '</h1>
                                                Quantity: ' 
$product["qty"] . '
                                            </td>

                                            <td class="cart-product-subtotal">
                                                <span class="amount">HK$' 
.numberformat(numberformat($product["price"] * $product["qty"])) . '</span>
                                            </td>'
;
                                        echo 
'</tr>';
                                    }
                                }
                            
?>

                            </tbody>
                        </table>
                    </div>
                    <div class="center"><h4>Total Amount:&nbsp;&nbsp;&nbsp;HK$<?=numberformat($_SESSION["warehousing_web"]["discounted_price"]*$_SESSION["warehousing_web"]["rent_month"]-$_SESSION["warehousing_web"]["first_month_half_price"]+$product_total+$_SESSION["warehousing_web"]["deposit"])?></h4></div>
                    <div class="line"></div>
                    <h4>Billing Information</h4>

                    <p></p>



                        <div class="form-process"></div>

                        <div class="col_one_third">
                            <b>Title:</b><br />
                            <?=$_SESSION["warehousing_web"]["title"]?></div>
                        <div class="col_one_third">
                            <b>First Name:</b><br />
                            <?=$_SESSION["warehousing_web"]["firstname"]?></div>
                        <div class="col_one_third col_last">
                            <b>Last Name:</b><br />
                            <?=$_SESSION["warehousing_web"]["lastname"]?></div>



                        <?php if($_SESSION["warehousing_web"]["customer_type"] == "BUSINESS"){    ?>

                            <div class="col_one_third">
                                <b>Customer Type:</b><br />
                                <?php
                                    $type_info 
get_master_type_code("CUSTOMER_TYPE"$_SESSION["warehousing_web"]["customer_type"]);

                                    echo 
$type_info["name_".$langcode];
                                
?></div>

                            <div class="col_two_third col_last">
                                <b>Company Name:</b><br />
                                <?=$_SESSION["warehousing_web"]["companyname"]?></div>
                        <?php }else{ ?>
                            <div class="col_full">
                                <b>Customer Type:</b><br />
                                <?php
                                    $type_info 
get_master_type_code("CUSTOMER_TYPE"$_SESSION["warehousing_web"]["customer_type"]);

                                    echo 
$type_info["name_".$langcode];
                                
?></div>
                        <?php ?>


                        <div class="col_one_third">
                            <b>Phone:</b><br />
                            <?=$_SESSION["warehousing_web"]["tel"]?></div>

                        <div class="col_one_third">
                            <b>Email:</b><br />
                            <?=$_SESSION["warehousing_web"]["email"]?></div>

                        <div class="col_one_third col_last">
                            <b>Billing Address:</b><br />
                            <?=$_SESSION["warehousing_web"]["address"]?></div>
                        <div class="col_one_third">
                            <b>Move in date:</b><br />
                            <?=$_SESSION["warehousing_web"]["warehousing_date"]?></div>

                        <?php if($_SESSION["warehousing_web"]["transervice"] == 1){ ?>
                        <div class="col_full">
                            If you require transportation service, please click below<br />
                            <label for="billing-form-transervice"><input id="billing-form-transervice" name="billing-form-transervice" type="checkbox" value="1" checked="checked" disabled="disabled" /> <span style="font-size:18px;">Transportation services</span></label>
                        </div>

                            <div class="col_one_third">
                                <b>Service Date:</b><br />
                                <?=$_SESSION["warehousing_web"]["service_date"]?></div>

                            <div class="col_one_third">
                                <b>Delivery From:</b><br />
                                <?=$_SESSION["warehousing_web"]["delivery_from"]?></div>

                            <div class="col_one_third col_last">
                                <b>Delivery To:</b><br />
                                <?=$_SESSION["warehousing_web"]["delivery_to"]?></div>

                        <?php ?>

                        <?php /*if($_SESSION["warehousing_web"]["auto_paid"] == 1){ */?><!--
                            <div class="col_full" id="recurring-payment">
                                If you want to using recurring payment service (monthly auto payment), please click below<br />
                                <label for="billing-form-recurring-payment"><input id="billing-form-recurring-payment" name="billing-form-recurring-payment" type="checkbox" value="1" checked="checked" disabled="disabled" /> <span style="font-size:18px;">Recurring payment service</span></label>
                            </div>
                        --><?php /*} */?>

                        <div class="col_full">
                            <b>Terms and Conditions:</b><br />
                            You hereby agree to the terms and conditions. You are also aware that you are responsible for the timely payment of all fees and for providing In N Out Storage with a valid payment method for payment of all fees.<br /><br />
                            You will be charged starting on the day of your move-in to our storage facility. You agree that 2 months rental deposit and at least one month payment are required before commencing our service. By paying online through Paypal, you agree to be automatically billed for the storage fee on the monthly billing date.
                        </div>

                        <div class="col_full">
                            <label for="billing-form-agree"><input id="billing-form-agree" name="billing-form-agree" type="checkbox" checked="checked" value="1" class="required"  disabled="disabled"/> <span style="font-size:18px;">I agree to the terms and conditions</span></label>
                        </div>

                        <div class="col_full">
                            <b>Payment method:</b><br /> <img src="../images/visa_mastercard_logo_<?=$langcode?>.png" height="30"></div>

                        <div class="col_full center">
                            <a href="rent.php?id=<?=$_SESSION["warehousing_web"]["master_room_id"]?>" class="button button-light">BACK</a>
                            <button class="button nomargin" type="submit" id="billing-form-submit" name="billing-form-submit" value="submit">CONFIRM</button>
                        </div>


                    <script type="text/javascript">

                        $("#billing-form").validate({

                        });

                    </script>

                </div>
                </form>
            </div>

        </div>

    </section><!-- #content end -->

    <!-- Footer
    ============================================= -->
    <?php require_once ("html_footer.php"); ?>


</div><!-- #wrapper end -->

<!-- Go To Top
============================================= -->
<div id="gotoTop" class="icon-angle-up"></div>

<!-- Footer Scripts
============================================= -->
<script type="text/javascript" src="../js/functions.js"></script>

</body>
</html>