-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresult_table.php
More file actions
147 lines (127 loc) · 4.91 KB
/
result_table.php
File metadata and controls
147 lines (127 loc) · 4.91 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
<?php
include 'config.php';
echo $data= "SELECT admission.first_name, admission.last_name, admission.email, result.percentage, admission.course, result.passorfail, result.subject1, result.subject2, result.subject3, result.subject4, result.practical, result.grade FROM admission INNER JOIN result ON admission.reg_no = result.reg_no";
$var= mysqli_query($db,$data);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Regal Admin</title>
<!-- base:css -->
<link rel="stylesheet" href="vendors/mdi/css/materialdesignicons.min.css">
<link rel="stylesheet" href="vendors/feather/feather.css">
<link rel="stylesheet" href="vendors/base/vendor.bundle.base.css">
<!-- endinject -->
<!-- inject:css -->
<link rel="stylesheet" href="css/style.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<!-- endinject -->
<link rel="shortcut icon" href="images/favicon.png" />
<style>
table {
margin: 0 auto;
font-size: large;
border: 1px solid black;
}
h1 {
text-align: center;
color: #006600;
font-size: xx-large;
font-family: 'Gill Sans', 'Gill Sans MT',
' Calibri', 'Trebuchet MS', 'sans-serif';
}
td {
background-color: #E4F5D4;
border: 1px solid black;
}
th,
td {
font-weight: bold;
border: 1px solid black;
padding: 10px;
text-align: center;
}
td {
font-weight: lighter;
}
</style>
</head>
<body>
<div class="container-scroller">
<!-- partial:../../partials/_navbar.html -->
<?php include 'header.php'; ?>
<!-- partial -->
<div class="container-fluid page-body-wrapper">
<!-- partial:../../partials/_sidebar.html -->
<?php include 'sidebar.php'; ?>
<!-- partial -->
<div class="main-panel">
<h1>EMPLOYEE DETAILS</h1>
<table>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Email</th>
<th>Percentage</th>
<th>Course</th>
<th>Pass/Fail</th>
<th>Subject 1</th>
<th>Subject 2</th>
<th>Subject 3</th>
<th>Subject 4</th>
<th>Practicle</th>
<th>Grade</th>
<th>Action</th>
</tr>
<?php
while($rows = mysqli_fetch_array($var))
{
?>
<tr>
<td><?php echo $rows['first_name'];?></td>
<td><?php echo $rows['last_name'];?></td>
<td><?php echo $rows['email'];?></td>
<td><?php echo $rows['percentage'];?></td>
<td><?php echo $rows['course'];?></td>
<td><?php echo $rows['passorfail'];?></td>
<td><?php echo $rows['subject1'];?></td>
<td><?php echo $rows['subject2'];?></td>
<td><?php echo $rows['subject3'];?></td>
<td><?php echo $rows['subject4'];?></td>
<td><?php echo $rows['practical'];?></td>
<td><?php echo $rows['grade'];?></td>
<td><a href="result_form.php?id=<?php echo $rows['id'];?>">Edit</a></td>
</tr>
<?php
}
?>
</table>
<!-- content-wrapper ends -->
<!-- partial:../../partials/_footer.html -->
<!-- partial -->
</div>
<!-- main-panel ends -->
</div>
<!-- page-body-wrapper ends -->
</div>
<!-- container-scroller -->
<!-- base:js -->
<script src="vendors/base/vendor.bundle.base.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script>
<!-- endinject -->
<!-- Plugin js for this page-->
<!-- End plugin js for this page-->
<!-- inject:js -->
<script src="js/off-canvas.js"></script>
<script src="js/hoverable-collapse.js"></script>
<script src="js/template.js"></script>
<!-- endinject -->
<!-- plugin js for this page -->
<!-- End plugin js for this page -->
<!-- Custom js for this page-->
<!-- End custom js for this page-->
</body>
</html>