-
Notifications
You must be signed in to change notification settings - Fork 1
/
dividends.php
85 lines (82 loc) · 4.9 KB
/
dividends.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
<!DOCTYPE html>
<html>
<?php
include 'connect.php';
?>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>fedha</title>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/fonts/font-awesome.min.css">
<link rel="stylesheet" href="assets/css/Contact-Form-Clean.css">
<link rel="stylesheet" href="assets/css/Footer-Basic.css">
<link rel="stylesheet" href="assets/css/styles.css">
</head>
<body>
<nav class="navbar navbar-light navbar-expand-md bg-warning">
<div class="container-fluid"><a class="navbar-brand text-monospace" href="index.php" style="font-weight: bold;">FEDHA YOUTH GROUP</a><button data-toggle="collapse" class="navbar-toggler" data-target="#navcol-1"><span class="sr-only">Toggle navigation</span><span class="navbar-toggler-icon"></span></button>
<div
class="collapse navbar-collapse" id="navcol-1">
<ul class="nav navbar-nav text-monospace ml-auto" style="font-weight: bold;">
<li class="nav-item" role="presentation"></li>
<li class="nav-item dropdown"><a class="dropdown-toggle nav-link" data-toggle="dropdown" aria-expanded="false" href="#">Members</a>
<div class="dropdown-menu text-center" role="menu"><a class="dropdown-item" role="presentation" href="add_member.php">Add Member</a><a class="dropdown-item" role="presentation" href="members.php">View Members</a></div>
</li>
<li class="nav-item dropdown"><a class="dropdown-toggle nav-link" data-toggle="dropdown" aria-expanded="false" href="#">Contributions</a>
<div class="dropdown-menu text-center" role="menu"><a class="dropdown-item" role="presentation" href="add_contribution.php">Add Contribution</a><a class="dropdown-item" role="presentation" href="contributions.php">View Contributions</a></div>
</li>
<li class="nav-item dropdown"><a class="dropdown-toggle nav-link" data-toggle="dropdown" aria-expanded="false" href="#">Dividends</a>
<div class="dropdown-menu text-center" role="menu"><a class="dropdown-item" role="presentation" href="add_dividend.php">Add Dividents</a><a class="dropdown-item" role="presentation" href="dividends.php">View Dividends</a></div>
</li>
<li class="nav-item dropdown"><a class="dropdown-toggle nav-link" data-toggle="dropdown" aria-expanded="false" href="#">Loans</a>
<div class="dropdown-menu text-center" role="menu"><a class="dropdown-item" role="presentation" href="add_loan.php">Add Loan</a><a class="dropdown-item" role="presentation" href="loans.php">View Loans</a><a class="dropdown-item" role="presentation" href="loans.php"></a></div>
</li>
</ul>
</div>
</div>
</nav>
<hr>
<div class="container">
<h4 class="text-center">FEDHA YOUTH GROUP SYSTEM</h4>
<p>The table below shows all <strong>DIVIDENDS </strong>done by the group.</p>
<hr>
<div class="table-responsive text-center" style="height: 10cm;font-size: 14px;letter-spacing: 1px;">
<table class="table table-striped table-sm">
<thead style="background-color: #80de54;letter-spacing: 1px;font-size: 14px;">
<tr class="text-monospace">
<th>DividendID</th>
<th>MemberID</th>
<th>PersonalTotal</th>
<th>GroupTotalShares</th>
<th>Dividend</th>
<th>MemberDividend</th>
<th>DateAdded</th>
</tr>
</thead>
<?php
$sql="select * from dividends order by date_added desc;";
$query=mysqli_query($connect,$sql) or die (mysqli_error($connect));
while ($row=mysqli_fetch_assoc($query)){
?>
<tbody>
<tr>
<td><?php echo $row["dividend_id"]; ?></td>
<td><?php echo $row["member_id"]; ?></td>
<td><?php echo $row["personal_total"]; ?></td>
<td><?php echo $row["grouptotalshares"]; ?></td>
<td><?php echo $row["dividends"]; ?></td>
<td><?php echo $row["member_dividends"]; ?></td>
<td><?php echo $row["date_added"]; ?></td>
</tr>
</tbody>
<?php
};
?>
</table>
</div>
</div>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>