-
Notifications
You must be signed in to change notification settings - Fork 0
/
generatefee.php
237 lines (196 loc) · 8.12 KB
/
generatefee.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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-image: url('img/gen.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
.container {
width: 50%;
margin: auto;
overflow: hidden;
}
h2 {
text-align: center;
color: white;
}
form {
padding: 20px;
margin-top: 20px;
border-radius: 5px;
box-shadow: 0px 0px 10px 0px #000000;
backdrop-filter: blur(5px);
color: white;
}
label {
display: block;
font-weight: bold;
margin: 10px 0 5px;
}
input[type="text"],
input[type="date"],
input[type="number"],
select {
width: 100%;
padding: 8px;
margin: 5px 0 15px;
display: inline-block;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 4px;
}
input[type="submit"] {
background-color:black;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
padding: 13px;
padding-left: 270px;
padding-right: 270px;
}
input[type="submit"]:hover {
background-color: red;
}
</style>
<title>Generate Fee</title>
</head>
<body>
<div class="container">
<h2>Student Generate Fee Form</h2>
<form action="geninsert.php" method="post">
<div class="form-group">
<label for="sesName">Session</label>
<select id="sesName" name="sesName" required>
<option value="">Choose Session</option>
<?php
// Connect to your MySQL database
include("db.php");
$sql = "SELECT DISTINCT sesName FROM session";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
while ($row = $result->fetch_assoc()) {
echo "<option value='" . $row['sesName'] . "'>" . $row['sesName'] . "</option>";
}
}
$conn->close();
?>
</select>
</div>
<div class="form-group">
<label for="depName">Department</label>
<select id="depName" name="depName" required>
<option value="">Choose Department</option>
<?php
// Connect to your MySQL database
include("db.php");
$sql = "SELECT DISTINCT depName FROM department";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
while ($row = $result->fetch_assoc()) {
echo "<option value='" . $row['depName'] . "'>" . $row['depName'] . "</option>";
}
}
$conn->close();
?>
</select>
</div>
<div class="form-group">
<label for="secName">Section</label>
<select id="secName" name="secName" required>
<option value="">Choose Section</option>
<?php
// Connect to your MySQL database
include("db.php");
$sql = "SELECT DISTINCT sectionName FROM section";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
while ($row = $result->fetch_assoc()) {
echo "<option value='" . $row['sectionName'] . "'>" . $row['sectionName'] . "</option>";
}
}
$conn->close();
?>
</select>
</div>
<div class="form-group">
<label for="month">Month:</label>
<select id="month" name="month" required>
<option value="">Choose Month</option>
<option value="01">January</option>
<option value="02">February</option>
<option value="03">March</option>
<option value="04">April</option>
<option value="05">May</option>
<option value="06">June</option>
<option value="07">July</option>
<option value="08">August</option>
<option value="09">September</option>
<option value="10">October</option>
<option value="11">November</option>
<option value="12">December</option>
</select>
</div>
<div class="form-group">
<label for="year">Enter Year:</label>
<input type="text" id="year" name="year" placeholder="Hint:2023" required>
</div>
<div class="form-group">
<label for="subdate">Submission Date:</label>
<input type="date" id="subdate" name="subdate" required>
</div>
<div class="form-group">
<label for="duedate">Fine After Due Date:</label>
<input type="text" id="duedate" name="duedate" required>
</div>
<div class="form-group">
<label for="bank">Choose Bank:</label>
<select name="bank" required>
<option value="Choose Bank">Please Choose Bank</option>
<option value="Faysal Bank Limited">Faysal Bank Limited</option>
<option value="Meezan Bank Limited">Meezan Bank Limited</option>
<option value="Bank Alfalah Islamic">Bank Alfalah Islamic</option>
<option value="Habib Bank Limited">Habib Bank Limited</option>
<option value="National Bank of Pakistan">National Bank of Pakistan</option>
<option value="United Bank Limited">United Bank Limited</option>
<option value="Bank of Punjab">Bank of Punjab</option>
<option value="Allied Bank Limited">FAllied Bank Limited</option>
</select>
</div>
<div class="form-group">
<label for="accno">Account Number:</label>
<input type="text" id="accno" name="accno" placeholder="XXXXXXXXXXXXXX" required>
</div>
<div class="form-group">
<label for="semesterFee">Semester Fee:</label>
<input type="number" name="semesterFee" id="semesterFee" required>
</div>
<div class="form-group">
<label for="type">Fee Type</label>
<select name="type" required>
<option value="Choose type">Choose Fee Type</option>
<option value="Library<">Library</option>
<option value="Transport Services">Transport Services</option>
<option value="DMC">DMC</option>
<option value="Certificate">Certificate</option>
<option value="Hostelized">Hostelized</option>
<option value="Tution">Tution</option>
<option value="Examination">Examination</option>
</select>
</div>
<div class="form-group">
<input type="submit" value="Generate Fee">
</div>
</form>
</div>
</body>
</html>