1 [% USE HTML %]<body onLoad="fokus()">
 
   3  <div class="listtop">[% title %]</div>
 
   5  <form method="post" action="am.pl" name="Form" onKeyUp="highlight(event)" onClick="highlight(event)">
 
   7   <ul id="maintab" class="shadetabs">
 
   8    <li class="selected"><a href="#" rel="page_personal_settings"><translate>Personal settings</translate></a></li>
 
   9    <li><a href="#" rel="page_display_options"><translate>Display options</translate></a></li>
 
  10    <li><a href="#" rel="page_print_options"><translate>Print options</translate></a></li>
 
  11    <li><a href="#" rel="page_todo_list_options"><translate>TODO list options</translate></a></li>
 
  14   <input type="hidden" name="type" value="preferences">
 
  15   <input type="hidden" name="role" value="[% HTML.escape(myconfig_role) %]">
 
  17   <div class="tabcontentstyle">
 
  19    <div id="page_personal_settings" class="tabcontent">
 
  23       <th align="right"><translate>Name</translate></th>
 
  24       <td><input name="name" size="15" value="[% HTML.escape(myconfig_name) %]"></td>
 
  28       <th align="right"><translate>Password</translate></th>
 
  30        [%- IF CAN_CHANGE_PASSWORD %]
 
  31        <input type="password" name="new_password" size="10" value="********">
 
  33        <input type="hidden" name="new_password" value="********">
 
  39       <th align="right"><translate>E-mail</translate></th>
 
  40       <td><input name="email" size="30" value="[% HTML.escape(myconfig_email) %]"></td>
 
  44       <th align="right"><translate>Signature</translate></th>
 
  45       <td><textarea name="signature" rows="3" cols="50">[% HTML.escape(myconfig_signature) %]</textarea></td>
 
  49       <th align="right"><translate>Phone</translate></th>
 
  50       <td><input name="tel" size="14" value="[% HTML.escape(myconfig_tel) %]"></td>
 
  54       <th align="right"><translate>Fax</translate></th>
 
  55       <td><input name="fax" size="14" value="[% HTML.escape(myconfig_fax) %]"></td>
 
  58       <th align="right"><translate>Company</translate></th>
 
  59       <td><input name="company" size="30" value="[% HTML.escape(myconfig_company) %]"></td>
 
  62       <th align="right"><translate>Address</translate></th>
 
  63       <td><textarea name="address" rows="4" cols="50">[% HTML.escape(myconfig_address) %]</textarea></td>
 
  67     <br style="clear: left" />
 
  70    <div id="page_display_options" class="tabcontent">
 
  74       <th align="right"><translate>Date Format</translate></th>
 
  76        <select name="dateformat">
 
  77         [%- FOREACH row = DATEFORMATS %]
 
  78         <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
 
  84       <th align="right"><translate>Output Number Format</translate></th>
 
  86        <select name="numberformat">
 
  87         [%- FOREACH row = NUMBERFORMATS %]
 
  88         <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
 
  95       <th align="right"><translate>Dropdown Limit</translate></th>
 
  96       <td><input name="vclimit" size="10" value="[% HTML.escape(myconfig_vclimit) %]"></td>
 
 100       <th align="right"><translate>Language</translate></th>
 
 102        <select name="countrycode">
 
 103         [%- FOREACH row = COUNTRYCODES %]
 
 104         <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
 
 111       <th align="right"><translate>Stylesheet</translate></th>
 
 113        <select name="usestylesheet">
 
 114         [%- FOREACH row = STYLESHEETS %]
 
 115         <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
 
 122       <th align="right"><translate>Setup Menu</translate></th>
 
 124        <input name="menustyle" id="menustyle_v3" type="radio" class="radio" value="v3" [% IF menustyle_v3 %]checked[% END %]> 
 
 125        <label for="menustyle_v3"><translate>Top (CSS)</translate></label>
 
 126        <input name="menustyle" id="menustyle_neu" type="radio" class="radio" value="neu" [% IF menustyle_neu %]checked[% END %]> 
 
 127        <label for="menustyle_neu"><translate>Top (Javascript)</translate></label>
 
 128        <input name="menustyle" id="menustyle_old" type="radio" class="radio" value="old" [% IF menustyle_old %]checked[% END %]> 
 
 129        <label for="menustyle_old"><translate>Old (on the side)</translate></label>
 
 130        <input name="menustyle" id="menustyle_xml" type="radio" class="radio" value="xml" [% IF menustyle_xml %]checked[% END %]> 
 
 131        <label for="menustyle_xml">XML (XUL,...)</label>
 
 136       <th align="right"><translate>Favorites</translate></th>
 
 137       <td><textarea name="favorites" rows="4" cols="50">[% HTML.escape(myconfig_favorites) %]</textarea></td>
 
 141       <th align="right"><translate>Form details (second row)</translate></th>
 
 143        <input type="radio" id="rad_show_form_details" name="show_form_details" value="1" [% IF myconfig_show_form_details %]checked[% END %]> 
 
 144        <label for="rad_show_form_details"><translate>Show by default</translate></label>
 
 145        <input type="radio" id="rad_hide_form_details" name="show_form_details" value="0" [% UNLESS myconfig_show_form_details %]checked[% END %]> 
 
 146        <label for="rad_hide_form_details"><translate>Hide by default</translate></label></td>
 
 150     <br style="clear: left" />
 
 153    <div id="page_print_options" class="tabcontent">
 
 156      <input name="printer" type="hidden" value="[% HTML.escape(myconfig_printer) %]">
 
 159       <th align="right"><translate>Default template format</translate></th>
 
 161        <select name="template_format">
 
 162         [%- FOREACH row = TEMPLATE_FORMATS %]
 
 163         <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
 
 170       <th align="right"><translate>Default output medium</translate></th>
 
 172        <select name="default_media">
 
 173         [%- FOREACH row = MEDIA %]
 
 174         <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
 
 181       <th align="right"><translate>Default printer</translate></th>
 
 183        <select name="default_printer_id">
 
 184         [%- FOREACH row = PRINTERS %]
 
 185         <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
 
 192       <th align="right"><translate>Number of copies</translate></th>
 
 193       <td><input name="copies" size="10" value="[% HTML.escape(myconfig_copies) %]"></td>
 
 197     <br style="clear: left" />
 
 200    <div id="page_todo_list_options" class="tabcontent">
 
 204       <th align="right"><translate>Show your TODO list after loggin in</translate></th>
 
 206        <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 %]>
 
 207        <label for="todo_cfg_show_after_login_1"><translate>Yes</translate></label>
 
 208        <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 %]>
 
 209        <label for="todo_cfg_show_after_login_0"><translate>No</translate></label>
 
 213      <tr class="listheading">
 
 214       <th colspan="3"><translate>Configuration of individual TODO items</translate></th>
 
 218       <th align="right"><translate>Show follow ups...</translate></th>
 
 220        <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 %]>
 
 221        <label for="todo_cfg_show_follow_ups"><translate>...on the TODO list</translate></label>
 
 224        <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 %]>
 
 225        <label for="todo_cfg_show_follow_ups_login"><translate>...after loggin in</translate></label>
 
 229      [%- IF AUTH_RIGHTS_SALES_QUOTATION_EDIT %]
 
 231       <th align="right"><translate>Show overdue sales quotations and requests for quotations...</translate></th>
 
 233        <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 %]>
 
 234        <label for="todo_cfg_show_overdue_sales_quotations"><translate>...on the TODO list</translate></label>
 
 237        <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 %]>
 
 238        <label for="todo_cfg_show_overdue_sales_quotations_login"><translate>...after loggin in</translate></label>
 
 244     <br style="clear: left" />
 
 248   <p><input type="submit" class="submit" name="action" value="<translate>Save</translate>"></p>
 
 251  <script type="text/javascript">
 
 253       //Start Tab Content script for UL with id="maintab" Separate multiple ids each with a comma.
 
 254       initializetabcontent("maintab");