-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadmin-courses.html
394 lines (358 loc) · 18.5 KB
/
admin-courses.html
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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
<!-- This is the SOAP page to add an instructor, view instructors, edit masterclasses and delete instructors. -->
<!-- The School of Advanced Programming (SOAP) is a platform that provides a wide range of courses for students to learn and enhance their skills. The platform offers military grade courses in various ICT fields such as Web Development, Software Engineering Software Applications and Graphics Design. SOAP aims to provide high-quality education to students and help them achieve their career goals.
It also povides training services to colleges on select ICT courses and also provides consultancy services to colleges on ICT related issues.
It also provides a platform for lecturers to request for assignment and thei students to access and submit them. -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>SOAP - Admin</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="School of Advanced Programming (SOAP) is a platform that provides a wide range of courses for students to learn and enhance their skills." name="description">
<meta content="School of Advanced Programming, SOAP, School of Advanced Programming (SOAP), SOAP Kenya, Programming , SOAP Online, SOAP Courses, Computer Science, SOAP Colleges, SOAP Instructors, SOAP Team, SOAP Testimonials, Quickbooks instructor, SOAP 404, Web Development, Graphics Design" name="keywords">
<!-- Favicon -->
<link href="img/favicon.png" rel="icon">
<!-- Google Web Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600&family=Nunito:wght@600;700;800&display=swap" rel="stylesheet">
<!-- Icon Font Stylesheet -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" rel="stylesheet">
<!-- Libraries Stylesheet -->
<link href="lib/animate/animate.min.css" rel="stylesheet">
<link href="lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
<!-- Customized Bootstrap Stylesheet -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Template Stylesheet -->
<link href="css/style.css" rel="stylesheet">
<script src="data.js" defer></script>
<script src="admin-courses.js" defer></script>
</head>
<body>
<!-- Spinner Start -->
<div id="spinner" class="show bg-white position-fixed translate-middle w-100 vh-100 top-50 start-50 d-flex align-items-center justify-content-center">
<div class="spinner-border text-primary" style="width: 3rem; height: 3rem;" role="status">
<span class="sr-only">S.0.A.P</span>
</div>
</div>
<!-- Spinner End -->
<!-- Navbar Start -->
<nav class="navbar navbar-expand-lg bg-white navbar-light shadow sticky-top p-0">
<a href="index.html" class="navbar-brand d-flex align-items-center px-4 px-lg-5">
<h2 class="m-0 text-primary">
<!--</a></a> code icon -->
<i class="bi bi-code-slash"></i>
SOAP</h2>
<h5 class="m-0 text-primary">Admin Panel</h5>
</a>
<button type="button" class="navbar-toggler me-4" data-bs-toggle="collapse" data-bs-target="#navbarCollapse">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav mx-auto pt-3 pt-lg-0">
<li class="nav-item">
<a href="index.html" class="nav-link">Home</a>
</li>
<li class="nav-item">
<a href="courses.html" class="nav-link">Courses</a>
</li>
<li class="nav-item">
<a href="about.html" class="nav-link">About</a>
</li>
<li class="nav-item">
<a href="contact.html" class="nav-link">Contact</a>
</li>
<li class="nav-item">
<a href="login.html" class="nav-link">Login</a>
</li>
</ul>
</div>
</nav>
<!-- Navbar End -->
<!-- Add course start -->
<div class="container-fluid bg-light py-5">
<div class="container py-5">
<div class="row">
<div class="col-lg-3">
<div class="list-group shadow">
<a href="admin.html" class="list-group-item list-group-item-action">Dashboard</a>
<a href="admin-courses.html" class="list-group-item list-group-item-action active">Courses</a>
<a href="admin-masterclass.html" class="list-group-item list-group-item-action">Masterclasses</a>
<a href="admin-instructors.html" class="list-group-item list-group-item-action">Instructors</a>
<a href="admin-students.html" class="list-group-item list-group-item-action">Students</a>
<a href="admin-assignments.html" class="list-group-item list-group-item-action">Assignments</a>
<a href="admin-feedback.html" class="list-group-item list-group-item-action">Feedback</a>
<a href="admin-settings.html" class="list-group-item list-group-item-action">Settings</a>
<a href="admin-project-development.html" class="list-group-item list-group-item-action">Projects</a>
</div>
</div>
<div class="col-lg-9">
<h2 class="fw-bold mb-4">Add Course</h2>
<form id="add-course-form" class="row g-3">
<div class="col-12">
<label for="title" class="form-label">Title</label>
<input type="text" class="form-control" id="title" name="title" required>
</div>
<div class="col-12">
<label for="description" class="form-label">Description</label>
<textarea class="form-control" id="description" name="description" required></textarea>
</div>
<div class="col-12">
<label for="instructor" class="form-label">Instructor</label>
<select class="form-select" id="instructor" name="instructor" required>
<!-- Dynamically populated -->
</select>
</div>
<div class="col-12">
<label for="price" class="form-label">Price</label>
<input type="number" class="form-control" id="price" name="price" required>
</div>
<div class="col-12">
<label for="image" class="form-label">Image</label>
<input type="text" class="form-control" id="image" name="image" required>
</div>
<div class="col-12">
<label for="duration" class="form-label">Duration</label>
<input type="text" class="form-control" id="duration" name="duration" required>
</div>
<div class="col-12">
<label for="level" class="form-label">Level</label>
<input type="text" class="form-control" id="level" name="level" required>
</div>
<div class="col-12">
<label for="category" class="form-label">Category</label>
<input type="text" class="form-control" id="category" name="category" required>
</div>
<div class="col-12">
<label for="topics" class="form-label">Topics</label>
<textarea class="form-control" id="topics" name="topics" required></textarea>
</div>
<div class="col-12">
<button type="submit" class="btn btn-primary">Add Course</button>
</div>
</form>
</div>
</div>
<div id="course-code" class="mt-5">
<h2 class="fw-bold mb-4">Course Code</h2>
<pre class="bg-dark text-light p-3 rounded">
{
id: 0,
title: "Sample Course",
description: "Sample Description",
instructorId: 0,
instructor: "Sample Instructor",
price: 0,
image: "img/sample.jpg",
duration: "0 months",
level: "Beginner",
category: "Sample Category",
topics: [
{
title: "Sample Topic",
subtopics: ["Sample Subtopic 1", "Sample Subtopic 2"]
}
]
}
</pre>
<button id="copy-course-code" class="btn btn-primary">Copy Code</button>
</div>
</div>
<div class="container-fluid row">
<div class="container py-5">
<div data-fillout-id="iyjAFxoSSAus" data-fillout-embed-type="popup" data-fillout-button-text="Add Course" data-fillout-dynamic-resize data-fillout-button-color="#729BDD" data-fillout-inherit-parameters data-fillout-popup-size="medium"></div><script src="https://server.fillout.com/embed/v1/"></script>
</div>
</div>
</div>
<!-- Add course end -->
<!-- view all courses in a table
{
id: 1,
title: "Web Development",
description: "This course is designed to give students a foundational understanding of web development. Students will learn the basics of HTML, CSS, and JavaScript.",
instructorId: instructors[5].id,
instructor: instructors[5].name,
price: 10000,
image: "img/course-web-design.jpg",
duration: "3 months",
level: "Beginner",
students: 27,
rating: 5,
category: "webDevelopment",
isForColleges: true,
isOngoing: true,
topics: [
{
title: "HTML",
subtopics: ["Elements", "Attributes", "Tags"]
},
{
title: "CSS",
subtopics: ["Selectors", "Properties", "Values"]
},
{
title: "JavaScript",
subtopics: ["Variables", "Functions", "Loops"]
}
]
}
All columns except the topics should be displayed in the table. The topics should be displayed in a modal when the course is clicked. -->
<!-- View Courses Start -->
<div class="container-fluid bg-light py-5">
<div class="container py-5">
<h2 class="fw-bold mb-4">View Courses</h2>
<div class="table-responsive">
<table class="table table-bordered table-hover">
<thead>
<tr>
<th>ID</th>
<th>Title</th>
<th>Instructor</th>
<th>Price</th>
<th>Duration</th>
<th>Level</th>
<th>Students</th>
<th>Rating</th>
<th>Category</th>
<th>For Colleges</th>
<th>Ongoing</th>
</tr>
</thead>
<tbody id="viewAllCourses">
<tr>
<td>1</td>
<td>Web Development</td>
<td>L Munyaka</td>
<td>10000</td>
<td>3 months</td>
<td>Beginner</td>
<td>27</td>
<td>5</td>
<td>Web Development</td>
<td>Yes</td>
<td>Yes</td>
</tr>
<tr>
<td>2</td>
<td>Software Engineering</td>
<td>J Doe</td>
<td>15000</td>
<td>6 months</td>
<td>Intermediate</td>
<td>15</td>
<td>4</td>
<td>Software Engineering</td>
<td>No</td>
<td>No</td>
</tr>
<tr>
<td>3</td>
<td>Software Applications</td>
<td>K Smith</td>
<td>12000</td>
<td>4 months</td>
<td>Advanced</td>
<td>20</td>
<td>4.5</td>
<td>Software Applications</td>
<td>Yes</td>
<td>Yes</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- View Courses End -->
<!--footer start-->
<div class="container-fluid bg-dark text-light footer pt-5 mt-5 wow fadeIn" data-wow-delay="0.1s">
<div class="container py-5">
<div class="row g-5">
<div class="col-lg-3 col-md-6">
<h4 class="text-white mb-3">Quick Link</h4>
<a class="btn btn-link" href="">About Us</a>
<a class="btn btn-link" href="">Contact Us</a>
<a class="btn btn-link" href="">Privacy Policy</a>
<a class="btn btn-link" href="">Terms & Condition</a>
<a class="btn btn-link" href="">FAQs & Help</a>
</div>
<div class="col-lg-3 col-md-6">
<h4 class="text-white mb-3">Contact</h4>
<p class="mb-2"><i class="fa fa-map-marker-alt me-3"></i>Tumaini, Ongata Rongai, Kenya</p>
<p class="mb-2"><i class="fa fa-phone-alt me-3"></i>+254762303141</p>
<p class="mb-2"><i class="fa fa-envelope me-3"></i>[email protected]</p>
<div class="d-flex pt-2">
<a class="btn btn-outline-light btn-social" href=""><i class="fab fa-twitter"></i></a>
<a class="btn btn-outline-light btn-social" href=""><i class="fab fa-facebook-f"></i></a>
<a class="btn btn-outline-light btn-social" href=""><i class="fab fa-youtube"></i></a>
<a class="btn btn-outline-light btn-social" href=""><i class="fab fa-linkedin-in"></i></a>
</div>
</div>
<div class="col-lg-3 col-md-6">
<h4 class="text-white mb-3">Advanced</h4>
<div class="row g-2 pt-2">
<div class="col-4">
<img class="img-fluid bg-light p-1" src="img/course-artificial-intelligence.jpg" alt="">
</div>
<div class="col-4">
<img class="img-fluid bg-light p-1" src="img/course-databases.jpg" alt="">
</div>
<div class="col-4">
<img class="img-fluid bg-light p-1" src="img/course-backend.jpg" alt="">
</div>
<div class="col-4">
<img class="img-fluid bg-light p-1" src="img/course-cyber-security.jpg" alt="">
</div>
<div class="col-4">
<img class="img-fluid bg-light p-1" src="img/course-graphics-design.jpg" alt="">
</div>
<div class="col-4">
<img class="img-fluid bg-light p-1" src="img/course-gis.jpg" alt="">
</div>
</div>
</div>
<div class="col-lg-3 col-md-6">
<h4 class="text-white mb-3">Newsletter</h4>
<p>Get notified about offers, new courses and more.</p>
<div class="position-relative mx-auto" style="max-width: 400px;">
<input class="form-control border-0 w-100 py-3 ps-4 pe-5" type="text" placeholder="Your email">
<button type="button" class="btn btn-primary py-2 position-absolute top-0 end-0 mt-2 me-2">SignUp</button>
</div>
</div>
</div>
</div>
<div class="container">
<div class="copyright">
<div class="row">
<div class="col-md-6 text-center text-md-start mb-3 mb-md-0">
© <a class="border-bottom" href="#">School of Advanced Programming</a>, All Right Reserved.
<!--/*** This template is free as long as you keep the footer author’s credit link/attribution link/backlink. If you'd like to use the template without the footer author’s credit link/attribution link/backlink, you can purchase the Credit Removal License from "https://htmlcodex.com/credit-removal". Thank you for your support. ***/-->
More like this <a class="border-bottom" href="https://htmlcodex.com">HTML Codex</a><br><br>
</div>
<div class="col-md-6 text-center text-md-end">
<div class="footer-menu">
<a href="">Home</a>
<a href="">Cookies</a>
<a href="">Help</a>
<a href="">FQAs</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer End -->
<!-- Back to Top -->
<a href="#" class="btn btn-lg btn-primary btn-lg-square back-to-top"><i class="bi bi-arrow-up"></i></a>
<!-- JavaScript Libraries -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="lib/wow/wow.min.js"></script>
<script src="lib/easing/easing.min.js"></script>
<script src="lib/waypoints/waypoints.min.js"></script>
<script src="lib/owlcarousel/owl.carousel.min.js"></script>
<!-- Template Javascript -->
<script src="js/main.js"></script>
</body>
</html>