-
Notifications
You must be signed in to change notification settings - Fork 0
/
history.php
80 lines (70 loc) · 2.04 KB
/
history.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
<?php
session_start();
include 'connection.php';
$q="select * from transfer";
$result=mysqli_query($con,$q);
$row_count=mysqli_num_rows($result);
?>
<html>
<head>
<title>Transaction History</title>
<link rel = "stylesheet" type = "text/css" href = "Headerbtn.css">
<style>
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
h1{
font-family: gabriola;
font-size:40px;
}
td, th {
border: 1px solid #dddddd;
text-align: center;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
</head>
<body style="background-image: url('cust.jpg');">
<div align="center" style="top:0px">
<table width="1316" align="center" class = "t">
<tr>
<td style = "text-align:center"> <a href="index.php" target="frame"><button class = "btn2"> Home </button></a></td>
<td style = "text-align:center"><a href="custDetails.php" target="frame"><button class = "btn2">Customers</button></a></td>
<td style = "text-align:center"><a href="selectuser.php" target="frame"><button class = "btn2">Transact</button></a></td>
<td style = "text-align:center"><a href="history.php" target="frame"><button class = "btn2">Transaction History</button></a></td>
</tr>
</table>
</div>
<h1 align=center font-family=gabriola>Transaction History</h1>
<table class="flat-table flat-table-1" align=center style="background-image: url('blue.png');">
<thead>
<th>ID</th>
<th>SENDER NAME</th>
<th>RECIEVER NAME</th>
<th>AMOUNT</th>
</thead>
<tbody>
<tr align = center>
<?php
while($row=mysqli_fetch_array($result)){
?>
<td><?php echo $row["id"]; ?></td>
<td><?php echo $row["senderName"]; ?></td>
<td><?php echo $row["recieverName"]; ?></td>
<td><?php echo $row["Amount"]; ?></td>
<tr align = center>
<?php }
?>
</tr>
</tbody>
</table>
<div>
<img src="cust.jpg" alt="cust" height="120" style="opacity:0.5"><br><br>
</div>
</body>
</html>