-
Notifications
You must be signed in to change notification settings - Fork 51
/
historyBrowserCard.php
32 lines (31 loc) · 1.55 KB
/
historyBrowserCard.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
<?php
include_once('inc/browsers.inc.php');
include_once('inc/browserHistory.inc.php');
$browserHistory = getBrowserHistory($_GET['browserId']);
?>
<table class="table table-striped custom-table-striped table-bordered border-light border-1 border-opacity-25 text-light mb-0">
<thead class="bg-dark" style="--bs-bg-opacity: .50;">
<tr>
<th class="bg-transparent text-light text-center col-2">Date</th>
<th class="bg-transparent text-light text-center col-1">Type</th>
<th class="bg-transparent text-light text-center col-1">Module</th>
<th class="bg-transparent text-light text-center col-8">Event</th>
</tr>
</thead>
<tbody class="fw-light" id="tbody">
<?php
foreach ($browserHistory as $row) {
?>
<tr>
<?php
echo '<td class="bg-transparent text-light text-center">' . htmlspecialchars($row['date']) . '</td>';
echo '<td class="bg-transparent text-light text-center">' . htmlspecialchars($row['type']) . '</td>';
echo '<td class="bg-transparent text-light text-center">' . htmlspecialchars($row['module']) . '</td>';
echo '<td class="bg-transparent text-light text-center"><pre class="is-breakable">' . htmlspecialchars(decodeJsonOrRaw($row['event'])) . '</pre></td>';
?>
</tr>
<?php
}
?>
</tbody>
</table>