| <% include('/elements/popup_link.html',
                       'action'      => 'config.cgi?key='.      $i->key.
                                                  ';agentnum='. $agentnum,
                       'width'       => $width,
                       'height'      => $height,
                       'actionlabel' => 'Enter configuration value',
                       'label'       => ''. $i->key. '',
                       'aname'       => $i->key,
                    )
          %>: <% $i->description %> | 
% my $n = 0;
% foreach my $type (@types) {
%   if ( $type eq '' ) { 
            
              %   } elsif (   $type eq 'image' ) {| no type |  
              | <% $conf->exists($i->key, $agentnum)
                     ? '  '
                     : 'empty'
                %> |  
              %   } elsif (   $type eq 'binary' ) {| <% $conf->exists($i->key, $agentnum)
                     ? qq!download!
                     : ''
                %> |  
              %   } elsif (    $type eq 'textarea'
%             || $type eq 'editlist'
%             || $type eq 'selectmultiple' ) {| <% $conf->exists($i->key, $agentnum)
                     ? qq!download!
                     : 'empty'
                %> |  
              %   } elsif ( $type eq 'checkbox' ) {| 
<% encode_entities(join("\n",
     map { length($_) > 88 ? substr($_,0,88).'...' : $_ }
         $conf->config($i->key, $agentnum)
   ) )
%>
 |  
              %   } elsif ( $type eq 'text' || $type eq 'select' ) {| YES' : 'ff0000">NO' %> |  
              %   } elsif ( $type eq 'select-sub' ) {| <% $conf->exists($i->key, $agentnum) ? $conf->config($i->key, $agentnum) : '' %> |  
              %   } else {| <% $conf->config($i->key, $agentnum) %>: 
                <% &{ $i->option_sub }( $conf->config($i->key, $agentnum) ) %> |  %   } 
%   $n++;
% }| unknown type <% $type %> |  | 
% }