From 7015f1a7a2b421ee80d77b1ecdfc2b8773e1dd96 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 27 Feb 2006 07:44:35 +0000 Subject: [PATCH] Restored DHCP plugin git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2742 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servDHCP.inc | 27 ++++++++++++++---------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/plugins/admin/systems/class_servDHCP.inc b/plugins/admin/systems/class_servDHCP.inc index 4ab97ed61..9f4a6e867 100644 --- a/plugins/admin/systems/class_servDHCP.inc +++ b/plugins/admin/systems/class_servDHCP.inc @@ -12,29 +12,34 @@ class servdhcp extends plugin var $attributes= array(); var $objectclasses= array("whatever"); - var $dialog ; - function servdhcp ($config, $dn= NULL) { plugin::plugin ($config, $dn); - $this->dialog = new baseSelectDialog($config); } function execute() { + /* Call parent execute */ + plugin::execute(); + /* Fill templating stuff */ $smarty= get_smarty(); $display= ""; - $this->dialog->save_object(); - if($this->dialog->isSelected()){ - $base = $this->dialog->isSelected(); - } - if($this->dialog->isClosed()){ - echo "blub"; + /* Do we need to flip is_account state? */ + if (isset($_POST['modify_state'])){ + $this->is_account= !$this->is_account; + } + + /* Show tab dialog headers */ + if ($this->is_account){ + $display= $this->show_header(_("Remove DHCP service"), + _("This server has DHCP features enabled. You can disable them by clicking below.")); + } else { + $display= $this->show_header(_("Add DHCP service"), + _("This server has DHCP features disabled. You can enable them by clicking below.")); + return ($display); } - echo $base; - return($this->dialog->execute()); $display.= $smarty->fetch(get_template_path('servdhcp.tpl', TRUE)); return($display); -- 2.30.2