-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcust_main.php
executable file
·183 lines (153 loc) · 6.73 KB
/
cust_main.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<?php
session_start();
if(!isset($_SESSION['accountno']))
{
header('location: cust_login.php');
}
?>
<?php
include('balance.php');
?>
<?php
include('transmain.php');
?>
<?php
include('loan.php');
?>
<?php
include('myprofile.php');
?>
<!DOCTYPE html>
<html>
<head>
<title>online banking</title>
<link rel="icon" type="image/png" href="rupee.png">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css" >
<!-- Optional theme -->
<link rel="stylesheet" href="css/bootstrap-theme.min.css" >
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" type="text/css">
<script src="js/jquery.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="js/bootstrap.min.js"></script>
<style>
.ms
{
font-family: Montserrat,sans-serif;
}
body
{
font-family: Lato,sans-serif;
line-height: 1.375;
}
</style>
</head>
<body>
<div class="container">
<!-- page headers -->
<div class="page-header">
<h1 class="ms"><a href="" onclick = " alert('please logout to go to homepage');" target="_parent">
<img src="rupee.png" sizes="30px,30px"></a>Bank</h1>
</div>
<!-- main page -->
<strong>
<ul class=" nav nav-tabs" align="right">
<li class="active"><a data-toggle="tab" href="#Myaccount">My account</a></li>
<li><a data-toggle="tab" href="#Transferfunds">Transfer funds</a></li>
<li><a data-toggle="tab" href="#LoanDetails">Loan Details</a></li>
<li><a data-toggle="tab" href="#MyProfile">My Profile</a></li>
<form action="logout.php"><input type="submit" align="center" value="Logout" class="btn btn-danger"></form>
</ul>
</strong>
<div class="tab-content">
<div class="col-md-2"></div>
<div id="Myaccount" class="tab-pane fade in active col-md-8" align="center">
<h3 class="ms page-header" style="border-bottom-color: black">My account</h3>
<table class="table">
<thead>
<tr>
<td>Account no.</td>
<td>Balance</td>
<td>ACCOUNT-TYPE</td>
</tr>
</thead>
<tbody>
<tr>
<td><?php echo($account);?></td>
<td><?php echo($flag);?></td>
<td><?php echo($type);?></td>
</tr>
</tbody>
</table>
</div>
<div id="LoanDetails" class="tab-pane fade col-md-8" align="center">
<h3 class="ms page-header" style="border-bottom-color: black">Loan Details</h3>
<table class="table">
<tbody>
<tr>
<td>LOAN-TYPE</td><td><?php echo($loantype);?></td></tr>
<tr><td>LOAN-AMOUNT</td><td><?php echo($loanammount);?></td></tr>
</tbody>
</table>
</div>
<div id="MyProfile" class="tab-pane fade col-md-8" align="center">
<h2 class="ms page-header" style="border-bottom-color: black">My Profile</h2>
<table class="table">
<h4 align="center"> USER DETAILS</h4>
<tbody>
<tr><td>name</td><td><?php echo($name);?></td></tr><tr>
<td>email</td><td><?php echo($email);?></td></tr>
<tr><td>phone no:</td><td><?php echo($phone);?></td></tr> <tr><td>adhar.no</td><td><?php echo($id);?></td></tr>
</tbody>
</table>
<form>
<a href="password.html">changepassword</a>
<br>
<a href="username.html">changeusername</a>
</form>
</div>
<div id="Transferfunds" class="tab-pane fade col-md-8" align="center">
<h3 class="ms page-header" style="border-bottom-color: black">Transfer funds</h3>
<form>
<input type="text" name="beneficiary" placeholder="Beneficiary account" required class="form-control">
<input type="text" name="amount" placeholder="Amount" required class="form-control">
<input type="submit" value="submit" class="btn btn-primary btn-block" formaction="transfer.php" formmethod="post">
</form>
<table class="table">
<h4 align="center"> last 5 transction</h4>
<thead>
<tr>
<td>Account no.</td>
<td>amount</td>
</tr>
</thead>
<tbody>
<tr>
<td><?php echo( $_SESSION['acc1']);?></td>
<td><?php echo( $_SESSION['amm1']);?></td>
</tr>
<tr>
<td><?php echo( $_SESSION['acc2']);?></td>
<td><?php echo( $_SESSION['amm2']);?></td>
</tr>
<tr>
<td><?php echo( $_SESSION['acc3']);?></td>
<td><?php echo( $_SESSION['amm3']);?></td>
</tr>
<tr>
<td><?php echo( $_SESSION['acc4']);?></td>
<td><?php echo( $_SESSION['amm4']);?></td>
</tr>
<tr>
<td><?php echo( $_SESSION['acc5']);?></td>
<td><?php echo( $_SESSION['amm5']);?></td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-2"></div>
</div>
</div>
</body>
</html>