get_datasources_list();
print "
".$msg['edition_state_label']."
";
switch($action){
case "add" :
case "edit" :
$editions_state = new editions_state($id);
if($partial_submit){//Modification par l'ajax ou par le javascript
$editions_state->get_from_form();
}
print $editions_state->get_form();
break;
case "save" :
$editions_state = new editions_state($id);
$editions_state->get_from_form();
$editions_state->save();
show_state_list();
break;
case "show" :
$editions_state = new editions_state($id);
print $editions_state->show($sub,$elem);
break;
case "delete" :
editions_state::delete($id);
default:
show_state_list();
break;
}
function show_state_list(){
print list_editions_states_ui::get_instance()->get_display_list();
}