-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadminview_course.php
More file actions
110 lines (100 loc) · 3.4 KB
/
adminview_course.php
File metadata and controls
110 lines (100 loc) · 3.4 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
<?php
include("connect.php");
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>adminview_course</title>
<style>
* {
background-color: #000000;
color: #ffffff;
margin-top: 20px;
}
.link {
border: 1px solid #3ff7f1d7;
border-radius: 3px;
padding: 10px 27px;
background-color: #3ff7f1d7;
width: 200px;
height: 30px;
margin-left: 20px;
text-decoration: none;
font-size: 19px;
font-weight: 550;
color: #000000;
}
h2 {
font-family: algerian;
}
.link:hover {
background-color: #0ef9f1;
}
table {
width: 100%;
justify-content: center;
align-items: center;
}
table th {
height: 50px;
font-size: 20px;
width: 45px;
}
table td {
height: 40px;
font-size: 20px;
width: 45px;
}
</style>
</head>
<body>
<div class="form">
<div>
<a class="link" href="media_add.php">Add new Course</a>
</div>
<center>
<h1 style="font-family:algerian;">View Record</h1>
</center>
<table width="100%" border="1" style="border-collapse:collapse;">
<thead>
<tr>
<th><strong>S No.</strong></th>
<th><strong>course_id</strong></th>
<th><strong>course_name</strong></th>
<th><strong>course_type</strong></th>
<th><strong>duration</strong></th>
<th><strong>intake</strong></th>
<th><strong>eligibility</strong></th>
<th><strong>Edit</strong></th>
<th><strong>Delete</strong></th>
</tr>
</thead>
<tbody>
<?php
$count = 1;
$sel_query = "Select * from courses ORDER BY course_id asc;";
$result = mysqli_query($con, $sel_query);
while ($row = mysqli_fetch_assoc($result)) { ?>
<tr>
<td align="center"><?php echo $count; ?></td>
<td align="center"><?php echo $row["course_id"]; ?></td>
<td align="center"><?php echo $row["course_name"]; ?></td>
<td align="center"><?php echo $row["course_type"]; ?></td>
<td align="center"><?php echo $row["duration"]; ?></td>
<td align="center"><?php echo $row["intake"]; ?></td>
<td align="center"><?php echo $row["eligibility"]; ?></td>
<td align="center">
<a href="edit_course.php?course_id=<?php echo $row["course_id"]; ?>">Edit</a>
</td>
<td align="center">
<a href="delete_course.php?course_id=<?php echo $row["course_id"]; ?>">Delete</a>
</td>
</tr>
<?php $count++;
} ?>
</tbody>
</table>
</div>
</body>
</html>