-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
86 lines (72 loc) · 2.96 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>ShiftLeader Handover</title>
<!-- Chrome/android APP settings -->
<meta name="theme-color" content="#4287f5">
<link rel="icon" href="img/icon.png" sizes="192x192">
<!-- end of Chrome/Android App Settings -->
<!-- Bootstrap // you can use hosted CDN here-->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/app.css" rel="stylesheet">
<!-- end of bootstrap -->
</head>
<body class="bg-primary">
<!-- Page Start -->
<div class="pt-5 container bg-white rounded">
<!-- NAV START -->
<nav class="navbar navbar-dark bg-dark rounded">
<a class="navbar-brand" href="index.php">
<img src="img/icon.png" width="30" height="30" class="d-inline-block align-top bg-white rounded"
alt="Logo">
ShiftLeader Handover
</a>
</nav>
<!-- NAV END -->
<section>
<div class="row bg-white">
<div class="col-12 bg-white text-center">
<div class="bg-dark p-1 my-1 rounded" style="margin: auto;">
<img src="img/Logo.jpg" class="img-fluid bg-white rounded" style="max-height: 200px;"
alt="Header">
</div>
</div>
</div>
<div class="text-center d-flex flex-column justify-content-center text-light p-5">
<button class="btn btn-outline-primary btn-lg my-2" onclick="document.location.href='handover.php'">
New HandOver</button>
<button class="btn btn-outline-primary btn-lg my-2" onclick="document.location.href='outstanding.php'">
Update HandOver</button>
<?php
$logonUID = $_SERVER['AUTH_USER'];
$sql = "SELECT * from [SecSLH].[dbo].[tEmailRecipient]
where LoginUserName = '$logonUID'
AND Admin = 1";
$sqlargs = array();
require_once 'config/db_query.php';
$UID = sqlQuery($sql,$sqlargs);
$UID = $UID[1];
if ($UID === 1){
?>
<button class="btn btn-outline-primary btn-lg my-2"
onclick="document.location.href='settings.php'">Admin
Settings
</button>
<?php
}
?>
</div>
</section>
</div>
<!-- Page End -->
<!-- Start of Bootstrap JS -->
<script src="js/jquery-3.3.1.slim.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<!-- end of Bootstrap JS -->
</body>
</html>