-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanage_teacher.php
181 lines (137 loc) · 6.06 KB
/
manage_teacher.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>manage_teacher</title>
<!-- Favicon-->
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
<script src="https://cdn.ckeditor.com/4.20.0/standard/ckeditor.js"></script>
<!-- Core theme CSS (includes Bootstrap)-->
<link href="css/bootstrap.css" rel="stylesheet" />
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="css/jquery-ui.css">
</head>
<body>
<div class="container">
<?php
include "navbar.php";
?>
<!-- end nav content-->
<div class="container d-flex justify-content-center">
<div class="col-12 shadow-lg p-3 m-4 d-flex justify-content-end">
<div class="btn btn-warning rounded-0 " data-bs-toggle="modal" data-bs-target="#exampleModal">invite
techer</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade rounded-0" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="exampleModalLabel">Send invite </h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form>
<div class="mb-3">
<label for="exampleInputEmail1" class="form-label">username</label>
<input type="text" class="form-control rounded-0" id="un" aria-describedby="emailHelp">
</div>
<div class="mb-3">
<label for="exampleInputEmail1" class="form-label">password</label>
<input type="password" class="form-control rounded-0" id="pwd"
aria-describedby="emailHelp">
</div>
<div class="mb-3">
<label for="exampleInputEmail1" class="form-label">Email address</label>
<input type="email" class="form-control rounded-0" id="email"
aria-describedby="emailHelp">
<div id="emailHelp" class="form-text">We'll never share your email with anyone else.
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary rounded-0" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary rounded-0" onclick="sendmail();">send mail</button>
</div>
</div>
</div>
</div>
<div class="col-12 shadow-lg">
<div id="tabs">
<ul class=" p-2">
<li class=" shadow-lg rounded-0 border-0 text-light text-center fw-bold"><a
href="#tabs-1">Assigments</a></li>
<li class=" shadow-lg rounded-0 border-0 text-light text-center fw-bold"><a href="#tabs-2">Lecture
notes</a></li>
<li class=" shadow-lg rounded-0 border-0 text-light text-center fw-bold"><a
href="#tabs-3">results</a></li>
</ul>
<div id="tabs-1">
<input id="myInput" type="text" class="input-group mb-3 col-4" placeholder="Search..">
<h3>list of teacher</h3>
<table class="table">
<tr>
</tr>
</table>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Teacher Name</th>
<th>email</th>
</tr>
</thead>
<tbody id="myTable">
<tr>
<?php
require "Database.php";
$rs = Database::search("SELECT * FROM `academic`");
$n = $rs->num_rows;
for ($x = 0; $x < $n; $x++) {
$d = $rs->fetch_assoc();
?>
<td><?php echo $d["id"]; ?></td>
<td><?php echo $d["username"]; ?></td>
<td><?php echo $d["email"]; ?></td>
</tr>
<?php
}
?>
</tr>
</tbody>
</table>
</div>
<div id="tabs-2">
</div>
<div id="tabs-3">
</div>
</div>
</div>
</div>
</div>
<script src="js/script.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/bootstrap.bundle.js"></script>
<script src="js/external/jquery/jquery.js"></script>
<script src="js/jquery-ui.js"></script>
<script>
$("#tabs").tabs();
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script>
$(document).ready(function () {
$("#myInput").on("keyup", function () {
var value = $(this).val().toLowerCase();
$("#myTable tr").filter(function () {
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
});
});
});
</script>
</body>
</html>