get_form(); } break; case "update": $scheduler_tasks_type=new scheduler_tasks_type($type_task_id); $scheduler_tasks_type->set_properties_from_form(); $scheduler_tasks_type->save_global_properties(); $scheduler_tasks = new scheduler_tasks(); print $scheduler_tasks->get_display_list(); break; case "task": $name = scheduler_tasks::get_catalog_element($type_task_id, 'NAME'); $path = scheduler_tasks::get_catalog_element($type_task_id, 'PATH'); require_once ($base_path.'/admin/planificateur/'.$path.'/'.$name.'_planning.class.php'); $class_name = $name."_planning"; $scheduler_planning = new $class_name($planificateur_id); $scheduler_planning->set_id_type($type_task_id); switch ($subaction) { case "change": print $scheduler_planning->get_form(); break; case "save": $scheduler_planning->save_property_form(); $scheduler_tasks = new scheduler_tasks(); print $scheduler_tasks->get_display_list(); break; default : print $scheduler_planning->get_form(); } break; case "task_del": $name = scheduler_tasks::get_catalog_element($type_task_id, 'NAME'); $path = scheduler_tasks::get_catalog_element($type_task_id, 'PATH'); require_once ($base_path.'/admin/planificateur/'.$path.'/'.$name.'_planning.class.php'); $class_name = $name."_planning"; $scheduler_planning = new $class_name($planificateur_id); $scheduler_planning->set_id_type($type_task_id); print $scheduler_planning->delete(); break; case "task_duplicate": $name = scheduler_tasks::get_catalog_element($type_task_id, 'NAME'); $path = scheduler_tasks::get_catalog_element($type_task_id, 'PATH'); require_once ($base_path.'/admin/planificateur/'.$path.'/'.$name.'_planning.class.php'); $class_name = $name."_planning"; $scheduler_planning = new $class_name($planificateur_id); $scheduler_planning->set_id_type($type_task_id); print $scheduler_planning->get_form(); break; default: $scheduler_tasks = new scheduler_tasks(); print $scheduler_tasks->get_display_list(); break; }