-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpendinggendues.php
183 lines (162 loc) · 4.88 KB
/
pendinggendues.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
include("db.php");
if (isset($_POST['search']))
{
$searchTerm = $_POST['search'];
$sql = "SELECT * FROM GenerateFee WHERE depName LIKE '%$searchTerm%'";
}
else
{
$sql = "SELECT * FROM GenerateFee";
}
$result = $conn->query($sql);
if ($result->num_rows > 0) {
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>View page</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-image: url('img/peng.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
.container {
width: 1250px;
margin: 20px auto;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
color: white;
backdrop-filter: blur(10px);
}
h1 {
text-align: center;
}
table {
width: 100%;
border-collapse: collapse;
color: white;
}
table, th, td {
border: 1px solid #ccc;
}
th, td {
padding: 10px;
text-align: center;
}
th {
background-color:yellow;
color: black;
}
.btn-primary{
background-color:blue;
padding: 8px;
padding-bottom: 6px;
padding-top: 18px;
}
.btn-danger{
background-color:red;
padding: 8px;
padding-bottom: 6px;
padding-top: 18px;
margin-left: 10px;
}
.container .header .nav .search {
flex: 3;
display: flex;
justify-content: center;
margin-bottom: 20px;
}
.container .header .nav .search input[type=text] {
border: none;
background: white;
padding: 10px;
width: 50%;
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
.container .header .nav .search button {
width: 40px;
height: 40px;
border: none;
display: flex;
align-items: center;
justify-content: center;
}
.container .header .nav .search button img {
width: 30px;
height: 30px;
}
@media screen and (max-width: 600px) {
.container {
width: 80%;
}
}
</style>
</head>
<body>
<div class="container">
<h1>All Students Pending Fee Records</h1>
<div class="header">
<div class="nav">
<form method="POST">
<div class="search">
<input type="text" placeholder="Search.." name="search">
<button type="submit"><img src="img/search.png" alt=""></button>
</div>
</div>
</div>
<table class="table table-border">
<thead>
<tr>
<th>Serial#</th>
<th>Section Name</th>
<th>Department</th>
<th>Section</th>
<th>Month</th>
<th>Year</th>
<th>Submission Date</th>
<th>Fine</th>
<th>Bank</th>
<th>Account No</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php while ($row = $result->fetch_assoc()) { ?>
<tr>
<td><?php echo $row['id']; ?></td>
<td><?php echo $row['sesName']; ?></td>
<td><?php echo $row['depName']; ?></td>
<td><?php echo $row['secName']; ?></td>
<td><?php echo $row['month']; ?></td>
<td><?php echo $row['year']; ?></td>
<td><?php echo $row['subdate']; ?></td>
<td><?php echo $row['duedate']; ?></td>
<td><?php echo $row['bank']; ?></td>
<td><?php echo $row['accno']; ?></td>
<td>
<a href="gendelete.php?id=<?php echo $row['id']; ?>" class="btn btn-danger">
<img src="img/del.png" alt="">
</a>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</body>
</html>
<?php
} else {
echo '<p>There are no records in the reg table.</p>';
}
$conn->close();
?>