<?php
session_start();
if (!isset($_SESSION['user'])) {
        header("location:../loginfailed.html");
}
include_once("../connect.php");
 
$username= $_SESSION['user'];		  


$result3 = mysqli_query($con, "SELECT * FROM customers WHERE username='$username' LIMIT 1 ");
$row3 = mysqli_fetch_array($result3);
$name=$row3['name'];
$file=$row3['file'];
$file_path = '../Images/';
$file=$file_path.$row3['file'];

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en"><!-- /WEB-INF/jsp/bankcommon/common/includes/id_head.jsp --><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Expires" content="-1"><meta http-equiv="Cache-Control" content="no-cache, no-store, no-transform">
<title>ONLINE BANKING - Santander Bank</title>

<meta http-equiv="content-language" content="en">
<meta name="norton-safeweb-site-verification" content="ntqzgduoymz42-1obaijkb926oymaj1kdfznbo9k87nmtqiyoafqky331h1adjfbieknb316dw0-pmk2tvl50q8r93664ot8y6japs9pcs-54gv6dyok567z9045yklc">

<link rel="stylesheet" href="./index_files/id_main.css" type="text/css">
 <!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">

<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>

<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <!--     Fonts and icons     -->
    <link href="http://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet">
    <link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300|Material+Icons' rel='stylesheet' type='text/css'>
<style type="text/css">
#Layer1 {
	position:absolute;
	width:auto;
	height:588px;
	z-index:1;
	left: 12px;
	top: 162px;
}
#Layer2 {
	position:absolute;
	width:auto;
	height:58px;
	z-index:2;
	left: 90px;
	top: 90px;
}
.style7 {color: #FFFFFF; font-weight: bold; }
.style8 {
	color: #421451;
	font-weight: bold;
}

.style9 {color: #FF0000}
</style>

</head>



<body oncontextmenu="return false;" bgcolor="#ffffff" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">

<a name="top"></a>

<!-- /WEB-INF/jsp/bankcommon/common/includes/nav_top_outside.jsp -->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tbody><tr>
    <td width="950"><table width="950" border="0" cellspacing="0" cellpadding="0">
      <tbody><tr>
        <td width="177" height="125" align="left" valign="top"><table width="177" height="125" border="0" cellpadding="0" cellspacing="0">
            <tbody><tr>
              <td height="18" align="left" valign="top"></td>
            </tr>
            <tr>
              <td height="37" align="right" valign="top">
				<img border="0" src="../logo.png" width="101" height="93"></td>
            </tr>
            <tr>
              <td height="10" align="left" valign="top"></td>
            </tr>
            <tr>
              <td height="60" align="left" valign="top" background="./index_files/bluelong.jpg" class="repX"></td>
            </tr>
        </tbody></table></td>
        <td width="572" align="left" valign="top"><table width="572" border="0" cellspacing="0" cellpadding="0">
          <tbody><tr>
            <td height="65" align="left" valign="top">&nbsp;</td>
          </tr>
          <tr>
            <td height="60" align="left" valign="top" background="./index_files/bluelong.jpg" class="repX">&nbsp;</td>
          </tr>
        </tbody></table></td>
        <td width="201" align="left" valign="top"><table width="201" border="0" cellspacing="0" cellpadding="0">
            <tbody><tr>
              <td height="18" align="left" valign="top"></td>
            </tr>
            <tr>
              <td height="37" align="left" valign="top">&nbsp;</td>
            </tr>
            <tr>
              <td height="10" align="left" valign="top"></td>
            </tr>
            <tr>
              <td height="60" align="left" valign="top" background="./index_files/bluelong.jpg" class="repX"></td>
            </tr>
        </tbody></table></td>
      </tr>
    </tbody></table></td>
    <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tbody><tr>
        <td height="65" align="left" valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td height="60" align="left" valign="top" background="./index_files/bluelong.jpg" class="repX">&nbsp;</td>
      </tr>
    </tbody></table></td>
  </tr>
</tbody></table>
<div align="center" class="style7">LOGIN SUCCESSFUL </div><hr>
<div align="center" >
<div><img src="<?php echo $file; ?>" class="img-circle" width="200" height="200" ></div>
  <h4 class="style8">WELCOME<span class="style9"> <?php echo $name; ?></span></h4>
  <p><a href="./accessingacct.html"><strong>CLICK HERE TO ENTER ACCOUNT PAGE</strong></a><strong> </strong></p>
  <p><a href="./logout/"><strong>LOGOUT</strong></a></p>
  <p>If this is not you, please logout immediately and contact your Account officer. </p>
</div>
<br>
<br>
<br>
<br>
<br>
<br>
<br>

<footer>
<div style="position:fixed;
    bottom:0px;
    left:50%;
	z-index:-1">
<div align="right">
  <img src="index_files/wing.jpg" width="821" height="151"></div>
</div>
</footer>
</body>
</html>