get_form(); break; case 'save': $mailtpl=new mailtpl($id_mailtpl); $data['name']=$name; $data['objet']=$f_objet_mail; $data['tpl']=$f_message; $data['users']=$userautorisation; print $mailtpl->save($data); $mailtpls=new mailtpls(); print $mailtpls->get_list(); break; case 'delete': $mailtpl=new mailtpl($id_mailtpl); print $mailtpl->delete(); $mailtpls=new mailtpls(); print $mailtpls->get_list(); break; default: $mailtpls=new mailtpls(); print $mailtpls->get_list(); break; }