-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
62 lines (61 loc) · 2.18 KB
/
index.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
<?php
session_start();
if($_SESSION == true && isset($_SESSION['loggedin'])){
if(array_key_exists("employeeid",$_SESSION) && array_key_exists("employeename",$_SESSION))
header("location:employee_dts/home.php");
else if(array_key_exists('faculty',$_SESSION) && array_key_exists('school',$_SESSION) && array_key_exists('department',$_SESSION))
header("location: departmental_dts/home.php");
else if(array_key_exists('office_id',$_SESSION))
header("location: office_dts/home.php");
exit;
}
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="style.css">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
<title>SHUATS DTS</title>
</head>
<body>
<div class="background"></div>
<div class="card w-50">
<div class="card-header">
<img src="./ico/shuatslogo.png" alt="Shuats Logo">
</div>
<div class="card-body">
<div class = "row">
<div class = "col-sm">
<a href="./departmental_dts" class="login-column">
<div class="login-button">
<h2>Departmental Login</h2>
</div>
</a>
</div>
</div>
<div class ="row">
<div class = "col-sm-6">
<a href="./employee_dts" class="login-column">
<div class="login-button">
<h2>Employee Login</h2>
</div>
</a>
</div>
<div class = "col-sm-6">
<a href="./office_dts" class="login-column">
<div class="login-button">
<h2>Offices Login</h2>
</div>
</a>
</div>
</div>
</div>
</div>
</body>
</html>