-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtrack.php
75 lines (67 loc) · 2.19 KB
/
track.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
<?php
include('functions.php');
include('config.php');
$link = connectToDB();
$result = mysqli_query($link, "select name from track");
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=${project.encoding}">
<style>
ul
{
list-style-type:none;
margin:0;
padding:0;
overflow:hidden;
}
li
{
float:left;
}
#list a:link,a:visited
{
display:block;
width:180px;
font-weight:bold;
color:#FFFFFF;
background-color:red;
text-align:center;
padding:4px;
text-decoration:none;
text-transform:uppercase;
}
#list a:hover,a:active
{
background-color:rosybrown;
}
</style>
</head>
<body>
<a href="admin.php"><img src="logo.jpg" height="80px" weidth="80px"></a>
<div id="list" align="center">
<ul>
<li><a href="adminaddinstructor.php" >Instructor</a></li>
<li><a href="course.php">Course</a></li>
<li><a href="track.php">Track</a></li>
<li><a href="students.php">Students</a></li>
<li><a href="evaluation.php">Evaluation</a></li>
<li><a href="intake.php">Intake</a></li>
</ul><br>
<div align="left">
Track <br>
<form method="post" action="">
Name <select name="name">
<?php
while ($row = mysqli_fetch_assoc($result)) {
echo "<option>{$row['name']}</option>";
}
?>
</select><br>
<input type="submit" value="add/edit"> <input type="button" name="delete" value="delete">
</form>
</div>
</div>
</body>
</html>