14 lines
724 B
PHP
14 lines
724 B
PHP
<?php
|
|
// Seite des Beispiel-Plugins. Verfügbar: $staff, $pdo.
|
|
$rows = $pdo->query('SELECT ticket_id, event, created_at FROM plugin_beispiel_log ORDER BY id DESC LIMIT 50')->fetchAll();
|
|
?>
|
|
<h1>Ticket-Protokoll</h1>
|
|
<p class="muted">Letzter Plugin-Cron: <?= e(plugin_setting('beispiel', 'last_cron', 'noch nie')) ?></p>
|
|
<div class="card"><table>
|
|
<thead><tr><th>Ticket</th><th>Ereignis</th><th>Zeit</th></tr></thead>
|
|
<tbody>
|
|
<?php foreach ($rows as $r): ?><tr><td>#<?= (int) $r['ticket_id'] ?></td><td><?= e($r['event']) ?></td><td><?= e($r['created_at']) ?></td></tr><?php endforeach; ?>
|
|
<?php if (!$rows): ?><tr><td colspan="3" class="muted">Noch keine Ereignisse.</td></tr><?php endif; ?>
|
|
</tbody>
|
|
</table></div>
|