%#============================================================================ %# ePortal - WEB Based daily organizer %# Author - S.Rusakov %# %# Copyright (c) 2000-2004 Sergey Rusakov. All rights reserved. %# This program is open source software %# %# %#----------------------------------------------------------------------------   <% $dlg->dialog_start( title => pick_lang(rus => "Настройка 'Популярные ресурсы'", eng => "Setup 'Most popular'"), width => 400) %> <% $dlg->field( "ctlg_mp_count") %> <% $dlg->field( "ctlg_mp_width") %> <% $dlg->row(' ') %> <% $dlg->buttons() %> <% $dlg->dialog_end %>

%#=== @metags onStartRequest ==================================================== <%method onStartRequest><%perl> my $obj = $m->comp('/catalog/mostpopular.mc:config_object'); $obj->restore; $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; %#=== @METAGS attr ========================================================= <%attr> Title => {rus => "Настройка 'Популярные ресурсы'", eng => "Setup 'Most popular'"} %#=== @metags once ========================================================= <%once> my ($dlg, $obj); %#=== @metags cleanup ========================================================= <%cleanup> ($dlg, $obj) = ();