-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.php
70 lines (62 loc) · 2.44 KB
/
template.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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Report</title>
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="node_modules/datatables/media/css/jquery.dataTables.min.css">
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="node_modules/datatables/media/js/jquery.dataTables.min.js"></script>
</head>
<body>
<div class="container">
<div class="page-header">
<h1><?= $json->title; ?>
<small><?= date('F Y', $json->date); ?></small>
</h1>
</div>
<div class="progress">
<div class="progress-bar progress-bar-danger" style="width: <?= ($stats->totalItemsBySeverity[1] / $stats->totalItems) * 100; ?>%">
<span class="sr-only"></span>
</div>
<div class="progress-bar progress-bar-warning" style="width: <?= ($stats->totalItemsBySeverity[2] / $stats->totalItems) * 100; ?>%">
<span class="sr-only"></span>
</div>
<div class="progress-bar progress-bar-success" style="width: <?= ($stats->totalItemsBySeverity[3] / $stats->totalItems) * 100; ?>%">
<span class="sr-only"></span>
</div>
<div class="progress-bar" style="width: <?= ($stats->totalItemsBySeverity[null] / $stats->totalItems) * 100; ?>%; background-color: #CCCCCC;">
<span class="sr-only"></span>
</div>
</div>
<div class="row">
<div class="col-md-12">
<table id="report" class="table">
<thead>
<tr>
<th style="width: 50px;"> </th>
<th style="width: 150px;">Category</th>
<th data-orderable="false">Issue</th>
<th data-orderable="false">Notes</th>
</tr>
</thead>
<tbody>
<?= $itemRowsHTML; ?>
</tbody>
</table>
<script>
$(document).ready(function() {
var table = $('#report').DataTable({
"paging": false,
"filter": false,
"info": false
});
$('#report [data-toggle="tooltip"]').tooltip();
});
</script>
</div>
</div>
</div>
</body>
</html>