%#============================================================================
%# ePortal - WEB Based daily organizer
%# Author - S.Rusakov <rusakov_sa@users.sourceforge.net>
%#
%# 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.
%#
%#
%#----------------------------------------------------------------------------
&nbsp;
<% $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('&nbsp;') %>
<% $dlg->buttons() %>
<% $dlg->dialog_end %>
<p>


%#=== @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;

</%perl></%method>

%#=== @METAGS attr =========================================================
<%attr>
Title => {rus => "Настройка 'Популярные ресурсы'", eng => "Setup 'Most popular'"}
</%attr>


%#=== @metags once =========================================================
<%once>
my ($dlg, $obj);
</%once>

%#=== @metags cleanup =========================================================
<%cleanup>
($dlg, $obj) = ();
</%cleanup>

