Die JavaScript-Funktion "encodeURIComponent()" benutzt immer UTF-8 als Zeichensatz...
[kivitendo-erp.git] / templates / webpages / admin / edit_user_master.html
1 [% USE HTML %]<body class="admin">
2
3  <script type="text/javascript" src="js/common.js"></script>
4  <script type="text/javascript">
5   <!--
6       function open_connection_test_window() {
7         // host name port user passwd
8         var url = "admin.pl?INPUT_ENCODING=UTF-8&action=test_db_connection&" +
9           "dbhost="   + encodeURIComponent(get_input_value("dbhost"))   + "&" +
10           "dbport="   + encodeURIComponent(get_input_value("dbport"))   + "&" +
11           "dbname="   + encodeURIComponent(get_input_value("dbname"))   + "&" +
12           "dbuser="   + encodeURIComponent(get_input_value("dbuser"))   + "&" +
13           "dbpasswd=" + encodeURIComponent(get_input_value("dbpasswd")) + "&";
14
15         var parm = centerParms(400,300) + ",width=400,height=300,status=yes,scrollbars=yes";
16
17         window.open(url, "_new_generic", parm);
18       }
19     -->
20  </script>
21
22  <form name="Form" method="post" action="admin.pl">
23
24   <div class="listtop" width="100%">[% title %]</div>
25
26   <table width="100%">
27    <tr valign="top">
28     <td>
29      <table>
30       <tr>
31        <th align="right"><translate>Login</translate></th>
32        <td>[% IF edit %]<input type="hidden" name="login" value="[% HTML.escape(myc_login) %]">[% HTML.escape(myc_login) %][% ELSE %]<input name="login" value="[% HTML.escape(myc_login) %]">[% END %]</td>
33       </tr>
34
35       <tr>
36        <th align="right"><translate>Password</translate></th>
37        <td>[% IF CAN_CHANGE_PASSWORD %]<input type="password" name="new_password" size="8" value="********">[% ELSE %]********[% END %]</td>
38       </tr>
39
40       <tr>
41        <th align="right"><translate>Name</translate></th>
42        <td><input name="name" size="15" value="[% HTML.escape(myc_name) %]"></td>
43       </tr>
44
45       <tr>
46        <th align="right"><translate>E-mail</translate></th>
47        <td><input name="email" size="30" value="[% HTML.escape(myc_email) %]"></td>
48       </tr>
49
50       <tr valign="top">
51        <th align="right"><translate>Signature</translate></th>
52        <td><textarea name="signature" rows="3" cols="35">[% HTML.escape(myc_signature) %]</textarea></td>
53       </tr>
54
55       <tr>
56        <th align="right"><translate>Phone</translate></th>
57        <td><input name="tel" size="14" value="[% HTML.escape(myc_tel) %]"></td>
58       </tr>
59
60       <tr>
61        <th align="right"><translate>Fax</translate></th>
62        <td><input name="fax" size="14" value="[% HTML.escape(myc_fax) %]"></td>
63       </tr>
64
65       <tr>
66        <th align="right"><translate>Company</translate></th>
67        <td><input name="company" size="35" value="[% HTML.escape(myc_company) %]"></td>
68       </tr>
69
70       <tr valign="top">
71        <th align="right"><translate>Address</translate></th>
72        <td><textarea name="address" rows="4" cols="35">[% HTML.escape(myc_address) %]</textarea></td>
73       </tr>
74
75       <tr valign="top">
76        <th align="right"><translate>Tax number</translate></th>
77        <td><input name="taxnumber" size="14" value="[% HTML.escape(myc_taxnumber) %]"></td>
78       </tr>
79
80       <tr valign="top">
81        <th align="right"><translate>Ust-IDNr</translate></th>
82        <td><input name="co_ustid" size="14" value="[% HTML.escape(myc_co_ustid) %]"></td>
83       </tr>
84
85       <tr valign="top">
86        <th align="right"><translate>DUNS-Nr</translate></th>
87        <td><input name="duns" size="14" value="[% HTML.escape(myc_duns) %]"></td>
88       </tr>
89      </table>
90     </td>
91
92     <td>
93      <table>
94       <tr>
95        <th align="right"><translate>Date Format</translate></th>
96        <td>
97         <select name="dateformat">
98          [% FOREACH row = ALL_DATEFORMATS %]<option [% IF row.selected %]selected[% END %]>[% HTML.escape(row.format) %]</option>
99          [% END %]
100         </select>
101        </td>
102       </tr>
103
104       <tr>
105        <th align="right"><translate>Number Format</translate></th>
106        <td>
107         <select name="numberformat">
108          [% FOREACH row = ALL_NUMBERFORMATS %]<option [% IF row.selected %]selected[% END %]>[% HTML.escape(row.format) %]</option>
109          [% END %]
110         </select>
111        </td>
112       </tr>
113
114       <tr>
115        <th align="right"><translate>Dropdown Limit</translate></th>
116        <td><input name="vclimit" value="[% HTML.escape(myc_vclimit) %]"></td>
117       </tr>
118
119       <tr>
120        <th align="right"><translate>Language</translate></th>
121        <td>
122         <select name="countrycode">
123          [% FOREACH row = ALL_COUNTRYCODES %]<option value="[% HTML.escape(row.value) %]" [% IF row.selected %]selected[% END %]>[% HTML.escape(row.name) %]</option>
124          [% END %]
125         </select>
126        </td>
127       </tr>
128
129       <tr>
130        <th align="right"><translate>Stylesheet</translate></th>
131        <td>
132         <select name="userstylesheet">
133          [% FOREACH row = ALL_STYLESHEETS %]<option [% IF row.selected %]selected[% END %]>[% HTML.escape(row.name) %]</option>
134          [% END %]
135         </select>
136        </td>
137       </tr>
138
139       <tr>
140        <th align="right"><translate>Printer</translate></th>
141        <td><input name="printer" size="20" value="[% HTML.escape(myc_printer) %]"></td>
142       </tr>
143       <tr>
144        <th align="right"><translate>Use Templates</translate></th>
145        <td>
146         <select name="usetemplates">
147          [% FOREACH row = ALL_TEMPLATES %]<option [% IF row.selected %]selected[% END %]>[% HTML.escape(row.name) %]</option>
148          [% END %]
149         </select>
150        </td>
151       </tr>
152       <tr>
153        <th align="right"><translate>New Templates</translate></th>
154        <td><input name="newtemplates"></td>
155       </tr>
156       <tr>
157        <th align="right"><translate>Setup Templates</translate></th>
158        <td>
159         <select name="mastertemplates">
160          [% FOREACH row = ALL_MASTER_TEMPLATES %]<option [% IF row.selected %]selected[% END %]>[% HTML.escape(row.name) %]</option>
161          [% END %]
162         </select>
163        </td>
164       </tr>
165       <tr>
166        <th align="right"><translate>Setup Menu</translate></th>
167        <td>
168         <select name="menustyle">
169          <option value="v3"[% IF menustyle_v3 %] selected[% END %]><translate>Top (CSS)</translate></option>
170          <option value="neu"[% IF menustyle_neu %] selected[% END %]><translate>Top (Javascript)</translate></option>
171          <option value="js"[% IF menustyle_js %] selected[% END %]><translate>Top (Javascript) old</translate></option>
172          <option value="xml"[% IF menustyle_xml %] selected[% END %]><translate>Top (XUL; only for Mozilla Firefox)</translate></option>
173          <option value="old"[% IF menustyle_old %] selected[% END %]><translate>Old (on the side)</translate></option>
174         </select>
175        </td>
176       </tr>
177
178       <input type="hidden" name="templates" value="[% HTML.escape(myc_templates) %]">
179      </table>
180     </td>
181    </tr>
182
183    <tr class="listheading">
184     <th colspan="2"><translate>Database</translate></th>
185    </tr>
186
187    <tr>
188     <td colspan="2">
189      <table>
190       <tr>
191        <th align="right"><translate>Driver</translate></th>
192        <td>PostgreSQL</td>
193        <th align="right"><translate>Host</translate></th>
194        <td><input name="dbhost" size="30" value="[% HTML.escape(myc_dbhost) %]"></td>
195       </tr>
196
197       <tr>
198        <th align="right"><translate>Dataset</translate></th>
199        <td><input name="dbname" size="15" value="[% HTML.escape(myc_dbname) %]"></td>
200        <th align="right"><translate>Port</translate></th>
201        <td><input name="dbport" size="4" value="[% HTML.escape(myc_dbport) %]"></td>
202       </tr>
203
204       <tr>
205        <th align="right"><translate>User</translate></th>
206        <td><input name="dbuser" size="15" value="[% HTML.escape(myc_dbuser) %]"></td>
207        <th align="right"><translate>Password</translate></th>
208        <td><input name="dbpasswd" type="password" size="10" value="[% HTML.escape(myc_dbpasswd) %]"></td>
209       </tr>
210
211       <tr>
212        <td colspan="2"><input type="button" class="submit" onclick="open_connection_test_window();" value="<translate>Test connection</translate>"></td>
213       </tr>
214      </table>
215     </td>
216    </tr>
217
218    <tr><td colspan="2"><hr size="3" noshade></td></tr>
219
220    <tr class="listheading">
221     <th colspan="2"><translate>WEBDAV access</translate></th>
222    </tr>
223
224    <tr>
225     <td colspan="2">
226      <table>
227       <tr>
228        <td>
229         <input name="angebote" id="angebote"class="checkbox" type="checkbox" value="1" [% IF myc_angebote %]checked[% END %]>
230         <label for="angebote">&nbsp;Angebot</label>
231        </td>
232        <td>
233         <input name="bestellungen" id="bestellungen" class="checkbox" type="checkbox" value="1" [% IF myc_bestellungen %]checked[% END %]>
234         <label for="bestellungen">&nbsp;Bestellung</label>
235        </td>
236        <td>
237         <input name="rechnungen" id="rechnungen" class="checkbox" type="checkbox" value="1" [% IF myc_rechnung %]checked[% END %]>
238         <label for="rechnungen">&nbsp;Rechnung</label>
239        </td>
240       </tr>
241
242       <tr>
243        <td>
244         <input name="anfragen" id="anfragen" class="checkbox" type="checkbox" value="1" [% IF myc_anfragen %]checked[% END %]>
245         <label for="anfragen">&nbsp;Anfragen</label>
246        </td>
247        <td>
248         <input name="lieferantenbestellungen" id="lieferantenbestellungen" class="checkbox" type="checkbox" value="1" [% IF myc_lieferantenbestellungen %]checked[% END %]>
249         <label for="lieferantenbestellungen">&nbsp;Lieferantenbestellung</label>
250        </td>
251        <td>
252         <input name="einkaufsrechnungen" id="einkaufsrechnungen" class="checkbox" type="checkbox" value="1" [% IF myc_einkaufsrechnungen %]checked[% END %]>
253         <label for="einkaufsrechnungen">&nbsp;Einkaufsrechnung</label>
254        </td>
255       </tr>
256      </table>
257     </td>
258    </tr>
259
260    [% IF edit %]
261    <tr><td colspan="2"><hr size="3" noshade></td></tr>
262
263    <tr class="listheading">
264     <th colspan="2"><translate>Group membership</translate></th>
265    </tr>
266
267    <tr>
268     <td colspan="2"><translate>The user is a member in the following group(s):</translate></td>
269    </tr>
270
271    <tr>
272     <td colspan="2">[% FOREACH row = GROUPS %]<a href="admin.pl?action=edit_group&group_id=[% HTML.url(row.id) %]">[% HTML.escape(row.name) %]</a>
273      [% UNLESS loop.last %] | [% END %][% END %]</td>
274    </tr>
275    [% END %]
276
277    <tr><td colspan="2"><hr size="3" noshade></td></tr>
278
279   </table>
280
281   <input name="callback" type="hidden" value="admin.pl?action=list_users">
282
283   <input type="submit" class="submit" name="action" value="<translate>Save</translate>">
284
285   [% IF edit %]
286    <input type="submit" class="submit" name="action" value="<translate>Delete</translate>">
287    <input type="hidden" name="edit" value="1">
288   [% END %]
289
290  </form>
291
292 </body>
293 </html>