diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-01-13 15:11:23 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-01-13 15:11:23 -0500 |
commit | 060ed23871a0933021e68078efceb6ed64658d82 (patch) | |
tree | 434e5315f7aefb15e389f439133a9a41e40340f7 /src/usr/local/www/services_rfc2136.php | |
parent | d642aca406161552dbd6b2c19585eaba42a242a6 (diff) | |
download | pfsense-060ed23871a0933021e68078efceb6ed64658d82.zip pfsense-060ed23871a0933021e68078efceb6ed64658d82.tar.gz |
Fixed #5566
Diffstat (limited to 'src/usr/local/www/services_rfc2136.php')
-rw-r--r-- | src/usr/local/www/services_rfc2136.php | 101 |
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&id=<?=$i?>"></a> - <?php } else { - ?> - <a class="fa fa-check-square-o" title="<?=gettext('Enable client')?>" href="?act=toggle&id=<?=$i?>"></a> - <?php } - ?> - <a class="fa fa-trash" title="<?=gettext('Delete client')?>" href="services_rfc2136.php?act=del&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&id=<?=$i?>"></a> + <?php } else { + ?> + <a class="fa fa-check-square-o" title="<?=gettext('Enable client')?>" href="?act=toggle&id=<?=$i?>"></a> + <?php } + ?> + <a class="fa fa-trash" title="<?=gettext('Delete client')?>" href="services_rfc2136.php?act=del&id=<?=$i?>"></a> + </td> + </tr> <?php - $i++; + $i++; endforeach; ?> - </tbody> - </table> - </div> + </tbody> + </table> + </div> + </div> + </div> </form> <nav class="action-buttons"> |