-
Notifications
You must be signed in to change notification settings - Fork 1
/
home.php
66 lines (58 loc) · 2.17 KB
/
home.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
<?php
require 'session_validator.php';
require_once 'conn.php';
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<?php include "stylesheet.php";?>
<style type="text/css">
table.dataTable thead .sorting:after,
table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_asc_disabled:before,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc_disabled:after,
table.dataTable thead .sorting_desc_disabled:before {
bottom: .5em;
}
</style>
<title>S-Hub | Welcome</title>
</head>
<body>
<?php
include_once "nav_admin.php";
?>
<div class="container"> <!-- bootstrap container start -->
<div class="card p-4 mb-4">
<div class="row"> <!-- bootstrap container row -->
<div class="col">
<h4 class="card-title text-center ">Welecome <?= ucfirst($_SESSION['username']) ?></h4>
<?php
if($_SESSION['status'] == 'admin'){ /// this instruction only for admin
?>
<p class="note note-primary">As an admin you can add new admin/ teacher or delete them .you can later change the role of admin in Add admin button.</p>
<p class="note note-secondary">You can change your admin password and username.<p>
<?php
}else{ /// this instruction only for teacher
?>
<p class="note note-primary">As a teacher you can change your password and username.<p>
<?php
}
?>
<p class="note note-secondary">You can register a new student and later update student details in the student tab. you can view student assignment which is upload by the student.</p>
<p class="note note-primary">You can upload new study material for the student in the study material tab or view material uploaded by other admin or teacher.</p>
</div>
</div> <!-- bootstrap container row end -->
</div>
</div> <!-- bootstrap container end -->
<?php include "script.php";?>
</body>
</html>