diff options
Diffstat (limited to 'template/en/default/admin/params/common.html.tmpl')
-rw-r--r-- | template/en/default/admin/params/common.html.tmpl | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/template/en/default/admin/params/common.html.tmpl b/template/en/default/admin/params/common.html.tmpl index 34cd1d39c..4e2b8f821 100644 --- a/template/en/default/admin/params/common.html.tmpl +++ b/template/en/default/admin/params/common.html.tmpl @@ -17,11 +17,14 @@ # Rights Reserved. # # Contributor(s): Frédéric Buclin <LpSolit@gmail.com> + # Marc Schumann <wurblzap@gmail.com> #%] [%# INTERFACE: # panel: hash representing the current panel. #%] +[% sortlist_separator = '---' %] + <dl> [% FOREACH param = panel.param_list %] <dt><a name="[% param.name FILTER html %]">[% param.name FILTER html %]</a></dt> @@ -53,6 +56,57 @@ </option> [% END %] </select> + [% ELSIF param.type == "o" %] + <script type="text/javascript"><!-- + document.write("<span style=\"display: none\">"); + // --> + </script> + <input id="input_[% param.name FILTER html %]" size="80" + name="[% param.name FILTER html %]" + value="[% Param(param.name) FILTER html %]"><br> + <script type="text/javascript"><!-- + document.write("<\/span>"); + // --> + </script> + [% boxSize = 7 %] + [% boxSize = 3 + param.choices.size IF param.choices.size < 7 %] + [% plist = Param(param.name).split(',') %] + + <script type="text/javascript"><!-- + document.write( + '<table>' + + ' <tr>' + + ' <td rowspan="2">' + + ' <select id="select_[% param.name FILTER html %]"' + + ' size="[% boxSize FILTER html %]"' + + ' name="select_[% param.name FILTER html %]">' + + [% FOREACH item = plist %] + ' <option value="[% item FILTER html %]">[% item FILTER html %]<\/option>' + + [% END %] + ' <option class="sortlist_separator"' + + ' disabled="disabled"' + + ' value="[% sortlist_separator %]">active↑ ↓inactive<\/option>' + + [% FOREACH item = param.choices %] + [% IF lsearch(plist, item) == -1 %] + ' <option value="[% item FILTER html %]">[% item FILTER html %]<\/option>' + + [% END %] + [% END %] + ' <\/select>' + + ' <\/td>' + + ' <td style="vertical-align: bottom">' + + ' <button type="button"' + + ' onClick="sortedList_moveItem(\'[% param.name FILTER html %]\', -1, \'[% sortlist_separator %]\');">↑<\/button>' + + ' <\/td>' + + ' <\/tr>' + + ' <tr>' + + ' <td style="vertical-align: top">' + + ' <button type="button"' + + ' onClick="sortedList_moveItem(\'[% param.name FILTER html %]\', +1, \'[% sortlist_separator %]\');">↓<\/button>' + + ' <\/td>' + + ' <\/tr>' + + '<\/table>'); + // --> + </script> [% ELSIF param.type == "s" %] <select name="[% param.name FILTER html %]"> [% FOREACH item = param.choices %] |