diff options
Diffstat (limited to 'usr/local/www/services_rfc2136.php')
-rw-r--r-- | usr/local/www/services_rfc2136.php | 105 |
1 files changed, 55 insertions, 50 deletions
diff --git a/usr/local/www/services_rfc2136.php b/usr/local/www/services_rfc2136.php index 563ee26..efb1e11 100644 --- a/usr/local/www/services_rfc2136.php +++ b/usr/local/www/services_rfc2136.php @@ -44,17 +44,16 @@ if (!is_array($config['dnsupdates']['dnsupdate'])) $a_rfc2136 = &$config['dnsupdates']['dnsupdate']; if ($_GET['act'] == "del") { - unset($a_rfc2136[$_GET['id']]); + unset($a_rfc2136[$_GET['id']]); - write_config(); + write_config(); - header("Location: services_rfc2136.php"); - exit; + header("Location: services_rfc2136.php"); + exit; } $pgtitle = array(gettext("Services"), gettext("RFC 2136 clients")); include("head.inc"); - ?> <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> @@ -62,61 +61,67 @@ include("head.inc"); <form action="services_rfc2136.php" method="post" name="iform" id="iform"> <?php if ($input_errors) print_input_errors($input_errors); ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> - <tr><td> + <tr> + <td> <?php $tab_array = array(); $tab_array[] = array(gettext("DynDns"), false, "services_dyndns.php"); $tab_array[] = array(gettext("RFC 2136"), true, "services_rfc2136.php"); display_top_tabs($tab_array); ?> - </td></tr> + </td> + </tr> <tr> - <td> - <div id="mainarea"> - <table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0"> - <tr> - <td width="5%" class="listhdrr"></td> - <td width="25%" class="listhdrr"><?=gettext("Hostname");?></td> - <td width="60%" class="listhdr"><?=gettext("Description");?></td> - <td width="10%" class="list"></td> - </tr> - <?php $i = 0; foreach ($a_rfc2136 as $rfc2136): ?> - <tr> - <td class="listlr"> - <?php $iflist = get_configured_interface_with_descr(); - foreach ($iflist as $if => $ifdesc): - if ($rfc2136['interface'] == $if): ?> - <?=$ifdesc; break;?> - <?php endif; endforeach; ?> - </td> - <td class="listr"> - <?=htmlspecialchars($rfc2136['host']);?> - </td> - <td class="listbg"> - <?=htmlspecialchars($rfc2136['descr']);?> - </td> - <td valign="middle" nowrap class="list"> <a href="services_rfc2136_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0"></a> - <a href="services_rfc2136.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this client?");?>')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td> - </tr> - <?php $i++; endforeach; ?> - <tr> - <td class="list" colspan="3"> </td> - <td class="list"> <a href="services_rfc2136_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0"></a></td> - </tr> - <tr> - <td colspan="3" class="list"><p class="vexpl"><span class="red"><strong> - <br> - </strong></span> - - </td> - <td class="list"> </td> - </tr> - </table> - </div> + <td> + <div id="mainarea"> + <table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0"> + <tr> + <td width="5%" class="listhdrr"></td> + <td width="25%" class="listhdrr"><?=gettext("Hostname");?></td> + <td width="60%" class="listhdr"><?=gettext("Description");?></td> + <td width="10%" class="list"></td> + </tr> + <?php $i = 0; foreach ($a_rfc2136 as $rfc2136): ?> + <tr> + <td class="listlr"> + <?php + $iflist = get_configured_interface_with_descr(); + foreach ($iflist as $if => $ifdesc) { + if ($rfc2136['interface'] == $if) { + echo $ifdesc; + break; + } + } + ?> + </td> + <td class="listr"> + <?=htmlspecialchars($rfc2136['host']);?> + </td> + <td class="listbg"> + <?=htmlspecialchars($rfc2136['descr']);?> + </td> + <td valign="middle" nowrap class="list"> + <a href="services_rfc2136_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0"></a> + <a href="services_rfc2136.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this client?");?>')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a> + </td> + </tr> + <?php $i++; endforeach; ?> + <tr> + <td class="list" colspan="3"> </td> + <td class="list"> <a href="services_rfc2136_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0"></a></td> + </tr> + <tr> + <td colspan="3" class="list"> + <p class="vexpl"><span class="red"><strong><br></strong></span></p> + </td> + <td class="list"> </td> + </tr> + </table> + </div> </td> </tr> </table> </form> <?php include("fend.inc"); ?> </body> -</html> +</html>
\ No newline at end of file |