set_num_contact_form($num_contact_form); } print $contact_form_object->get_form(); break; case 'save': $contact_form_object=new contact_form_object($id); if(!$id && !empty($num_contact_form)) { $contact_form_object->set_num_contact_form($num_contact_form); } $contact_form_object->set_properties_from_form(); $contact_form_object->save(); print list_contact_forms_objects_ui::get_instance(array('num_contact_form' => $num_contact_form))->get_display_list(); break; case 'delete': $contact_form_object=new contact_form_object($id); $contact_form_object->delete(); print list_contact_forms_objects_ui::get_instance(array('num_contact_form' => $num_contact_form))->get_display_list(); break; default: print list_contact_forms_objects_ui::get_instance(array('num_contact_form' => $num_contact_form))->get_display_list(); break; }