diff options
author | ivan <ivan> | 2009-02-09 14:05:31 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-02-09 14:05:31 +0000 |
commit | a4b8ce8cd1d309de00c64f38049a8dda38798046 (patch) | |
tree | 8c36c37a563900083468912ebeb373da39c59cca /httemplate/config/config.cgi | |
parent | 9925a640ebd475bf260b4d9e065b3f01e929e20a (diff) |
rest of per-agent config for company_name, company_address, logo, etc.. RT#3989
Diffstat (limited to 'httemplate/config/config.cgi')
-rw-r--r-- | httemplate/config/config.cgi | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi index 4bcd8e414..f390c64a3 100644 --- a/httemplate/config/config.cgi +++ b/httemplate/config/config.cgi @@ -44,13 +44,25 @@ Setting <b><% $key %></b> <font color="#ff0000">no type</font> +% } elsif ( $type eq 'image' ) { + + <% $conf->exists($key, $agentnum) + ? 'Current image<br>'. + '<img src="config-image.cgi?key='. $key. + ';agentnum='. $agentnum. '"><br>' + : '' + %> + + <BR> + New image filename <input type="file" name="<% "$key$n" %>"> + % } elsif ( $type eq 'binary' ) { Filename <input type="file" name="<% "$key$n" %>"> % } elsif ( $type eq 'textarea' ) { - <textarea name="<% "$key$n" %>" rows=12 cols=78 wrap="off"><% join("\n", $conf->config($key, $agentnum)) %></textarea> + <textarea name="<% "$key$n" %>" rows=12 cols=78 wrap="off"><% join("\n", $conf->config($key, $agentnum)) |h %></textarea> % } elsif ( $type eq 'checkbox' ) { @@ -259,7 +271,7 @@ Setting <b><% $key %></b> % } else { - <font color="#ff0000">unknown type $type</font> + <font color="#ff0000">unknown type <% $type %></font> % } % $n++; |