<?php
require_once('header.php');
if (isset( $_SESSION['user'])) {
    $user = reset( $_SESSION['user'] );
}
error_reporting(0);
?>
<div id="page">
    <div class="container">
        <div class="wrapper">
            <div class="recharge-content pure-g-r">
                <h2 class="pure-u background">Recharge</h2>
                <h3 class="pure-u-1 first">Fill in the <span class="red">form</span></h3>
                <form action="." method="post" class="pure-u-2-3">
                    <div class="pure-g-r">
                        <div class="pure-u-1-2">
                            <input type="text" placeholder="First Name" name="first_name" id="first_name" value='<?php echo $user['Firstname'] ;?>'>
                            <input type="text" placeholder="Last Name" name="last_name" id="last_name" value='<?php echo $user['Lastname'] ;?>'>
                            <div class="select">
                                <select name="country" id="country" class="customselect">
                                    <option value="">Country</option>
                                    <option value="2">Lebanon</option>
                                    <option value="3">UAE</option>
                                </select>
                            </div>
                            <div class="select">
                                <select name="payment" id="payment" class="customselect">
                                    <option value="1">Payment type</option>
                                    <option value="2">Cash</option>
                                    <option value="3">Credit Card</option>
                                </select>
                            </div>
                        </div>
                        <div class="pure-u-1-2">
                            <div class="select">
                                <select name="card_type" id="card_type" class="customselect">
                                    <option value="1">Card Type</option>
                                    <option value="2">MasterCard</option>
                                    <option value="3">Visa</option>
                                </select>
                            </div>
                            <input type="text" placeholder="Card Number" name="card_number" id="card_number" value='<?php echo $user['Cardnumber'] ;?>'>
                            <input type="text" placeholder="Phone Number" name="phone_number" id="phone_number" value='<?php echo $user['Phone'] ;?>'>
                            <input type="text" placeholder="Address" name="address" id="postal_code" value='<?php echo $user['Address'] ;?>'>
                            <p class="submit">
                                <input type="submit" value="Submit">
                            </p>
                        </div>
                    </div>
                </form>
                <div class="pure-u-1-3 img">
                    <img src="img/recharge-bg.png" alt="" width="562" height="494">
                </div>
            </div>
        </div>
    </div>
</div>
<?php require_once('footer.php'); ?>