%#============================================================================ %# 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. %# %# %#----------------------------------------------------------------------------   <% $dlg->dialog_start( width => 500, title => pick_lang(rus => "Архив", eng => "Archive") ) %> % foreach my $field (qw/title memo /) { <% $dlg->field($field) %> % } % if ($ePortal->isAdmin) { <% $dlg->row('
') %> % foreach my $field (qw/uid private xacl_read xacl_write/) { <% $dlg->field($field) %> % } % } <% $dlg->buttons %> <% $dlg->dialog_end %>

%#=== @metags once ========================================================= <%once> my ($dlg, $obj, $app); %#=== @METAGS cleanup ========================================================= <%cleanup> ($dlg, $obj, $app) = (); %#=== @METAGS attr ========================================================= <%attr> Title => {rus => "Архив", eng => "Archive"} %#=== @METAGS onStartRequest ==================================================== <%method onStartRequest><%perl> $obj = new ePortal::App::Diskoteka::Archive(); # Handle Dialog events $dlg = new ePortal::HTML::Dialog( obj => $obj); my $location = try { $dlg->handle_request( ); } catch ePortal::Exception::DataNotValid with { my $E = shift; $session{ErrorMessage} = $E->text; ''; }; return $location if $location;