<?php require_once('../Connections/ebanking.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

$colname_customer = "-1";
if (isset($_SESSION['MM_Username'])) {
  $colname_customer = $_SESSION['MM_Username'];
}
//mysql_select_db($database_ebanking, $ebanking);
$colname_customer = mysqli_real_escape_string($ebanking, $colname_customer);
$query_customer = "SELECT * FROM customer WHERE accountno = $colname_customer";
$customer = mysqli_query($ebanking, $query_customer);
$row_customer = mysqli_fetch_assoc($customer);
$totalRows_customer = mysqli_num_rows($customer);
?>
<header>
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <div class="row">
                        <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 clock-flx">
                            <p><i class="fad fa-clock"></i>Mon - Fri 8:00-16:00</p>
                        </div>
                        <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6 text-right flx">
                            <p>help@wolfvillecu.com</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </header>
    <div class="nav-wrapper">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <div class="row nav-flx">
                        <div class="col-lg-4 content-align">
                            <h3>Online Banking</h3>
                        </div>
                        <div class="col-lg-4 content-align text-center"><img src="../img/inner-logo.png" width="333" height="64" alt=""/></div>
                        <div class="col-lg-4 content-align">
                            <div class="row">
                                <div class="col-lg-12 user-flx">
                                    <ul class="nav navbar-nav">
                                        <li>
                                            <a href="#" data-container="body" class="dropdown-toggle" data-toggle="popover" data-placement="bottom" data-content='<ul>
                                                <li><a href="profile.php">Profile</a></li>
                                                <li role="separator" class="divider"></li>
                                                <li><a href="profile.php">Settings</a></li>
                                                <li role="separator" class="divider"></li>
                                                <li><a href="logout.php">Logout</a></li>
                                            </ul>' role="button" aria-haspopup="true" aria-expanded="false">
                                                <div class="user-icon">
                                                    <img src="../admin/uploads/<?php echo $row_customer['picture']; ?>" alt="<?php echo $row_customer['acctname']; ?>">
                                                </div>
                                                <div class="user-text">
                                                    <p style="margin: 10px 0 0 0;"><?php echo $row_customer['acctname']; ?></p>
                                                    <p><?php echo $row_customer['accountno']; ?></p>
                                                </div>
                                                <span class="caret"></span>
                                            </a>
                                            
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="time-news">
        <div class="container">
            <div class="row">
                <div class="col-lg-12 col-sm-12 col-md-12 col-xs-12 padded">
                    <div class="news-wrap">
                    <script type="text/javascript" src="js/roc-clock.js"></script>
                        <div class="time">
                            <span id="clock">&nbsp;</span>
                        </div>
                        <div class="news scroll-left">
                            <p>Never Share Your ATM PIN or Internet Banking Login Details. Your Privacy Matters - Keep Your Financial Information Confidential.</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div id="content-menu" class="m-view-hidden">
        <div class="container">
            <div class="row">
                <div class="col-lg-12 curved">
                    <ul class="content-list">
                        <li><a class="accounts active" href="index.php"><i class="fal fa-university"></i>ACCOUNT BALANCE</a></li>
                        <li><a class="transfers active" href="fundstransfer.php"><i class="fal fa-share-square"></i>FUNDS TRANSFER</a></li>
                        <li><a class="requests active" href="requestcard.php"><i class="fal fa-credit-card"></i>REQUEST CARD</a></li>
                        <li><a class="bills active" href="bills.php"><i class="fal fa-file-invoice-dollar"></i>PAY BILLS</a></li>
                        <li><a class="customers active" href="customercare.php"><i class="fal fa-envelope"></i>CUSTOMER CARE</a></li>
                        <li><a class="golds active" href="buygold.php"><i class="fal fa-shopping-cart"></i>BUY GOLD & SILVER</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <a id="menu-toggle" href="#" class="btn btn-primary btn-lg toggle m-view"><i class="fas fa-bars"></i>MENU TOGGLE</a>
<div id="sidebar-wrapper">
  <ul class="sidebar-nav">
      <div class="toggle-holder">
          <a id="menu-close" href="#" class="btn btn-default btn-lg pull-right toggle"><i class="fas fa-bars"></i></a>
      </div>
    
    <li>
      <a href="index.php">Account Balance</a>
    </li>
    <li>
      <a href="fundstransfer.php">Funds Transfer</a>
    </li>
    <li>
      <a href="requestcard.php">Request card</a>
    </li>
    <li>
      <a href="bills.php">Pay Bills</a>
    </li>
    <li>
      <a href="customercare.php">Customer Care</a>
    </li>
    <li>
      <a href="buygold.php">Buy Gold & Silver</a>
    </li>
  </ul>
</div>
<?php
mysqli_free_result($customer);
?>