get_display_list(); break; case 'transform_equ': // mettre à jour l'équation $equation = new equation($id_equation) ; $equation->num_classement= 0; $s = new search() ; $equation->nom_equation= $s->make_serialized_human_query(stripslashes($requete)); $equation->requete= stripslashes($requete); $equation->update_type= "C"; $equation->save(); $list_ui_instance = static::get_list_ui_instance(); print $list_ui_instance->get_display_list(); break; case 'modif': $model_instance = static::get_model_instance($id); print $model_instance->show_form("abo"); if ($pmb_javascript_office_editor) { print $pmb_javascript_office_editor ; print ""; } break; case 'delete': $model_instance = static::get_model_instance($id); $model_instance->delete() ; $list_ui_instance = static::get_list_ui_instance(); print $list_ui_instance->get_display_list(); break; case 'update': $model_instance = static::get_model_instance($id); if($form_actif) { $model_instance->set_properties_from_form(); $model_instance->save(); } $list_ui_instance = static::get_list_ui_instance(); print $list_ui_instance->get_display_list(); break; default: echo window_title($database_window_title.$msg['dsi_menu_title']); $list_readers_bannettes_ui = new list_readers_bannettes_ui(); if(count($list_readers_bannettes_ui->get_objects()) == 1) { print $list_readers_bannettes_ui->get_display_search_form(); $objects = $list_readers_bannettes_ui->get_objects(); static::set_id_empr($objects[0]->id); $list_ui_instance = static::get_list_ui_instance(); print $list_ui_instance->get_display_list(); } else { static::set_list_ui_class_name('list_readers_bannettes_ui'); static::set_model_class_name('emprunteur'); parent::proceed($id); } break; } } protected static function get_list_ui_instance($filters=array(), $pager=array(), $applied_sort=array()) { return new static::$list_ui_class_name(array('proprio_bannette' => static::$id_empr)); } public static function set_id_empr($id_empr) { static::$id_empr = intval($id_empr); } }// end class