Fixes date and time display
parent
9b00e3d42c
commit
b4df4b785a
|
@ -46,7 +46,11 @@
|
||||||
<?php if ($time_range_specified || count($filterMessage)) { ?>
|
<?php if ($time_range_specified || count($filterMessage)) { ?>
|
||||||
<div class="alert alert-info m-0 mb-3 small">
|
<div class="alert alert-info m-0 mb-3 small">
|
||||||
<?php if ($time_range_specified) { ?>
|
<?php if ($time_range_specified) { ?>
|
||||||
<p class="mb-0"><i class="fas fa-calendar-alt me-2"></i>Time period: <strong><?= htmlspecialchars($from_time) ?> - <?= htmlspecialchars($until_time) ?></strong></p>
|
<p class="mb-0"><i class="fas fa-calendar-alt me-2"></i>Time period:
|
||||||
|
<strong>
|
||||||
|
<?= $from_time == '0000-01-01' ? 'beginning' : date('d M Y', strtotime($from_time)) ?> - <?= $until_time == '9999-12-31' ? 'now' : date('d M Y', strtotime($until_time)) ?>
|
||||||
|
</strong>
|
||||||
|
</p>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if (count($filterMessage)) {
|
<?php if (count($filterMessage)) {
|
||||||
foreach ($filterMessage as $message) { ?>
|
foreach ($filterMessage as $message) { ?>
|
||||||
|
|
|
@ -46,7 +46,11 @@
|
||||||
<?php if ($time_range_specified || count($filterMessage)) { ?>
|
<?php if ($time_range_specified || count($filterMessage)) { ?>
|
||||||
<div class="alert alert-info m-0 mb-3 small">
|
<div class="alert alert-info m-0 mb-3 small">
|
||||||
<?php if ($time_range_specified) { ?>
|
<?php if ($time_range_specified) { ?>
|
||||||
<p class="mb-0"><i class="fas fa-calendar-alt me-2"></i>Time period: <strong><?= htmlspecialchars($from_time) ?> - <?= htmlspecialchars($until_time) ?></strong></p>
|
<p class="mb-0"><i class="fas fa-calendar-alt me-2"></i>Time period:
|
||||||
|
<strong>
|
||||||
|
<?= $from_time == '0000-01-01' ? 'beginning' : date('d M Y', strtotime($from_time)) ?> - <?= $until_time == '9999-12-31' ? 'now' : date('d M Y', strtotime($until_time)) ?>
|
||||||
|
</strong>
|
||||||
|
</p>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if (count($filterMessage)) {
|
<?php if (count($filterMessage)) {
|
||||||
foreach ($filterMessage as $message) { ?>
|
foreach ($filterMessage as $message) { ?>
|
||||||
|
@ -72,43 +76,40 @@
|
||||||
<tr>
|
<tr>
|
||||||
<?php foreach ($row as $key => $column) {
|
<?php foreach ($row as $key => $column) {
|
||||||
if ($key === 'conference ID' && isset($conferenceId) && $conferenceId === $column) { ?>
|
if ($key === 'conference ID' && isset($conferenceId) && $conferenceId === $column) { ?>
|
||||||
<td class="text-nowrap">
|
<td class="text-nowrap">
|
||||||
<strong
|
<strong <?= (strlen($column ?? '') > 20) ? 'data-toggle="tooltip" title="' . htmlspecialchars($column) . '"' : '' ?>>
|
||||||
<?= (strlen($column ?? '') > 20) ? 'data-toggle="tooltip" title="' . htmlspecialchars($column) . '"' : '' ?>>
|
|
||||||
<?= htmlspecialchars(strlen($column ?? '') > 20 ? substr($column, 0, 20) . '...' : $column ?? '') ?>
|
<?= htmlspecialchars(strlen($column ?? '') > 20 ? substr($column, 0, 20) . '...' : $column ?? '') ?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<?php } elseif ($key === 'conference ID') { ?>
|
<?php } elseif ($key === 'conference ID') { ?>
|
||||||
<td class="text-nowrap">
|
<td class="text-nowrap">
|
||||||
<a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=conferences&id=<?= htmlspecialchars($column ?? '') ?>"
|
<a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=conferences&id=<?= htmlspecialchars($column ?? '') ?>"
|
||||||
<?= (strlen($column ?? '') > 16) ? 'data-toggle="tooltip" title="' . htmlspecialchars($column) . '"' : '' ?>>
|
<?= (strlen($column ?? '') > 16) ? 'data-toggle="tooltip" title="' . htmlspecialchars($column) . '"' : '' ?>>
|
||||||
<?= htmlspecialchars(strlen($column ?? '') > 16 ? substr($column, 0, 16) . '...' : $column ?? '') ?>
|
<?= htmlspecialchars(strlen($column ?? '') > 16 ? substr($column, 0, 16) . '...' : $column ?? '') ?>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<?php } elseif ($key === 'conference name' && isset($conferenceName) && $conferenceName === $column) { ?>
|
<?php } elseif ($key === 'conference name' && isset($conferenceName) && $conferenceName === $column) { ?>
|
||||||
<td class="text-nowrap">
|
<td class="text-nowrap">
|
||||||
<strong
|
<strong <?= (strlen($column ?? '') > 20) ? 'data-toggle="tooltip" title="' . htmlspecialchars($column) . '"' : '' ?>>
|
||||||
<?= (strlen($column ?? '') > 20) ? 'data-toggle="tooltip" title="' . htmlspecialchars($column) . '"' : '' ?>>
|
|
||||||
<?= htmlspecialchars(strlen($column ?? '') > 20 ? substr($column, 0, 20) . '...' : $column ?? '') ?>
|
<?= htmlspecialchars(strlen($column ?? '') > 20 ? substr($column, 0, 20) . '...' : $column ?? '') ?>
|
||||||
</strong>
|
</strong>
|
||||||
</td>
|
</td>
|
||||||
<?php } elseif ($key === 'conference name') { ?>
|
<?php } elseif ($key === 'conference name') { ?>
|
||||||
<td class="text-nowrap">
|
<td class="text-nowrap">
|
||||||
<a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=conferences&name=<?= htmlspecialchars($column ?? '') ?>"
|
<a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=conferences&name=<?= htmlspecialchars($column ?? '') ?>"
|
||||||
<?= (strlen($column ?? '') > 16) ? 'data-toggle="tooltip" title="' . htmlspecialchars($column) . '"' : '' ?>>
|
<?= (strlen($column ?? '') > 16) ? 'data-toggle="tooltip" title="' . htmlspecialchars($column) . '"' : '' ?>>
|
||||||
<?= htmlspecialchars(strlen($column ?? '') > 16 ? substr($column, 0, 16) . '...' : $column ?? '') ?>
|
<?= htmlspecialchars(strlen($column ?? '') > 16 ? substr($column, 0, 16) . '...' : $column ?? '') ?>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<?php } elseif ($key === 'conference host') { ?>
|
<?php } elseif ($key === 'conference host') { ?>
|
||||||
<td class="text-nowrap">
|
<td class="text-nowrap">
|
||||||
<strong
|
<span <?= (strlen($column ?? '') > 30) ? 'data-toggle="tooltip" title="' . htmlspecialchars($column) . '"' : '' ?>>
|
||||||
<?= (strlen($column ?? '') > 30) ? 'data-toggle="tooltip" title="' . htmlspecialchars($column) . '"' : '' ?>>
|
|
||||||
<?= htmlspecialchars(strlen($column ?? '') > 30 ? substr($column, 0, 30) . '...' : $column ?? '') ?>
|
<?= htmlspecialchars(strlen($column ?? '') > 30 ? substr($column, 0, 30) . '...' : $column ?? '') ?>
|
||||||
</strong>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<?php
|
<?php
|
||||||
} elseif ($key === 'time' || $key === 'start' || $key === 'end') { ?>
|
} elseif ($key === 'time' || $key === 'start' || $key === 'end') { ?>
|
||||||
<td class="text-nowrap"><?= !empty($column) ? date('d M Y H:i:s',strtotime($column)) : 'n/a' ?></td>
|
<td class="text-nowrap"><?= !empty($column) ? date('d M Y H:i:s',strtotime($column)) : '<small class="text-muted">n/a</small>' ?></td>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<td><?= htmlspecialchars($column ?? '') ?></td>
|
<td><?= htmlspecialchars($column ?? '') ?></td>
|
||||||
<?php }
|
<?php }
|
||||||
|
|
|
@ -46,7 +46,11 @@
|
||||||
<?php if ($time_range_specified || count($filterMessage)) { ?>
|
<?php if ($time_range_specified || count($filterMessage)) { ?>
|
||||||
<div class="alert alert-info m-0 mb-3 small">
|
<div class="alert alert-info m-0 mb-3 small">
|
||||||
<?php if ($time_range_specified) { ?>
|
<?php if ($time_range_specified) { ?>
|
||||||
<p class="mb-0"><i class="fas fa-calendar-alt me-2"></i>Time period: <strong><?= htmlspecialchars($from_time) ?> - <?= htmlspecialchars($until_time) ?></strong></p>
|
<p class="mb-0"><i class="fas fa-calendar-alt me-2"></i>Time period:
|
||||||
|
<strong>
|
||||||
|
<?= $from_time == '0000-01-01' ? 'beginning' : date('d M Y', strtotime($from_time)) ?> - <?= $until_time == '9999-12-31' ? 'now' : date('d M Y', strtotime($until_time)) ?>
|
||||||
|
</strong>
|
||||||
|
</p>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if (count($filterMessage)) {
|
<?php if (count($filterMessage)) {
|
||||||
foreach ($filterMessage as $message) { ?>
|
foreach ($filterMessage as $message) { ?>
|
||||||
|
@ -76,19 +80,19 @@
|
||||||
if (isset($row['event']) && $row['event'] === 'pair selected') $participant_ip = true;
|
if (isset($row['event']) && $row['event'] === 'pair selected') $participant_ip = true;
|
||||||
foreach ($row as $key => $column) {
|
foreach ($row as $key => $column) {
|
||||||
if ($key === 'conference ID') { ?>
|
if ($key === 'conference ID') { ?>
|
||||||
<td class="text-nowrap">
|
<td class="text-nowrap">
|
||||||
<a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=conferences&id=<?= htmlspecialchars($column ?? '') ?>"
|
<a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=conferences&id=<?= htmlspecialchars($column ?? '') ?>"
|
||||||
<?= (strlen($column ?? '') > 16) ? 'data-toggle="tooltip" title="' . htmlspecialchars($column) . '"' : '' ?>>
|
<?= (strlen($column ?? '') > 16) ? 'data-toggle="tooltip" title="' . htmlspecialchars($column) . '"' : '' ?>>
|
||||||
<?= htmlspecialchars(strlen($column ?? '') > 16 ? substr($column, 0, 16) . '...' : $column ?? '') ?>
|
<?= htmlspecialchars(strlen($column ?? '') > 16 ? substr($column, 0, 16) . '...' : $column ?? '') ?>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<?php } elseif ($key === 'conference name') { ?>
|
<?php } elseif ($key === 'conference name') { ?>
|
||||||
<td class="text-nowrap">
|
<td class="text-nowrap">
|
||||||
<a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=conferences&name=<?= htmlspecialchars($column ?? '') ?>"
|
<a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=conferences&name=<?= htmlspecialchars($column ?? '') ?>"
|
||||||
<?= (strlen($column ?? '') > 16) ? 'data-toggle="tooltip" title="' . htmlspecialchars($column) . '"' : '' ?>>
|
<?= (strlen($column ?? '') > 16) ? 'data-toggle="tooltip" title="' . htmlspecialchars($column) . '"' : '' ?>>
|
||||||
<?= htmlspecialchars(strlen($column ?? '') > 16 ? substr($column, 0, 16) . '...' : $column ?? '') ?>
|
<?= htmlspecialchars(strlen($column ?? '') > 16 ? substr($column, 0, 16) . '...' : $column ?? '') ?>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<?php } elseif ($key === 'participant ID' && isset($participantId) && $participantId === $column) { ?>
|
<?php } elseif ($key === 'participant ID' && isset($participantId) && $participantId === $column) { ?>
|
||||||
<td><strong><?= htmlspecialchars($column ?? '') ?></strong></td>
|
<td><strong><?= htmlspecialchars($column ?? '') ?></strong></td>
|
||||||
<?php } elseif ($key === 'participant ID') { ?>
|
<?php } elseif ($key === 'participant ID') { ?>
|
||||||
|
@ -107,7 +111,7 @@
|
||||||
<td><a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=components&name=<?= htmlspecialchars($column ?? '') ?>"><?= htmlspecialchars($column ?? '') ?></a></td>
|
<td><a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=components&name=<?= htmlspecialchars($column ?? '') ?>"><?= htmlspecialchars($column ?? '') ?></a></td>
|
||||||
<?php
|
<?php
|
||||||
} elseif ($key === 'time') { ?>
|
} elseif ($key === 'time') { ?>
|
||||||
<td class="text-nowrap"><?= !empty($column) ? date('d M Y H:i:s',strtotime($column)) : 'n/a' ?></td>
|
<td class="text-nowrap"><?= !empty($column) ? date('d M Y H:i:s',strtotime($column)) : '<small class="text-muted">n/a</small>' ?></td>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<td><?= htmlspecialchars($column ?? '') ?></td>
|
<td><?= htmlspecialchars($column ?? '') ?></td>
|
||||||
<?php }
|
<?php }
|
||||||
|
|
|
@ -6,8 +6,6 @@
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<div class="card w-auto bg-light border-light card-body" style="flex-direction: row;"><?= $widget['title'] ?></div>
|
<div class="card w-auto bg-light border-light card-body" style="flex-direction: row;"><?= $widget['title'] ?></div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if ($widget['filter'] === true) {
|
|
||||||
include '../app/templates/block-results-filter.php'; } ?>
|
|
||||||
<?php if ($widget['collapsible'] === true) { ?>
|
<?php if ($widget['collapsible'] === true) { ?>
|
||||||
</a>
|
</a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
@ -16,7 +14,11 @@
|
||||||
<!-- widget "<?= htmlspecialchars($widget['name']) ?>" -->
|
<!-- widget "<?= htmlspecialchars($widget['name']) ?>" -->
|
||||||
<div class="collapse show" id="collapse<?= htmlspecialchars($widget['name']) ?>">
|
<div class="collapse show" id="collapse<?= htmlspecialchars($widget['name']) ?>">
|
||||||
<?php if ($time_range_specified) { ?>
|
<?php if ($time_range_specified) { ?>
|
||||||
<p class="m-3">time period: <strong><?= htmlspecialchars($from_time) ?> - <?= htmlspecialchars($until_time) ?></strong></p>
|
<p class="m-3">time period:
|
||||||
|
<strong>
|
||||||
|
<?= $from_time == '0000-01-01' ? 'beginning' : date('d M Y', strtotime($from_time)) ?> - <?= $until_time == '9999-12-31' ? 'now' : date('d M Y', strtotime($until_time)) ?>
|
||||||
|
</strong>
|
||||||
|
</p>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<div class="mb-5">
|
<div class="mb-5">
|
||||||
<?php if ($widget['full'] === true) { ?>
|
<?php if ($widget['full'] === true) { ?>
|
||||||
|
@ -24,46 +26,41 @@
|
||||||
<thead class="thead-dark">
|
<thead class="thead-dark">
|
||||||
<tr>
|
<tr>
|
||||||
<?php foreach ($widget['table_headers'] as $header) { ?>
|
<?php foreach ($widget['table_headers'] as $header) { ?>
|
||||||
<th scope="col"><?= htmlspecialchars($header) ?></th>
|
<th scope="col" class="text-nowrap"><?= htmlspecialchars($header) ?></th>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($widget['table_records'] as $row) { ?>
|
<?php foreach ($widget['table_records'] as $row) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<?php $stats_id = false;
|
<?php foreach ($row as $key => $column) {
|
||||||
$participant_ip = false;
|
if ($key === 'conference ID') { ?>
|
||||||
if (isset($row['event']) && $row['event'] === 'stats_id') $stats_id = true;
|
<td class="text-nowrap">
|
||||||
if (isset($row['event']) && $row['event'] === 'pair selected') $participant_ip = true;
|
<a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=conferences&id=<?= htmlspecialchars($column ?? '') ?>"
|
||||||
foreach ($row as $key => $column) {
|
<?= (strlen($column ?? '') > 16) ? 'data-toggle="tooltip" title="' . htmlspecialchars($column) . '"' : '' ?>>
|
||||||
if ($key === 'conference ID' && isset($conferenceId) && $conferenceId === $column) { ?>
|
<?= htmlspecialchars(strlen($column ?? '') > 16 ? substr($column, 0, 16) . '...' : $column ?? '') ?>
|
||||||
<td><strong><?= htmlspecialchars($column ?? '') ?></strong></td>
|
</a>
|
||||||
<?php } elseif ($key === 'conference ID') { ?>
|
</td>
|
||||||
<td><a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=conferences&id=<?= htmlspecialchars($column ?? '') ?>"><?= htmlspecialchars($column ?? '') ?></a></td>
|
|
||||||
<?php } elseif ($key === 'conference name' && isset($conferenceName) && $conferenceName === $column) { ?>
|
|
||||||
<td><strong><?= htmlspecialchars($column ?? '') ?></strong></td>
|
|
||||||
<?php } elseif ($key === 'conference name') { ?>
|
<?php } elseif ($key === 'conference name') { ?>
|
||||||
<td><a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=conferences&name=<?= htmlspecialchars($column ?? '') ?>"><?= htmlspecialchars($column ?? '') ?></a></td>
|
<td class="text-nowrap">
|
||||||
<?php } elseif ($key === 'participant ID' && isset($participantId) && $participantId === $column) { ?>
|
<a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=conferences&name=<?= htmlspecialchars($column ?? '') ?>"
|
||||||
<td><strong><?= htmlspecialchars($column ?? '') ?></strong></td>
|
<?= (strlen($column ?? '') > 16) ? 'data-toggle="tooltip" title="' . htmlspecialchars($column) . '"' : '' ?>>
|
||||||
<?php } elseif ($key === 'participant ID') { ?>
|
<?= htmlspecialchars(strlen($column ?? '') > 16 ? substr($column, 0, 16) . '...' : $column ?? '') ?>
|
||||||
<td><a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=participants&id=<?= htmlspecialchars($column ?? '') ?>"><?= htmlspecialchars($column ?? '') ?></a></td>
|
</a>
|
||||||
|
</td>
|
||||||
|
<?php } elseif ($key === 'conference host') { ?>
|
||||||
|
<td class="text-nowrap">
|
||||||
|
<span <?= (strlen($column ?? '') > 30) ? 'data-toggle="tooltip" title="' . htmlspecialchars($column) . '"' : '' ?>>
|
||||||
|
<?= htmlspecialchars(strlen($column ?? '') > 30 ? substr($column, 0, 30) . '...' : $column ?? '') ?>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
<?php } elseif ($key === 'component ID') { ?>
|
<?php } elseif ($key === 'component ID') { ?>
|
||||||
<td><a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=components&id=<?= htmlspecialchars($column ?? '') ?>"><?= htmlspecialchars($column ?? '') ?></a></td>
|
<td><a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=components&id=<?= htmlspecialchars($column ?? '') ?>"><?= htmlspecialchars($column ?? '') ?></a></td>
|
||||||
<?php } elseif ($stats_id && $key === 'parameter' && isset($participantName) && $participantName === $column) { ?>
|
|
||||||
<td><strong><?= htmlspecialchars($column ?? '') ?></strong></td>
|
|
||||||
<?php } elseif ($stats_id && $key === 'parameter') { ?>
|
|
||||||
<td><a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=participants&name=<?= htmlspecialchars($column ?? '') ?>"><?= htmlspecialchars($column ?? '') ?></a></td>
|
|
||||||
<?php } elseif ($participant_ip && $key === 'parameter' && isset($participantIp) && $participantIp === $column) { ?>
|
|
||||||
<td><strong><?= htmlspecialchars($column ?? '') ?></strong></td>
|
|
||||||
<?php } elseif ($participant_ip && $key === 'parameter') { ?>
|
|
||||||
<td><a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=participants&ip=<?= htmlspecialchars($column ?? '') ?>"><?= htmlspecialchars($column ?? '') ?></a></td>
|
|
||||||
<?php } elseif ($key === 'component') { ?>
|
<?php } elseif ($key === 'component') { ?>
|
||||||
<td><a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=components&name=<?= htmlspecialchars($column ?? '') ?>"><?= htmlspecialchars($column ?? '') ?></a></td>
|
<td><a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=components&name=<?= htmlspecialchars($column ?? '') ?>"><?= htmlspecialchars($column ?? '') ?></a></td>
|
||||||
<?php
|
<?php
|
||||||
// in general listings we don't show seconds and miliseconds
|
|
||||||
} elseif ($key === 'start' || $key === 'end') { ?>
|
} elseif ($key === 'start' || $key === 'end') { ?>
|
||||||
<td><?= htmlspecialchars(substr($column ?? '', 0, -7)) ?></td>
|
<td class="text-nowrap"><?= !empty($column) ? date('d M Y H:i:s',strtotime($column)) : '<small class="text-muted">n/a</small>' ?></td>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<td><?= htmlspecialchars($column ?? '') ?></td>
|
<td><?= htmlspecialchars($column ?? '') ?></td>
|
||||||
<?php }
|
<?php }
|
||||||
|
@ -72,12 +69,6 @@
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<?php
|
|
||||||
if ($widget['pagination'] && $item_count > $items_per_page) {
|
|
||||||
$url = "$app_root?platform=$platform_id&page=$page";
|
|
||||||
include '../app/helpers/pagination.php';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<p class="m-3">No matching records found.</p>
|
<p class="m-3">No matching records found.</p>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
Loading…
Reference in New Issue