X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-plugins%2Fdhcp%2Fadmin%2Fsystems%2Fservices%2Fdhcp%2Fclass_dhcpSubnet.inc;h=c0bf218d1e8fd11f1dc219baaf9e1dc37de1a44f;hb=581654a2ebf643b7040fa3f62f5353977702bb2a;hp=04b9ceb8035af21bc79d3d41ac956dc1972cef9a;hpb=c9df416bef93b341309964b008754b5a51adeb69;p=gosa.git diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpSubnet.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpSubnet.inc index 04b9ceb80..c0bf218d1 100644 --- a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpSubnet.inc +++ b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpSubnet.inc @@ -30,9 +30,9 @@ class dhcpSubnet extends dhcpPlugin /* attribute list for save action */ var $objectclasses= array('top', 'dhcpSubnet', 'dhcpOptions'); - function dhcpSubnet($attrs) + function dhcpSubnet($parent,$attrs) { - dhcpPlugin::dhcpPlugin($attrs); + dhcpPlugin::dhcpPlugin($parent,$attrs); if (!$this->new){ /* Load attributes */ @@ -57,6 +57,9 @@ class dhcpSubnet extends dhcpPlugin $smarty->assign("cn", $this->cn); $smarty->assign("dhcp_netmask", $this->dhcpNetMask); + /* Assign ACLs */ + $smarty->assign("acl",$this->parent->getacl("")); + /* Prepare range */ if ($this->use_range){ $smarty->assign("use_range", "checked"); @@ -69,7 +72,7 @@ class dhcpSubnet extends dhcpPlugin $smarty->assign("range_stop", $this->range_stop); /* Show main page */ - $display= $smarty->fetch(get_template_path('dhcp_subnet.tpl', TRUE)).$this->network->execute(); + $display= $smarty->fetch(get_template_path('dhcp_subnet.tpl', TRUE, dirname(__FILE__))).$this->network->execute(); /* Merge arrays for advanced view */ $this->fix_options(); @@ -86,8 +89,13 @@ class dhcpSubnet extends dhcpPlugin } /* Add footer */ - $display.= "
". - " 
"; + $display.= "
"; + if(preg_match("/w/",$this->parent->getacl(""))){ + $display.= " "; + } + $display.= ""; + $display.= "
"; + /* Show main page */ return $display;