-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsee_student.php
More file actions
238 lines (205 loc) · 5.32 KB
/
see_student.php
File metadata and controls
238 lines (205 loc) · 5.32 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tuition Fee Waiver</title>
<link rel="stylesheet" href="x.css">
<style>
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, sans-serif;
}
html {
font-size: 16px;
-webkit-font-smoothing: antialiased;
}
/* Body Background and General Styling */
body {
background: #2c3e50; /* Purple to Pink Gradient */
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
color: #fff; /* White text to contrast against the gradient */
}
/* Header Section */
header {
background: linear-gradient(135deg, #9b59b6, #e74c3c); /* Abstract purple to pink gradient */
color: white;
padding: 40px 20px;
text-align: center;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Added shadow to header */
}
header h1 {
margin: 0;
font-size: 36px;
}
header h2 {
margin: 0;
font-size: 24px;
}
/* Form Container */
.full {
display: flex;
justify-content: center;
align-items: center;
padding: 40px 0;
}
.login-container {
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow */
padding: 30px;
width: 100%;
max-width: 400px;
text-align: center;
transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added transition for hover effect */
}
.login-container:hover {
transform: translateY(-5px); /* Slight lift effect */
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Deeper shadow on hover */
}
.login-container h2 {
color: #333;
margin-bottom: 20px;
}
form label {
display: block;
margin-bottom: 8px;
font-size: 16px;
color: #333;
}
form input {
width: 100%;
padding: 12px;
margin-bottom: 20px;
border-radius: 8px;
border: 1px solid #ddd;
font-size: 16px;
background-color: #f9f9f9;
box-sizing: border-box;
transition: border-color 0.3s ease, background-color 0.3s ease; /* Added transition */
}
form input:focus {
outline: none;
border-color: #e74c3c; /* Match the header color */
background-color: #fff;
}
form button {
width: 100%;
padding: 12px;
background-color: #e74c3c; /* Use the same theme color */
color: white;
border: none;
border-radius: 8px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease; /* Added transition */
}
form button:hover {
background-color: #c0392b; /* Darker shade for hover */
transform: scale(1.05); /* Slight scale-up effect on hover */
}
/* Students Container */
.students-container {
padding: 40px;
max-width: 1200px;
margin: 0 auto;
}
.student-card {
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 20px;
margin-bottom: 20px;
display: flex;
flex-direction: column;
align-items: center;
transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added transition */
}
.student-card:hover {
transform: translateY(-5px); /* Slight lift effect */
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Deeper shadow on hover */
}
.student-card h3 {
font-size: 20px;
margin-bottom: 15px;
color: #333;
}
.student-info {
font-size: 16px;
margin-bottom: 8px;
color: #555;
}
.student-info span {
font-weight: bold;
}
.no-students {
text-align: center;
font-size: 18px;
color: #888;
}
.error {
text-align: center;
color: red;
font-size: 18px;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
.login-container {
padding: 20px;
}
.students-container {
padding: 20px;
}
}
@media (max-width: 480px) {
.login-container {
padding: 15px;
}
}
</style>
</head>
<body>
<header>
<div class="header-container">
<h1>TEACHWAVE -</h1>
<h2>TUITION POINT</h2>
</div>
</header>
<main>
<div class="students-container">
<?php
// session_start();
include('conn.php');
// Query to select all students
$sql = "SELECT * FROM students";
$res = mysqli_query($conn, $sql);
if ($res) {
// Check if there are any results
if (mysqli_num_rows($res) > 0) {
// Loop through the result set
while ($row = mysqli_fetch_assoc($res)) {
echo '<div class="student-card">';
echo '<h3>' . htmlspecialchars($row['Name']) . '</h3>';
echo '<div class="student-info"><span>Contact:</span> ' . htmlspecialchars($row['Contact']) . '</div>';
echo '<div class="student-info"><span>Email:</span> ' . htmlspecialchars($row['Email']) . '</div>';
echo '<div class="student-info"><span>Username:</span> ' . htmlspecialchars($row['Username']) . '</div>';
echo '</div>';
}
} else {
echo '<div class="no-students">No students found.</div>';
}
} else {
echo '<div class="error">Error executing query: ' . mysqli_error($conn) . '</div>';
}
// Close the database connection
mysqli_close($conn);
?>
</div>
</main>
</body>
</html>