1 [% USE HTML %]<body onLoad="fokus()">
4 <div class="listtop">[% title %]</div>
7 <form method="post" action="am.pl" name="Form">
9 <ul id="maintab" class="shadetabs">
10 <li class="selected"><a href="#" rel="page_personal_settings">Personal settings</a></li>
11 <li><a href="#" rel="page_display_options">Display options</a></li>
12 <li><a href="#" rel="page_print_options">Print options</a></li>
13 <li><a href="#" rel="page_todo_list_options">TODO list options</a></li>
16 <input type="hidden" name="type" value="preferences">
17 <input type="hidden" name="role" value="[% HTML.escape(myconfig_role) %]">
19 <div class="tabcontentstyle">
21 <div id="page_personal_settings" class="tabcontent">
25 <th align="right">Name</th>
26 <td><input name="name" size="15" value="[% HTML.escape(myconfig_name) %]"></td>
30 <th align="right">Password</th>
32 [%- IF CAN_CHANGE_PASSWORD %]
33 <input type="password" name="new_password" size="10" value="********">
35 <input type="hidden" name="new_password" value="********">
41 <th align="right">E-mail</th>
42 <td><input name="email" size="30" value="[% HTML.escape(myconfig_email) %]"></td>
46 <th align="right">Signature</th>
47 <td><textarea name="signature" rows="3" cols="50">[% HTML.escape(myconfig_signature) %]</textarea></td>
51 <th align="right">Phone</th>
52 <td><input name="tel" size="14" value="[% HTML.escape(myconfig_tel) %]"></td>
56 <th align="right">Fax</th>
57 <td><input name="fax" size="14" value="[% HTML.escape(myconfig_fax) %]"></td>
60 <th align="right">Company</th>
61 <td><input name="company" size="30" value="[% HTML.escape(myconfig_company) %]"></td>
64 <th align="right">Address</th>
65 <td><textarea name="address" rows="4" cols="50">[% HTML.escape(myconfig_address) %]</textarea></td>
69 <br style="clear: left" />
72 <div id="page_display_options" class="tabcontent">
76 <th align="right">Date Format</th>
78 <select name="dateformat">
79 [%- FOREACH row = DATEFORMATS %]
80 <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
86 <th align="right">Output Number Format</th>
88 <select name="numberformat">
89 [%- FOREACH row = NUMBERFORMATS %]
90 <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
97 <th align="right">Dropdown Limit</th>
98 <td><input name="vclimit" size="10" value="[% HTML.escape(myconfig_vclimit) %]"></td>
102 <th align="right">Language</th>
104 <select name="countrycode">
105 [%- FOREACH row = COUNTRYCODES %]
106 <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
113 <th align="right">Stylesheet</th>
115 <select name="usestylesheet">
116 [%- FOREACH row = STYLESHEETS %]
117 <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
124 <th align="right">Setup Menu</th>
126 <select name="menustyle">
127 <option value="v3"[% IF myconfig_menustyle == 'v3' %] selected[% END %]>Top (CSS)</option>
128 <option value="v4"[% IF myconfig_menustyle == 'v4' %] selected[% END %]>Top (CSS) new</option>
129 <option value="neu"[% IF myconfig_menustyle == 'neu' %] selected[% END %]>Top (Javascript)</option>
130 <option value="xml"[% IF myconfig_menustyle == 'xml' %] selected[% END %]>Top (XUL; only for Mozilla Firefox)</option>
131 <option value="old"[% IF myconfig_menustyle == 'old' %] selected[% END %]>Old (on the side)</option>
137 <th align="right">Favorites</th>
138 <td><textarea name="favorites" rows="4" cols="50">[% HTML.escape(myconfig_favorites) %]</textarea></td>
142 <th align="right">Form details (second row)</th>
144 <select name="show_form_details">
145 <option value="1"[% IF myconfig_show_form_details %] selected[% END %]>Show by default</option>
146 <option value="0"[% IF !myconfig_show_form_details %] selected[% END %]>Hide by default</option>
152 <br style="clear: left" />
155 <div id="page_print_options" class="tabcontent">
158 <input name="printer" type="hidden" value="[% HTML.escape(myconfig_printer) %]">
161 <th align="right">Default template format</th>
163 <select name="template_format">
164 [%- FOREACH row = TEMPLATE_FORMATS %]
165 <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
172 <th align="right">Default output medium</th>
174 <select name="default_media">
175 [%- FOREACH row = MEDIA %]
176 <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
183 <th align="right">Default printer</th>
185 <select name="default_printer_id">
186 [%- FOREACH row = PRINTERS %]
187 <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
194 <th align="right">Number of copies</th>
195 <td><input name="copies" size="10" value="[% HTML.escape(myconfig_copies) %]"></td>
199 <br style="clear: left" />
202 <div id="page_todo_list_options" class="tabcontent">
206 <th align="right">Show your TODO list after loggin in</th>
208 <input type="radio" name="todo_cfg.show_after_login" id="todo_cfg_show_after_login_1" value="1"[% IF todo_cfg.show_after_login %] checked[% END %]>
209 <label for="todo_cfg_show_after_login_1">Yes</label>
210 <input type="radio" name="todo_cfg.show_after_login" id="todo_cfg_show_after_login_0" value="0"[% IF !todo_cfg.show_after_login %] checked[% END %]>
211 <label for="todo_cfg_show_after_login_0">No</label>
215 <tr class="listheading">
216 <th colspan="3">Configuration of individual TODO items</th>
220 <th align="right">Show follow ups...</th>
222 <input type="checkbox" name="todo_cfg.show_follow_ups" id="todo_cfg_show_follow_ups" value="1"[% IF todo_cfg.show_follow_ups %] checked[% END %]>
223 <label for="todo_cfg_show_follow_ups">...on the TODO list</label>
226 <input type="checkbox" name="todo_cfg.show_follow_ups_login" id="todo_cfg_show_follow_ups_login" value="1"[% IF todo_cfg.show_follow_ups_login %] checked[% END %]>
227 <label for="todo_cfg_show_follow_ups_login">...after loggin in</label>
231 [%- IF AUTH_RIGHTS_SALES_QUOTATION_EDIT %]
233 <th align="right">Show overdue sales quotations and requests for quotations...</th>
235 <input type="checkbox" name="todo_cfg.show_overdue_sales_quotations" id="todo_cfg_show_overdue_sales_quotations" value="1"[% IF todo_cfg.show_overdue_sales_quotations %] checked[% END %]>
236 <label for="todo_cfg_show_overdue_sales_quotations">...on the TODO list</label>
239 <input type="checkbox" name="todo_cfg.show_overdue_sales_quotations_login" id="todo_cfg_show_overdue_sales_quotations_login" value="1"[% IF todo_cfg.show_overdue_sales_quotations_login %] checked[% END %]>
240 <label for="todo_cfg_show_overdue_sales_quotations_login">...after loggin in</label>
246 <br style="clear: left" />
250 <p><input type="submit" class="submit" name="action" value="Save"></p>
253 <script type="text/javascript">
255 var maintab = new ddtabcontent("maintab");
256 maintab.setpersist(true);
257 maintab.setselectedClassTarget("link"); //"link" or "linkparent"