<?php
/**
 * Created by PhpStorm.
 * User: roysinclair
 * Date: 2016/07/11
 * Time: 6:59 PM
 */

?>


<div id="allFinancialInformation">

    <h1 class="text-center">Bank Details</h1>
    <h5 class="text-center">Which bank account would you like to use for your transactions ? <br> When you redeem your gold, it will be converted into cash and transferred to this account</h5>

    <form role="form" id="sa-natural-bankDetails">
        <div class="form-body padding-top35px">

            <div class="form-group form-md-line-input form-md-floating-label" id="saBanks">
                <select class="form-control edited input-lg" id="form_control_1">
                    <option value="NONE" selected="">Please select</option>
                    <?php

                    $pdo = $SA->query("SELECT type,code FROM inputbanks");
                    $pdo->execute();
                    $results = $pdo->fetchAll();

                    foreach ($results as $row) {

                        echo '<option data-code="'.$row['code'].'" value="'.$row['type'].'">'.$row['type'].'</option>';

                    }

                    ?>
                    <option value="anotherBank">Another Bank</option>
                </select>
                <label for="form_control_1">Bank Name</label>
                <span class="help-block hiddenContent"></span>
            </div>


    <div class="form-group form-md-line-input form-md-floating-label" id="anotherBank" >
        <input type="text" class="form-control input-lg" value="">
        <label for="form_control_1">Another Bank</label>
        <span class="help-block hiddenContent"></span>
    </div>

    <div class="form-group form-md-line-input form-md-floating-label" id="branchCode">
        <input type="text" class="form-control input-lg" value=""  >
        <label for="form_control_1">Branch Code</label>
        <span class="help-block hiddenContent"></span>
    </div>

    <div class="form-group form-md-line-input form-md-floating-label" id="accountName">
        <input type="text" class="form-control input-lg" value=""  >
        <label for="form_control_1">Account Holder Name</label>
        <span class="help-block hiddenContent"></span>
    </div>

    <div class="form-group form-md-line-input form-md-floating-label" id="accountNumber">
        <input type="text" class="form-control input-lg" value=""  >
        <label for="form_control_1">Account Number</label>
        <span class="help-block hiddenContent"></span>
    </div>

    <div class="form-group form-md-line-input form-md-floating-label" id="accountType">
        <select class="form-control edited input-lg" id="form_control_1">
            <option value="NONE" selected="">Please select</option>
            <?php

            $pdo = $SA->query("SELECT type FROM inputaccount");
            $pdo->execute();
            $results = $pdo->fetchAll();

            foreach ($results as $row) {

                echo '<option value="'.$row['type'].'">'.$row['type'].'</option>';

            }

            ?>
        </select>
        <label for="form_control_1">Account Type</label>
        <span class="help-block hiddenContent"></span>
    </div>

    <!--
                    <div class="form-group form-md-line-input form-md-floating-label">
                        <div class="col-md-10">
                            <div class="md-radio margin-top-20">
                                <input type="radio" id="advisor" name="financial" class="md-radiobtn" value="advisor">
                                <label for="advisor">
                                    <span class="inc"></span>
                                    <span class="check"></span>
                                    <span class="box"></span> Do you have a financial advisor ? </label>
                            </div>
                        </div>
                    </div>
    -->

    <!-- HIDDEN UNTIL Would you like financial  ? is CLICKED -->
    <div id="financialAdvisorContent" class="hiddenContent">

        <!-- GIVE ME SPACE -->
        <div class="clearfix margin-bottom-40"></div>
        <!-- OK THAT IS ENOUGH :) -->

        <div class="form-group form-md-line-input form-md-floating-label" id="advisorFirstName" >
            <input type="text" class="form-control input-lg" value="">
            <label for="form_control_1">Financial Advisor First Name</label>
            <span class="help-block hiddenContent"></span>
        </div>

        <div class="form-group form-md-line-input form-md-floating-label" id="advisorSurname" >
            <input type="text" class="form-control input-lg" value="">
            <label for="form_control_1">Financial Advisor Surname</label>
            <span class="help-block hiddenContent"></span>
        </div>

        <div class="form-group form-md-line-input form-md-floating-label" id="advisorFirstName" >
            <input type="text" class="form-control input-lg" value="">
            <label for="form_control_1">Name of Business</label>
            <span class="help-block hiddenContent"></span>
        </div>

        <div class="form-group form-md-line-input form-md-floating-label" id="advisorFee">
            <select class="form-control edited input-lg" id="form_control_1">
                <option value="NONE" selected="">Please select</option>
                <?php

                for ($i = 0; $i <= 3.5; $i += 0.5){

                    echo '<option value="'.$i.'">'.$i.'%</option>';

                }

                ?>
            </select>
            <label for="form_control_1">Initial Fee %</label>
            <span class="help-block hiddenContent"></span>
        </div>



    </div>
    <!-- END: HIDDEN UNTIL Would you like contribute once off ? is CLICKED -->

            <div class="form-actions noborder hidden" id="update">
                <div class="padding-top52px"></div>
                <a href="#">
                    <button type="button" class="btn purple btn-lg" id="updateButton">Update</button>
                </a>
            </div>

</div>

</form>


</div>
