-
- <% $i->key %> - <% $i->description %>
- |
+ <% 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 %>
+ |
-% foreach my $type ( ref($i->type) ? @{$i->type} : $i->type ) {
+% foreach my $type (@types) {
% my $n = 0;
% if ( $type eq '' ) {
@@ -45,8 +81,8 @@
% } elsif ( $type eq 'binary' ) {
- <% $conf->exists($i->key)
- ? qq!download!
+ <% $conf->exists($i->key, $agentnum)
+ ? qq!download!
: 'empty'
%>
@@ -56,28 +92,32 @@
-
-<% encode_entities(join("\n", $conf->config($i->key) ) ) %>
-
+
+<% encode_entities(join("\n",
+ map { length($_) > 88 ? substr($_,0,88).'...' : $_ }
+ $conf->config($i->key, $agentnum)
+ ) )
+%>
+
|
% } elsif ( $type eq 'checkbox' ) {
- YES' : 'ff0000">NO' %> |
+ YES' : 'ff0000">NO' %> |
% } elsif ( $type eq 'text' || $type eq 'select' ) {
- <% $conf->exists($i->key) ? $conf->config($i->key) : '' %>
+ <% $conf->exists($i->key, $agentnum) ? $conf->config($i->key, $agentnum) : '' %>
|
% } elsif ( $type eq 'select-sub' ) {
- <% $conf->config($i->key) %>:
- <% &{ $i->option_sub }( $conf->config($i->key) ) %>
+ <% $conf->config($i->key, $agentnum) %>:
+ <% &{ $i->option_sub }( $conf->config($i->key, $agentnum) ) %>
|
% } else {
@@ -98,6 +138,29 @@
|