assign("cn", $this->cn); /* Show main page */ $display= $smarty->fetch (get_template_path('dhcp_group.tpl', TRUE)).$this->network->execute(); /* Merge arrays for advanced view */ foreach (array("options", "statements") as $type){ $this->advanced->$type= $this->$type + $this->network->$type; } $display.= $this->advanced->execute(); /* Merge back for removals */ foreach (array("options", "statements") as $type){ $this->$type= $this->advanced->$type; $this->network->$type= $this->advanced->$type; } /* Add footer */ $display.= "