-
Notifications
You must be signed in to change notification settings - Fork 0
/
add-course.php
69 lines (57 loc) · 1.88 KB
/
add-course.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
<?php
session_start();
if (isset($_SESSION['email']))
{ ?>
<?php
// NI 08-06-2021 begin
// include $_SERVER['DOCUMENT_ROOT'] . "/Aspire2_Industry_Project/includes/database.php";
require_once 'config.php';
// NI 08-06-2021 end
?>
<!doctype html>
<html lang="en">
<head>
<?php include('includes/head.php'); ?>
</head>
<body>
<?php
if ($_SESSION['role'] == '2')
{ ?>
<div class="d-flex" id="wrapper">
<!-- Sidebar -->
<?php $page = 'add-course'; include('includes/sidebar.php'); ?>
<!-- Sidebar END -->
<div id="page-content-wrapper">
<!-- Top Navbar -->
<?php $page = 'add-course'; include('includes/nav.php'); ?>
<!-- Top Navbar END -->
<!-- Content -->
<div class="container-fluid ">
<div class="row d-flex g-3 my-2 px-3 content-bg justify-content-center ">
<div class="col-md-4 px-3 py-3">
<!-- NI 12-07-2021 begin -->
<h5><i class="fas fa-circle ui-text px-2 fs-6 "></i>Add</h5>
<?php include('courseform.php'); ?>
<!-- NI 12-07-2021 end -->
</div>
<div class="col-md-8 px-4 py-3">
<?php include('courseslist.php'); ?>
</div>
</div>
</div>
<!-- Content END -->
</div>
</div>
<!-- Sidebar JS -->
<script type = "text/javascript" src="js/sidebar.js"></script>
<!-- Bootstrap Bundle -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
<?php } ?>
</body>
<!-- <script src="js/add_course.js"></script> -->
</html>
<?php } else {
header("location: signin.php");
} ?>