* $Id$ * * This file is part of Management Console. * * MMC is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * MMC is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with MMC; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ require "localSidebar.php"; require "graph/navbar.inc.php"; $subnet = $_GET["subnet"]; $ajax = new AjaxFilter(urlStrRedirect("network/network/ajaxSubnetMembersFilter", array("subnet" => $subnet))); $ajax->display(); $p = new PageGenerator(_T("Members of DHCP subnet") . " " . $subnet); $sidemenu->forceActiveItem("subnetindex"); $p->setSideMenu($sidemenu); $p->display(); $ajax->displayDivToUpdate(); $f = new Form(); $f->addOnClickButton(_T("Add a static host"), urlStr("network/network/subnetaddhost", array("subnet" => $subnet))); $f->display();
* $Id$ * * This file is part of Management Console. * * MMC is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * MMC is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with MMC; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ require "localSidebar.php"; require "graph/navbar.inc.php"; $zone = $_GET["zone"]; $ajax = new AjaxFilter(urlStrRedirect("network/network/ajaxZoneMembersFilter", array("zone" => $zone))); $ajax->display(); $p = new PageGenerator(sprintf(_T("Members of zone %s"), $zone)); $sidemenu->forceActiveItem("index"); $p->setSideMenu($sidemenu); $p->display(); $ajax->displayDivToUpdate(); $f = new Form(); $f->addOnClickButton(_T("Add a host"), urlStr("network/network/addhost", array("zone" => $zone))); $f->display();
* but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with MMC; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ require "modules/network/includes/network2.inc.php"; require "localSidebar.php"; require "graph/navbar.inc.php"; $reverse = isset($_GET["reverse"]) && $_GET["reverse"] == 1; $zone = $_GET["zone"]; $sortby = $_GET["sortby"]; $asc = $_GET["asc"]; $options = array('zone' => $zone, 'reverse' => $reverse, 'sortby' => $sortby, 'asc' => $asc); $ajax = new AjaxFilter(urlStrRedirect('network/network/ajaxZoneRecordsFilter', $options)); $ajax->display(); $title = $reverse ? sprintf(_T("Records of reverse zone for zone %s"), $zone) : sprintf(_T("Records of zone %s"), $zone); $p = new PageGenerator($title); $sidemenu->forceActiveItem("index"); $p->setSideMenu($sidemenu); $p->display(); $ajax->displayDivToUpdate(); $f = new Form(); if ($reverse || count(getReverseZone($zone))) { $linktext = $reverse ? _T("Manage zone records") : _T("Manage reverse zone records"); $f->addSummary("<a href='" . urlStr("network/network/zonerecords", array("zone" => $zone, "reverse" => !$reverse)) . "'>" . $linktext . "</a>"); } $f->addOnClickButton(_T("Add a record"), urlStr("network/network/addrecord", array("zone" => $zone, "reverse" => $reverse))); $f->display();