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?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")) + "&";
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"><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>
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>
41 <th align="right"><translate>Name</translate></th>
42 <td><input name="name" size="15" value="[% HTML.escape(myc_name) %]"></td>
46 <th align="right"><translate>E-mail</translate></th>
47 <td><input name="email" size="30" value="[% HTML.escape(myc_email) %]"></td>
51 <th align="right"><translate>Signature</translate></th>
52 <td><textarea name="signature" rows="3" cols="35">[% HTML.escape(myc_signature) %]</textarea></td>
56 <th align="right"><translate>Phone</translate></th>
57 <td><input name="tel" size="14" value="[% HTML.escape(myc_tel) %]"></td>
61 <th align="right"><translate>Fax</translate></th>
62 <td><input name="fax" size="14" value="[% HTML.escape(myc_fax) %]"></td>
66 <th align="right"><translate>Company</translate></th>
67 <td><input name="company" size="35" value="[% HTML.escape(myc_company) %]"></td>
71 <th align="right"><translate>Address</translate></th>
72 <td><textarea name="address" rows="4" cols="35">[% HTML.escape(myc_address) %]</textarea></td>
76 <th align="right"><translate>Tax number</translate></th>
77 <td><input name="taxnumber" size="14" value="[% HTML.escape(myc_taxnumber) %]"></td>
81 <th align="right"><translate>Ust-IDNr</translate></th>
82 <td><input name="co_ustid" size="14" value="[% HTML.escape(myc_co_ustid) %]"></td>
86 <th align="right"><translate>DUNS-Nr</translate></th>
87 <td><input name="duns" size="14" value="[% HTML.escape(myc_duns) %]"></td>
95 <th align="right"><translate>Date Format</translate></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"><translate>Number Format</translate></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"><translate>Dropdown Limit</translate></th>
116 <td><input name="vclimit" value="[% HTML.escape(myc_vclimit) %]"></td>
120 <th align="right"><translate>Language</translate></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"><translate>Stylesheet</translate></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"><translate>Printer</translate></th>
141 <td><input name="printer" size="20" value="[% HTML.escape(myc_printer) %]"></td>
144 <th align="right"><translate>Use Templates</translate></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"><translate>New Templates</translate></th>
154 <td><input name="newtemplates"></td>
157 <th align="right"><translate>Setup Templates</translate></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"><translate>Setup Menu</translate></th>
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>
178 <input type="hidden" name="templates" value="[% HTML.escape(myc_templates) %]">
183 <tr class="listheading">
184 <th colspan="2"><translate>Database</translate></th>
191 <th align="right"><translate>Driver</translate></th>
193 <th align="right"><translate>Host</translate></th>
194 <td><input name="dbhost" size="30" value="[% HTML.escape(myc_dbhost) %]"></td>
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>
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>
212 <td colspan="2"><input type="button" class="submit" onclick="open_connection_test_window();" value="<translate>Test connection</translate>"></td>
218 <tr><td colspan="2"><hr size="3" noshade></td></tr>
220 <tr class="listheading">
221 <th colspan="2"><translate>WEBDAV access</translate></th>
229 <input name="angebote" id="angebote"class="checkbox" type="checkbox" value="1" [% IF myc_angebote %]checked[% END %]>
230 <label for="angebote"> Angebot</label>
233 <input name="bestellungen" id="bestellungen" class="checkbox" type="checkbox" value="1" [% IF myc_bestellungen %]checked[% END %]>
234 <label for="bestellungen"> Bestellung</label>
237 <input name="rechnungen" id="rechnungen" class="checkbox" type="checkbox" value="1" [% IF myc_rechnung %]checked[% END %]>
238 <label for="rechnungen"> Rechnung</label>
244 <input name="anfragen" id="anfragen" class="checkbox" type="checkbox" value="1" [% IF myc_anfragen %]checked[% END %]>
245 <label for="anfragen"> Anfragen</label>
248 <input name="lieferantenbestellungen" id="lieferantenbestellungen" class="checkbox" type="checkbox" value="1" [% IF myc_lieferantenbestellungen %]checked[% END %]>
249 <label for="lieferantenbestellungen"> Lieferantenbestellung</label>
252 <input name="einkaufsrechnungen" id="einkaufsrechnungen" class="checkbox" type="checkbox" value="1" [% IF myc_einkaufsrechnungen %]checked[% END %]>
253 <label for="einkaufsrechnungen"> Einkaufsrechnung</label>
261 <tr><td colspan="2"><hr size="3" noshade></td></tr>
263 <tr class="listheading">
264 <th colspan="2"><translate>Group membership</translate></th>
268 <td colspan="2"><translate>The user is a member in the following group(s):</translate></td>
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>
277 <tr><td colspan="2"><hr size="3" noshade></td></tr>
281 <input name="callback" type="hidden" value="admin.pl?action=list_users">
283 <input type="submit" class="submit" name="action" value="<translate>Save</translate>">
286 <input type="submit" class="submit" name="action" value="<translate>Delete</translate>">
287 <input type="hidden" name="edit" value="1">