-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin_links.html
250 lines (236 loc) · 12.5 KB
/
admin_links.html
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
238
239
240
241
242
243
244
245
246
247
248
249
250
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Student Management</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="./css/adminlinks.css">
<link rel="stylesheet" href="./css/navbarstyle.css">
<script>
window.onload = function() {
function showMessage(param, bgColor) {
var errorMessage = getParameterByName(param);
if (errorMessage) {
var errorElement = document.getElementById('success');
errorElement.innerText = errorMessage;
errorElement.style.color = 'white';
errorElement.style.fontSize = '20px';
errorElement.style.backgroundColor = bgColor;
errorElement.style.margin = '2.5rem';
errorElement.style.padding = '0.1em 1em 0.1em 1em';
errorElement.style.height = '2em'; // Adjust the height as needed
errorElement.style.width = '100px'; // Adjust the width as needed
errorElement.style.boxShadow = '0.1em 0.1em 0.2em 0.2em rgba(0, 0, 0, 1)'; // Adjust shadow values as needed
errorElement.style.transition = 'height 0.3s linear, opacity 0.';
setTimeout(function() {
errorElement.style.height = '0';
errorElement.style.opacity = '0';
setTimeout(function() {
errorElement.style.display = 'none';
}, 500)
}, 2500);
}
}
function getParameterByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
showMessage('msg', 'green');
showMessage('error', 'red');
}
</script>
</head>
<body>
<div class="container">
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">Admin Panel</a>
</div>
<div class="navbar-right">
<a href="./php/logout.php" class="btn btn-danger navbar-btn">Logout</a>
</div>
</div>
</nav>
<div class="row">
<div class="col-lg-3"></div>
<div class="col-lg-6"><span id="success"></span></div>
<div class="col-lg-3"></div>
</div>
<div class="row">
<div class="col-lg-4 col">
<div class="card">
<div class="card-body text-center">
<div class="row">
<img src="images/upload.png" alt="">
</div>
<div class="row">
<h5 class="card-title">Upload Details</h5>
<p class="card-text">Click to upload student details.</p>
</div>
<div class="row">
<a href="./file.html" class="btn btn-primary btn-block">Upload</a>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col">
<div class="card">
<div class="card-body text-center">
<div class="row">
<img src="images/information-sign-512x512-1214334.png" alt="">
</div>
<div class="row">
<h5 class="card-title">Student Info</h5>
<p class="card-text">Get information about a specific student.</p>
</div>
<div class="row">
<a href="./php/admin_student.php" class="btn btn-primary btn-block">Get Info</a>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col">
<div class="card">
<div class="card-body text-center">
<div class="row">
<img src="images/view.png" alt="">
</div>
<div class="row">
<h5 class="card-title">View Data</h5>
<p class="card-text">View and manage student data.</p>
</div>
<div class="row">
<a href="./excel/" class="btn btn-primary btn-block">View</a>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col">
<div class="card">
<div class="card-body text-center">
<div class="row">
<img src="images/updatepayment.png" alt="">
</div>
<div class="row">
<h5 class="card-title">Update Payment</h5>
<p class="card-text">Update payment details of student</p>
</div>
<div class="row">
<button data-toggle="modal" data-target="#myModal" class="btn btn-primary btn-block">Update </button>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col">
<div class="card">
<div class="card-body text-center">
<div class="row">
<img src="images/history.png" alt="">
</div>
<div class="row">
<h5 class="card-title">Check History</h5>
<p class="card-text">Payment Details of a particular Student</p>
</div>
<div class="row">
<a href="./php/history.php" class="btn btn-primary btn-block">Check</a>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col">
<div class="card">
<div class="card-body text-center">
<div class="row">
<img src="images/admin.png" alt="">
</div>
<div class="row">
<h5 class="card-title">Add Admin</h5>
<p class="card-text">Adding new Admin</p>
</div>
<div class="row">
<button data-toggle="modal" data-target="#myModal2" class="btn btn-primary btn-block">Update </button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h2 class="modal-title text-center">Payment Form</h2>
</div>
<div class="modal-body">
<form action="./php/process_payment.php" method="post" class=" form-group">
<!-- Your form fields go here -->
<label for="admission_number">Admission Number:</label>
<input class="form-control" type="text" name="admission_number" required><br>
<label for="name">Name:</label>
<input class="form-control" type="text" name="name" required><br>
<label for="amount_paid">Amount Paid:</label>
<input class="form-control" type="text" name="amount_paid" required><br>
<label for="utr_number">UTR Number:</label>
<input class="form-control" type="text" pattern="\d{12}" title="Please enter 12 digits." minlength="12" maxlength="12" name="utr_number" required><br>
<label for="date">Date of payment:</label>
<input class="form-control" type="date" name="datepaid" required><br>
<label for="fees_type"> Select Fees Type:</label>
<select name="fees_type" id="fees_type" class="form-control form-group" required>
<option class="form-control" value="Admission_Fees">Admission Fees </option>
<option class="form-control" value="Tution_Fees">Tution Fees</option>
<option class="form-control" value="Special_Fees">Special Fees</option>
<option class="form-control" value="UCS_Fees">UCS Fees</option>
</select>
<div class="col-lg-4"></div>
<div class="col-lg-4">
<button class="btn btn-success btn-block" type="submit" >Submit</button>
</div>
<div class="col-lg-4"></div>
</form>
</div>
</div>
</div>
</div>
<div class="modal fade" id="myModal2" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h2 class="modal-title text-center">Admin Registration</h2>
</div>
<div class="modal-body">
<form action="./php/add_admin.php" method="post" class=" form-group">
<!-- Your form fields go here -->
<label for="username">Username</label>
<input class="form-control" type="text" name="username" required><br>
<label for="password">Password:</label>
<input class="form-control" type="text" name="password" required><br>
<div class="col-lg-4"></div>
<div class="col-lg-4">
<button class="btn btn-success btn-block" type="submit" >Submit</button>
</div>
<div class="col-lg-4"></div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- Bootstrap JS and dependencies (Optional) -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>