1 [% USE HTML %]<body class="admin">
3 <script type="text/javascript" src="js/common.js"></script>
4 <script type="text/javascript">
6 function open_connection_test_window() {
7 // host name port user passwd
8 var url = "admin.pl?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")) + "&";
15 var parm = centerParms(400,300) + ",width=400,height=300,status=yes,scrollbars=yes";
17 window.open(url, "_new_generic", parm);
22 <form name="Form" method="post" action="admin.pl">
24 <div class="listtop" width="100%">[% title %]</div>
31 <th align="right">Anmeldung</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>
36 <th align="right">Passwort</th>
37 <td>[% IF CAN_CHANGE_PASSWORD %]<input type="password" name="new_password" size="8" value="********">[% ELSE %]********[% END %]</td>
41 <th align="right">Name</th>
42 <td><input name="name" size="15" value="[% HTML.escape(myc_name) %]"></td>
46 <th align="right">eMail</th>
47 <td><input name="email" size="30" value="[% HTML.escape(myc_email) %]"></td>
51 <th align="right">Unterschrift</th>
52 <td><textarea name="signature" rows="3" cols="35">[% HTML.escape(myc_signature) %]</textarea></td>
56 <th align="right">Telefon</th>
57 <td><input name="tel" size="14" value="[% HTML.escape(myc_tel) %]"></td>
61 <th align="right">Fax</th>
62 <td><input name="fax" size="14" value="[% HTML.escape(myc_fax) %]"></td>
66 <th align="right">Firma</th>
67 <td><input name="company" size="35" value="[% HTML.escape(myc_company) %]"></td>
71 <th align="right">Adresse</th>
72 <td><textarea name="address" rows="4" cols="35">[% HTML.escape(myc_address) %]</textarea></td>
76 <th align="right">Steuernummer</th>
77 <td><input name="taxnumber" size="14" value="[% HTML.escape(myc_taxnumber) %]"></td>
81 <th align="right">USt-IdNr.</th>
82 <td><input name="co_ustid" size="14" value="[% HTML.escape(myc_co_ustid) %]"></td>
86 <th align="right">DUNS-Nr.</th>
87 <td><input name="duns" size="14" value="[% HTML.escape(myc_duns) %]"></td>
95 <th align="right">Datumsformat</th>
97 <select name="dateformat">
98 [% FOREACH row = ALL_DATEFORMATS %]<option [% IF row.selected %]selected[% END %]>[% HTML.escape(row.format) %]</option>
105 <th align="right">Zahlenformat</th>
107 <select name="numberformat">
108 [% FOREACH row = ALL_NUMBERFORMATS %]<option [% IF row.selected %]selected[% END %]>[% HTML.escape(row.format) %]</option>
115 <th align="right">Auswahllistenbegrenzung</th>
116 <td><input name="vclimit" value="[% HTML.escape(myc_vclimit) %]"></td>
120 <th align="right">Sprache</th>
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>
130 <th align="right">Stilvorlage</th>
132 <select name="userstylesheet">
133 [% FOREACH row = ALL_STYLESHEETS %]<option [% IF row.selected %]selected[% END %]>[% HTML.escape(row.name) %]</option>
140 <th align="right">Drucker</th>
141 <td><input name="printer" size="20" value="[% HTML.escape(myc_printer) %]"></td>
144 <th align="right">benutze Vorlagen</th>
146 <select name="usetemplates">
147 [% FOREACH row = ALL_TEMPLATES %]<option [% IF row.selected %]selected[% END %]>[% HTML.escape(row.name) %]</option>
153 <th align="right">neue Vorlagen</th>
154 <td><input name="newtemplates"></td>
157 <th align="right">Vorlagen auswählen</th>
159 <select name="mastertemplates">
160 [% FOREACH row = ALL_MASTER_TEMPLATES %]<option [% IF row.selected %]selected[% END %]>[% HTML.escape(row.name) %]</option>
166 <th align="right">Menüsetup</th>
168 <select name="menustyle">
169 <option value="v3"[% IF menustyle_v3 %] selected[% END %]>Oben (mit CSS)</option>
170 <option value="neu"[% IF menustyle_neu %] selected[% END %]>Oben (mit Javascript)</option>
171 <option value="xml"[% IF menustyle_xml %] selected[% END %]>Oben (XUL; nur für Mozilla Firefox)</option>
172 <option value="old"[% IF menustyle_old %] selected[% END %]>Alt (seitlich)</option>
177 <input type="hidden" name="templates" value="[% HTML.escape(myc_templates) %]">
182 <tr class="listheading">
183 <th colspan="2">Datenbank</th>
190 <th align="right">Treiber</th>
192 <th align="right">Datenbankcomputer</th>
193 <td><input name="dbhost" size="30" value="[% HTML.escape(myc_dbhost) %]"></td>
197 <th align="right">Datenbank</th>
198 <td><input name="dbname" size="15" value="[% HTML.escape(myc_dbname) %]"></td>
199 <th align="right">Port</th>
200 <td><input name="dbport" size="4" value="[% HTML.escape(myc_dbport) %]"></td>
204 <th align="right">Benutzer</th>
205 <td><input name="dbuser" size="15" value="[% HTML.escape(myc_dbuser) %]"></td>
206 <th align="right">Passwort</th>
207 <td><input name="dbpasswd" type="password" size="10" value="[% HTML.escape(myc_dbpasswd) %]"></td>
211 <td colspan="2"><input type="button" class="submit" onclick="open_connection_test_window();" value="Verbindung testen"></td>
217 <tr><td colspan="2"><hr size="3" noshade></td></tr>
219 <tr class="listheading">
220 <th colspan="2">WEBDAV-Zugriff</th>
228 <input name="angebote" id="angebote"class="checkbox" type="checkbox" value="1" [% IF myc_angebote %]checked[% END %]>
229 <label for="angebote"> Angebot</label>
232 <input name="bestellungen" id="bestellungen" class="checkbox" type="checkbox" value="1" [% IF myc_bestellungen %]checked[% END %]>
233 <label for="bestellungen"> Bestellung</label>
236 <input name="rechnungen" id="rechnungen" class="checkbox" type="checkbox" value="1" [% IF myc_rechnung %]checked[% END %]>
237 <label for="rechnungen"> Rechnung</label>
243 <input name="anfragen" id="anfragen" class="checkbox" type="checkbox" value="1" [% IF myc_anfragen %]checked[% END %]>
244 <label for="anfragen"> Anfragen</label>
247 <input name="lieferantenbestellungen" id="lieferantenbestellungen" class="checkbox" type="checkbox" value="1" [% IF myc_lieferantenbestellungen %]checked[% END %]>
248 <label for="lieferantenbestellungen"> Lieferantenbestellung</label>
251 <input name="einkaufsrechnungen" id="einkaufsrechnungen" class="checkbox" type="checkbox" value="1" [% IF myc_einkaufsrechnungen %]checked[% END %]>
252 <label for="einkaufsrechnungen"> Einkaufsrechnung</label>
260 <tr><td colspan="2"><hr size="3" noshade></td></tr>
262 <tr class="listheading">
263 <th colspan="2">Grouppenzugehörigkeit</th>
267 <td colspan="2">Der Benutzer ist Mitglied in den folgenden Gruppen:</td>
271 <td colspan="2">[% FOREACH row = GROUPS %]<a href="admin.pl?action=edit_group&group_id=[% HTML.url(row.id) %]">[% HTML.escape(row.name) %]</a>
272 [% UNLESS loop.last %] | [% END %][% END %]</td>
276 <tr><td colspan="2"><hr size="3" noshade></td></tr>
280 <input name="callback" type="hidden" value="admin.pl?action=list_users">
282 <input type="submit" class="submit" name="action" value="Speichern">
285 <input type="submit" class="submit" name="action" value="Löschen">
286 <input type="hidden" name="edit" value="1">