This repository was archived by the owner on Jul 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
78 lines (70 loc) · 2.92 KB
/
index.php
File metadata and controls
78 lines (70 loc) · 2.92 KB
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
<?php
if(isset($_GET['d']) && isset($_GET['q']) && isset($_GET['u'])) {
$delete = htmlentities($_GET['d']); //30 days
$quaran = htmlentities($_GET['q']); //21 days
$underu = htmlentities($_GET['u']); //60 days
$default = false;
} else {
$delete = "90";
$quaran = "60";
$underu = "30";
$default = true;
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Quarantine Calculation</title>
<meta name="description" content="Quarantine Calculation">
<meta name="author" content="Laim McKenzie">
<!-- Bootstrap core CSS -->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome -->
<link href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" rel="stylesheet">
</head>
<body style="zoom: 200%;">
<main role="main" class="container">
<?php if($default == true) { ?>
<div class="row mt-5">
<div class="col">
<div class="alert alert-danger" role="alert">
No timeframe has been supplied, default dates are being used. (Quar: <?php print($quaran);?>, Del: <?php print($delete);?>, Underu: <?php print($underu);?>)
</div>
</div>
</div>
<?php } ?>
<div class="row mt-5">
<div class="col-6">
<div class="card">
<div class="card-body">
<h5 class="card-title">Delete Date</h5>
<p class="card-text">Device's from this date and before should be deleted.</p>
<p class="card-text"><?php print(date('d-m-Y', strtotime("-" . $delete . " days")));?></p>
</div>
</div>
</div>
<div class="col-6">
<div class="card">
<div class="card-body">
<h5 class="card-title">Quarantine Date</h5>
<p class="card-text">Device's from this date and before should be in Quarantine.</p>
<p class="card-text"><?php print(date('d-m-Y', strtotime("-" . $quaran . " days")));?></p>
</div>
</div>
</div>
</div>
<div class="row mt-5">
<div class="col-6">
<div class="card">
<div class="card-body">
<h5 class="card-title">Underutilized Date</h5>
<p class="card-text">Software underutilized date (software last used on this date should be removed)</p>
<p class="card-text"><?php print(date('d-m-Y', strtotime("-" . $underu . " days")));?></p>
</div>
</div>
</div>
</div>
</main>
</body>
</html>