% my $n = 0;
% my $submit = 0;
% foreach my $type (@types) {
% if ( $type eq '' ) {
no type
% } elsif ( $type eq 'image' ) {
% $submit++;
<% $conf->exists($key, $agentnum)
? 'Current image '.
' '
: ''
%>
New image filename ">
% } elsif ( $type eq 'binary' ) {
% $submit++;
Filename ">
% } elsif ( $type eq 'textarea' ) {
% $submit++;
% } elsif ( $type eq 'checkbox' ) {
%
% if ( $agentnum && $conf->exists($key) && ! $agent_bool ) {
" type="checkbox" value="1" CHECKED DISABLED>
(global setting cannot yet be overridden)
% } else {
% $submit++;
" type="checkbox" value="1"
<% $conf->config_bool($key, $agentnum) ? 'CHECKED' : '' %> >
% }
% } elsif ( $type eq 'text' ) {
% $submit++;
" type="text" value="<% $conf->exists($key, $agentnum) ? $conf->config($key, $agentnum) : '' |h %>">
% } elsif ( $type eq 'select' || $type eq 'selectmultiple' ) {
% $submit++;
% } elsif ( $type eq 'select-sub' ) {
% $submit++;
% } elsif ( $type eq 'editlist' ) {
% $submit++;
()">
<% itable() %> |