[%- USE T8 %]
[%- USE LxERP %]
-[% USE HTML %][% USE L %]<body onLoad="fokus()">
-
- <p>
- <div class="listtop">[% title %]</div>
- </p>
+[%- USE HTML %][%- USE L %]
+ <div class="listtop">[% title %]</div>
<form method="post" action="am.pl" name="Form">
-
- <ul id="maintab" class="shadetabs">
- <li class="selected"><a href="#" rel="page_personal_settings">[% 'Personal settings' | $T8 %]</a></li>
- <li><a href="#" rel="page_display_options">[% 'Display options' | $T8 %]</a></li>
- <li><a href="#" rel="page_print_options">[% 'Print options' | $T8 %]</a></li>
- <li><a href="#" rel="page_todo_list_options">[% 'TODO list options' | $T8 %]</a></li>
- </ul>
-
<input type="hidden" name="type" value="preferences">
- <div class="tabcontentstyle">
+ <div class="tabwidget">
+ <ul>
+ <li><a href="#page_personal_settings">[% 'Personal settings' | $T8 %]</a></li>
+ <li><a href="#page_display_options">[% 'Display options' | $T8 %]</a></li>
+ <li><a href="#page_print_options">[% 'Print options' | $T8 %]</a></li>
+ <li><a href="#page_todo_list_options">[% 'TODO list options' | $T8 %]</a></li>
+ </ul>
- <div id="page_personal_settings" class="tabcontent">
+ <div id="page_personal_settings">
<table>
<tr>
<th align="right">[% 'Fax' | $T8 %]</th>
<td><input name="fax" size="14" value="[% HTML.escape(myconfig_fax) %]"></td>
</tr>
- <tr>
- <th align="right">[% 'Company' | $T8 %]</th>
- <td><input name="company" size="30" value="[% HTML.escape(myconfig_company) %]"></td>
- </tr>
- <tr valign="top">
- <th align="right">[% 'Address' | $T8 %]</th>
- <td><textarea name="address" rows="4" cols="50">[% HTML.escape(myconfig_address) %]</textarea></td>
- </tr>
- <tr>
- <th align="right">[% 'SEPA creditor ID' | $T8 %]</th>
- <td><input name="sepa_creditor_id" size="30" maxlength="35" value="[% HTML.escape(myconfig_sepa_creditor_id) %]"></td>
- </tr>
- </table>
- <br style="clear: left" />
+ <tr>
+ <th align="right">[% 'taxincluded checked' | $T8 %]</th>
+ <td>
+ [% L.yes_no_tag('taxincluded_checked', myconfig_taxincluded_checked) %]
+ </td>
+ </tr>
+
+ </table>
</div>
- <div id="page_display_options" class="tabcontent">
+ <div id="page_display_options">
<table>
<tr>
<th align="right">[% 'Date Format' | $T8 %]</th>
<td>
- <select name="dateformat">
- [%- FOREACH row = DATEFORMATS %]
- <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
- [%- END %]
- </select>
+ [% L.select_tag('dateformat', DATEFORMATS, value_key = 'value', title_key = 'name') %]
</td>
</tr>
+ <tr>
+ <th align="right">[% 'Time Format' | $T8 %]</th>
+ <td>
+ [% L.select_tag('timeformat', TIMEFORMATS, value_key = 'value', title_key = 'name') %]
+ </td>
+ </tr>
<tr>
<th align="right">[% 'Output Number Format' | $T8 %]</th>
<td>
- <select name="numberformat">
- [%- FOREACH row = NUMBERFORMATS %]
- <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
- [%- END %]
- </select>
+ [% L.select_tag('numberformat', NUMBERFORMATS, value_key = 'value', title_key = 'name') %]
</td>
</tr>
<tr>
<th align="right">[% 'Language' | $T8 %]</th>
<td>
- <select name="countrycode">
- [%- FOREACH row = COUNTRYCODES %]
- <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
- [%- END %]
- </select>
+ [% L.select_tag('countrycode', COUNTRYCODES, value_key = 'value', title_key = 'name') %]
</td>
</tr>
<tr>
<th align="right">[% 'Stylesheet' | $T8 %]</th>
<td>
- <select name="usestylesheet">
- [%- FOREACH row = STYLESHEETS %]
- <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
- [%- END %]
- </select>
+ [% L.select_tag('usestylesheet', STYLESHEETS, value_key = 'value', title_key = 'name') %]
</td>
</tr>
<select name="menustyle">
<option value="old"[% IF myconfig_menustyle == 'old' %] selected[% END %]>[% 'Old (on the side)' | $T8 %]</option>
<option value="v3"[% IF myconfig_menustyle == 'v3' %] selected[% END %]>[% 'Top (CSS)' | $T8 %]</option>
- <option value="v4"[% IF myconfig_menustyle == 'v4' %] selected[% END %]>[% 'Top (CSS) new' | $T8 %]</option>
<option value="neu"[% IF myconfig_menustyle == 'neu' %] selected[% END %]>[% 'Top (Javascript)' | $T8 %]</option>
</select>
</td>
</td>
</tr>
</table>
-
- <br style="clear: left" />
</div>
- <div id="page_print_options" class="tabcontent">
+ <div id="page_print_options">
<table>
<input name="printer" type="hidden" value="[% HTML.escape(myconfig_printer) %]">
<tr>
<th align="right">[% 'Default template format' | $T8 %]</th>
<td>
- <select name="template_format">
- [%- FOREACH row = TEMPLATE_FORMATS %]
- <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
- [%- END %]
- </select>
+ [% L.select_tag('template_format', TEMPLATE_FORMATS, value_key = 'value', title_key = 'name') %]
</td>
</tr>
<tr>
<th align="right">[% 'Default output medium' | $T8 %]</th>
<td>
- <select name="default_media">
- [%- FOREACH row = MEDIA %]
- <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
- [%- END %]
- </select>
+ [% L.select_tag('default_media', MEDIA, value_key = 'value', title_key = 'name') %]
</td>
</tr>
<tr>
<th align="right">[% 'Default printer' | $T8 %]</th>
<td>
- [% L.select_tag('default_printer_id', L.options_for_select(PRINTERS, default => myconfig_default_printer_id, title => 'printer_description', with_empty => 1)) %]
+ [% L.select_tag('default_printer_id', PRINTERS, default = myconfig_default_printer_id, title_key = 'printer_description', with_empty = 1) %]
</td>
</tr>
<td><input name="copies" size="10" value="[% HTML.escape(myconfig_copies) %]"></td>
</tr>
</table>
-
- <br style="clear: left" />
</div>
- <div id="page_todo_list_options" class="tabcontent">
+ <div id="page_todo_list_options">
<table>
<tr>
</tr>
[%- END %]
</table>
-
- <br style="clear: left" />
</div>
</div>
<p><input type="submit" class="submit" name="action" value="[% 'Save' | $T8 %]"></p>
</form>
-
- <script type="text/javascript">
- <!--
- var maintab = new ddtabcontent("maintab");
- maintab.setpersist(true);
- maintab.setselectedClassTarget("link"); //"link" or "linkparent"
- maintab.init();
- -->
- </script>
-
-</body>
-</html>