servnest/pg-view/reg/print.php

29 lines
600 B
PHP

<?php declare(strict_types=1); ?>
<form method="post">
<?php require ROOT_PATH . '/pg-view/reg/select-domain.inc.php'; ?>
<br>
<input type="submit" value="<?= _('Display') ?>">
</form>
<table class="zone">
<tr>
<th><?= _('Domain') ?></th>
<th><?= _('TTL') ?></th>
<th><?= _('Type') ?></th>
<th><?= _('Value') ?></th>
</tr>
<?php
if (isset($data['zone-content'])) {
foreach ($data['zone-content'] as $zone_line) {
echo ' <tr>' . LF;
foreach ($zone_line as $element)
echo ' <td><code>' . htmlspecialchars($element) . '</code></td>' . LF;
echo ' </tr>' . LF;
}
}
?>
</table>