-
Notifications
You must be signed in to change notification settings - Fork 5
/
customer.php
97 lines (96 loc) · 4.58 KB
/
customer.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
<?php
session_start();
require_once('class.user.php');
$reg_user = new user();
$customerID = $_SESSION['customerSession'];
$stmt = $reg_user->runQuery("SELECT * FROM customer WHERE customerID=:cid");
$stmt->execute(array(":cid"=>$customerID));
$customerRow=$stmt->fetch(PDO::FETCH_ASSOC);
$stmt = $reg_user->runQuery("SELECT * FROM accounts WHERE customerID=:cid");
$stmt->execute(array(":cid"=>$customerID));
$accountRow=$stmt->fetch(PDO::FETCH_ASSOC);
?>
<!DOCTYPE html>
<html>
<head>
<title>The World Bank</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="shortcut icon" href="images/icon.png">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div class="container" id="wrapper">
<div id="white"></div>
<header>
<div class="row">
<div class="col-sm-3 col-md-3 col-lg-3 hidden-xs">
<a href="index.php"><img id="logo" src="images/logo.png" alt="The World Bank Logo" class="img-responsive img-rounded"></a>
</div>
<!--<div class="col-sm-9 col-md-9 col-lg-9">
<h1 style="float: right;color: lightblue">World Bank</h1>
</div>-->
</div>
</header>
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<nav class="navbar navbar-default">
<div class="navbar-header hidden-sm hidden-md hidden-lg">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#my_navbar">
<span class="sr-only">Toggle Navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html"></a><img id="logo" class="img-responsive img-rounded" src="images/logo.png" alt="The World Bank Logo">
</div>
<div class="collapse navbar-collapse" id="my_navbar" style="height: 0px">
<ul class="nav navbar-nav" id="main_nav">
<li><a href="customer.php" role="button">My Account</a></li>
<li><a href="ministat.php" role="button">Mini Statement</a></li>
<li><a href="moneytransfer.php" role="button">Money Transfer</a></li>
<li><a href="" role="button">Loan Details</a></li>
<li><a href="" role="button">Customize</a></li>
<li><a href="logout.php" role="button">Logout</a></li>
</ul>
</div>
</nav>
</div>
</div>
<section id="content_area_section">
<div class="row features_area">
<div class="col-sm-12 col-md-12 col-lg-12">
<div style="align-content: center;">
<table>
<tr>
<td>Name</td>
<td><?php echo $customerRow['customerName'] ?></td>
</tr>
<tr>
<td>Account no.</td>
<td><?php echo $customerRow['customerAccount'] ?></td>
</tr>
<tr>
<td>Balance</td>
<td><?php echo $accountRow['accountBalance'] ?></td>
</tr>
<tr>
<td>Branch Code</td>
<td><?php echo $customerRow['branchCode'] ?></td>
</tr>
<tr>
<td>Account Type</td>
<td><?php echo $customerRow['accType'] ?></td>
</tr>
</table>
</div>
</div>
</div>
</section>
</div>
<script type="text/javascript" src=""></script>
</body>
</html>