servnest/pg-view/reg/print.php

35 lines
784 B
PHP

<form method="post">
<label for="domain"><?= _('Domain') ?></label>
<select required="" name="domain" id="domain">
<option value="" disabled="" selected="">-</option>
<?php
foreach (regListUserDomains() as $domain)
echo ' <option value="' . $domain . '">' . $domain . '</option>' . LF;
?>
</select>
<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>