summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_rfc2136.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local/www/services_rfc2136.php')
-rw-r--r--src/usr/local/www/services_rfc2136.php101
1 files changed, 53 insertions, 48 deletions
diff --git a/src/usr/local/www/services_rfc2136.php b/src/usr/local/www/services_rfc2136.php
index 3a01332..31a9270 100644
--- a/src/usr/local/www/services_rfc2136.php
+++ b/src/usr/local/www/services_rfc2136.php
@@ -98,24 +98,27 @@ $tab_array[] = array(gettext("RFC 2136"), true, "services_rfc2136.php");
display_top_tabs($tab_array);
if ($input_errors) {
- print_input_errors($input_errors);
+ print_input_errors($input_errors);
}
?>
<form action="services_rfc2136.php" method="post" name="iform" id="iform">
- <div class="table-responsive">
- <table class="table table-striped table-hover table-condensed">
- <thead>
- <tr>
- <th><?=gettext("If")?></th>
- <th><?=gettext("Server")?></th>
- <th><?=gettext("Hostname")?></th>
- <th><?=gettext("Cached IP")?></th>
- <th><?=gettext("Description")?></th>
- <th></th>
- </tr>
- </thead>
- <tbody>
+ <div class="panel panel-default">
+ <div class="panel-heading"><h2 class="panel-title"><?=gettext('RFC2136 clients')?></h2></div>
+ <div class="panel-body">
+ <div class="table-responsive">
+ <table class="table table-striped table-hover table-condensed">
+ <thead>
+ <tr>
+ <th><?=gettext("IF")?></th>
+ <th><?=gettext("Server")?></th>
+ <th><?=gettext("Hostname")?></th>
+ <th><?=gettext("Cached IP")?></th>
+ <th><?=gettext("Description")?></th>
+ <th></th>
+ </tr>
+ </thead>
+ <tbody>
<?php
@@ -124,24 +127,24 @@ $iflist = get_configured_interface_with_descr();
$i = 0;
foreach ($a_rfc2136 as $rfc2136):
?>
- <tr<?=(isset($rfc2136['enable']) ? '' : ' class="disabled"')?>>
- <td>
+ <tr<?=(isset($rfc2136['enable']) ? '' : ' class="disabled"')?>>
+ <td>
<?php
foreach ($iflist as $if => $ifdesc) {
- if ($rfc2136['interface'] == $if) {
- print($ifdesc);
+ if ($rfc2136['interface'] == $if) {
+ print($ifdesc);
break;
- }
+ }
}
?>
- </td>
- <td>
- <?=htmlspecialchars($rfc2136['server'])?>
- </td>
- <td>
- <?=htmlspecialchars($rfc2136['host'])?>
- </td>
- <td>
+ </td>
+ <td>
+ <?=htmlspecialchars($rfc2136['server'])?>
+ </td>
+ <td>
+ <?=htmlspecialchars($rfc2136['host'])?>
+ </td>
+ <td>
<?php
$filename = "{$g['conf_path']}/dyndns_{$rfc2136['interface']}_rfc2136_" . escapeshellarg($rfc2136['host']) . "_{$rfc2136['server']}.cache";
@@ -189,30 +192,32 @@ foreach ($a_rfc2136 as $rfc2136):
}
?>
- </td>
- <td>
- <?=htmlspecialchars($rfc2136['descr'])?>
- </td>
- <td>
- <a class="fa fa-pencil" title="<?=gettext('Edit client')?>" href="services_rfc2136_edit.php?id=<?=$i?>"></a>
- <?php if (isset($rfc2136['enable'])) {
- ?>
- <a class="fa fa-ban" title="<?=gettext('Disable client')?>" href="?act=toggle&amp;id=<?=$i?>"></a>
- <?php } else {
- ?>
- <a class="fa fa-check-square-o" title="<?=gettext('Enable client')?>" href="?act=toggle&amp;id=<?=$i?>"></a>
- <?php }
- ?>
- <a class="fa fa-trash" title="<?=gettext('Delete client')?>" href="services_rfc2136.php?act=del&amp;id=<?=$i?>"></a>
- </td>
- </tr>
+ </td>
+ <td>
+ <?=htmlspecialchars($rfc2136['descr'])?>
+ </td>
+ <td>
+ <a class="fa fa-pencil" title="<?=gettext('Edit client')?>" href="services_rfc2136_edit.php?id=<?=$i?>"></a>
+ <?php if (isset($rfc2136['enable'])) {
+ ?>
+ <a class="fa fa-ban" title="<?=gettext('Disable client')?>" href="?act=toggle&amp;id=<?=$i?>"></a>
+ <?php } else {
+ ?>
+ <a class="fa fa-check-square-o" title="<?=gettext('Enable client')?>" href="?act=toggle&amp;id=<?=$i?>"></a>
+ <?php }
+ ?>
+ <a class="fa fa-trash" title="<?=gettext('Delete client')?>" href="services_rfc2136.php?act=del&amp;id=<?=$i?>"></a>
+ </td>
+ </tr>
<?php
- $i++;
+ $i++;
endforeach; ?>
- </tbody>
- </table>
- </div>
+ </tbody>
+ </table>
+ </div>
+ </div>
+ </div>
</form>
<nav class="action-buttons">
OpenPOWER on IntegriCloud