-
Notifications
You must be signed in to change notification settings - Fork 0
/
transactions.php
82 lines (78 loc) · 2.85 KB
/
transactions.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
<?php
session_start();
include("functions.php");
include("connection.php");
$user_login_data = check_login($con);
$customer_data = retriever($con);
$customer_fullname = $customer_data['customer_fullname'];
$transaction_data = transcation($con,$customer_fullname );
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Transactions</title>
<link rel="stylesheet" href="http://localhost/onlinebanking/transactions.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css">
</head>
<body>
<div class="container">
<header>
<p class="logo"><a href="home.php">Anonymous Bank</a></p>
<nav class="nav">
<div class="nav-links" id="nav-links">
<ul class="menu">
<li><a href="home.php">Home</a></li>
<li><a href="transactions.php">Transactions</a></li>
<li><a href="payment.php">Make Payment</a></li>
<li><a href="">About</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</div>
</nav>
<div class="icons">
<div class="fas fa-bars" id="menu-btn"></div>
</div>
</header>
<h2 class="title">Transaction <span class="color">History</span></h2>
<div class="table">
<table>
<tr>
<th>Transaction Date</th>
<th>Deposit Amount</th>
<th>Deposited To</th>
</tr>
<?php
while ($rows = $transaction_data->fetch_assoc())
{
?>
<tr>
<td class="data"><?php echo $rows['transaction_date']?></td>
<td class="data">$<?php echo $rows['deposit_amount']?></td>
<td class="data"><?php echo $rows['customer_depositedTo']?></td>
</tr>
<?php
}
?>
</table>
</div>
<div class="cards">
<div class="card">
<a href="https://nbe.gov.et/inter-bank-daily-foreign-exchange-rate-in-usd/" target="_blank"><img src="world-currency-rates-483658563-09879331c7a94e639775474879c61cf0.png" alt="currency"></a>
</div>
<div class="card">
<a href="https://www.marketwatch.com/" target="_blank"><img src="CollinCamerer-ShortSelling-0.2e16d0ba.fill-1600x810-c100.png" alt="stock market"></a>
</div>
<div class="card">
<a href="" target="_blank"></a><img src="Why-do-you-need-savings-and-investment-plans.png" alt="savings">
</div>
</div>
</div>
<script>
let navbar = document.querySelector('.nav');
document.querySelector('#menu-btn').onclick = ()=>{
navbar.classList.toggle('active')
}
</script>
</body>
</html>