%#============================================================================ %# ePortal - WEB Based daily organizer %# Author - S.Rusakov %# %# Copyright (c) 2000-2003 Sergey Rusakov. All rights reserved. %# This program is free software; you can redistribute it %# and/or modify it under the same terms as Perl itself. %# %# %#---------------------------------------------------------------------------- %# %# User editor %# %#----------------------------------------------------------------------------   <% $dlg->dialog_start( title => pick_lang(rus => "Подразделение в тел.справочнике", eng => "Edit department"), width => "450") %> <% $dlg->field("parent_id") %> % foreach my $field (qw/title dept_code/) { <% $dlg->field($field) %> % } <% $dlg->field("ts", RO => 1) %> <% $dlg->buttons %> <% $dlg->dialog_end %>   % ($dlg, $obj) = (); %#=== @METAGS attr ========================================================= <%attr> Title => {rus => "Подразделение в тел.справочнике", eng => "Edit department"} %#=== @metags once ========================================================= <%once> my ($dlg, $obj); %#=== @METAGS onStartRequest ==================================================== <%method onStartRequest><%perl> my %args = $m->request_args; $dlg = new ePortal::HTML::Dialog( obj => new ePortal::App::OffPhones::Department); my $location = try { $dlg->handle_request( ); } catch ePortal::Exception::DataNotValid with { my $E = shift; $session{ErrorMessage} = $E->text; ''; }; return $location if $location; $dlg->{obj}->Parent_id( $args{parent_id}+0 ) if exists $args{parent_id}; %#=== @METAGS HTMLhead ==================================================== <%method HTMLhead> <& PARENT:HTMLhead &>