From: hickert Date: Fri, 23 Jul 2010 09:33:43 +0000 (+0000) Subject: Fixed post handling. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d8c56edd9a3a843fc725b2fdb624010aa6bb502f;p=gosa.git Fixed post handling. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19057 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/addons/goto/events/class_DaemonEvent_activate_new.inc b/gosa-plugins/goto/addons/goto/events/class_DaemonEvent_activate_new.inc index ddf10555e..874375d2c 100644 --- a/gosa-plugins/goto/addons/goto/events/class_DaemonEvent_activate_new.inc +++ b/gosa-plugins/goto/addons/goto/events/class_DaemonEvent_activate_new.inc @@ -22,58 +22,58 @@ class DaemonEvent_activate_new extends DaemonEvent { - var $visible_for = HIDDEN_EVENT; + var $visible_for = HIDDEN_EVENT; - var $attributes = array("dhcp","ip","fqdn","ogroup","base","mac"); + var $attributes = array("dhcp","ip","fqdn","ogroup","base","mac"); - var $dhcp = ""; - var $ip = ""; - var $fqdn = ""; - var $ogroup =""; - var $base = ""; - var $mac =""; + var $dhcp = ""; + var $ip = ""; + var $fqdn = ""; + var $ogroup =""; + var $base = ""; + var $mac =""; - public function __construct($config,$data = array()) - { - DaemonEvent::__construct($config,$data); - $this->s_Menu_Name = _("Activate new"); - $this->s_Event_Name = _("Activate new"); - $this->s_Schedule_Action = "job_trigger_activate_new"; - $this->s_Trigger_Action = "gosa_trigger_activate_new"; - $this->s_Queued_Action = "trigger_activate_new"; - $this->s_Menu_Image = "images/lists/unlocked.png"; - $this->s_List_Image = "images/lists/unlocked.png"; - } + public function __construct($config,$data = array()) + { + DaemonEvent::__construct($config,$data); + $this->s_Menu_Name = _("Activate new"); + $this->s_Event_Name = _("Activate new"); + $this->s_Schedule_Action = "job_trigger_activate_new"; + $this->s_Trigger_Action = "gosa_trigger_activate_new"; + $this->s_Queued_Action = "trigger_activate_new"; + $this->s_Menu_Image = "images/lists/unlocked.png"; + $this->s_List_Image = "images/lists/unlocked.png"; + } - public function execute() - { - DaemonEvent::execute(); - return(""); + public function execute() + { + DaemonEvent::execute(); + return(""); - $display = $this->get_header(); + $display = $this->get_header(); - $tmp = $this->data; + $tmp = $this->data; - /* Check if target add dialog is open */ - if($this->is_target_list_open() && $this->is_new){ - return($this->get_target_add_list()); - } + /* Check if target add dialog is open */ + if($this->is_target_list_open() && $this->is_new){ + return($this->get_target_add_list()); + } - $smarty = get_smarty(); - $smarty->assign("data" , $this->data); - $smarty->assign("target_list" , $this->get_target_list()); - $smarty->assign("is_new" , $this->is_new); - $smarty->assign("timestamp" , $this->get_time_select()); - $display.= $smarty->fetch(get_template_path('DaemonEvent_activate_new.tpl', TRUE, dirname(__FILE__))); - $display.= $this->get_footer(); - return($display); - } + $smarty = get_smarty(); + $smarty->assign("data" , $this->data); + $smarty->assign("target_list" , $this->get_target_list()); + $smarty->assign("is_new" , $this->is_new); + $smarty->assign("timestamp" , $this->get_time_select()); + $display.= $smarty->fetch(get_template_path('DaemonEvent_activate_new.tpl', TRUE, dirname(__FILE__))); + $display.= $this->get_footer(); + return($display); + } - public function save_object() - { - DaemonEvent::save_object(); - } + public function save_object() + { + DaemonEvent::save_object(); + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>