1 <?php
3 class DaemonEvent_reinstall extends DaemonEvent
4 {
5 public function __construct($config,$data = array())
6 {
7 DaemonEvent::__construct($config,$data);
8 $this->s_Menu_Name = _("Reinstall");
9 $this->s_Event_Name = _("Reinstall");
10 $this->s_New_Action = "job_trigger_action_reinstall";
11 $this->s_Edit_Action= "trigger_action_reinstall";
12 $this->s_Menu_Image = "images/fai_small.png"_small;
13 $this->s_List_Image = "images/fai_small.png";
14 }
16 public function execute()
17 {
18 DaemonEvent::execute();
20 $display = $this->get_header();
22 $tmp = $this->data;
24 /* Check if target add dialog is open */
25 if($this->is_target_list_open() && $this->is_new){
26 return($this->get_target_add_list());
27 }
29 $smarty = get_smarty();
30 $smarty->assign("data" , $this->data);
31 $smarty->assign("target_list" , $this->get_target_list());
32 $smarty->assign("is_new" , $this->is_new);
33 $smarty->assign("timestamp" , $this->get_time_select());
34 $display.= $smarty->fetch(get_template_path('DaemonEvent_reinstall.tpl', TRUE, dirname(__FILE__)));
35 $display.= $this->get_footer();
36 return($display);
37 }
39 public function save_object()
40 {
41 DaemonEvent::save_object();
42 }
43 }
44 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
45 ?>