% layout 'default', title => "Sme server 2 - emailaccess"; % content_for 'module' => begin
% if ($config->{debug} == 1) {

%= dumper $c->current_route %= dumper $mai_datas

% } % if ( stash 'error' ) {
%= $c->render_to_string(inline => stash 'error')
%}

<%= $title%>

%= form_for '/emailsettingd' => (method => 'POST') => begin %=l 'mai_DESC_POP_ACCESS_CONTROL'

%=l 'mai_LABEL_POP_ACCESS_CONTROL' % param 'POPAccess' => $c->get_current_pop3_access() unless param 'POPAccess'; %= select_field 'POPAccess' => $c->get_pop_opt(), class => 'input'

%=l 'mai_DESC_IMAP_ACCESS_CONTROL'

%=l 'mai_LABEL_IMAP_ACCESS_CONTROL' % param 'IMAPAccess' => $c->get_current_imap_access() unless param 'IMAPAccess'; %= select_field 'IMAPAccess' => $c->get_imap_opt(), class => 'input'

%=l 'mai_DESC_WEBMAIL'

%=l 'mai_LABEL_WEBMAIL' % param 'WebMail' => $c->get_current_webmail_status() unless param 'WebMail'; %= select_field 'WebMail' => $c->get_webmail_opt(), class => 'input'

% my $btn = l('SAVE'); %= submit_button "$btn", class => 'action' %= hidden_field 'trt' => 'ACC' % end
%end