get_form($num_demande); break; case "edit" : $model_instance = static::get_model_instance($id); print $model_instance->get_form(); break; case "save" : $model_instance = static::get_model_instance($faq_question_id); $result = $model_instance->get_value_from_form(); if($result){ $result =$model_instance->save(); } if(!$result){ error_form_message($msg['faq_question_save_error']); } $list_ui_instance = static::get_list_ui_instance(); print $list_ui_instance->get_display_list(); break; case "delete" : $model_class_name = static::$model_class_name; $result = $model_class_name::delete($id); if(!$result){ error_message("", $msg['faq_question_delete_error']); print "
 
"; } $list_ui_instance = static::get_list_ui_instance(); print $list_ui_instance->get_display_list(); break; case "list" : default : $list_ui_instance = static::get_list_ui_instance(); print $list_ui_instance->get_display_list(); break; } } }