Revision c3cee603
Von Moritz Bunkus vor mehr als 17 Jahren hinzugefügt
bin/mozilla/admin.pl | ||
---|---|---|
160 | 160 |
$form->{Oracle_dbport} = '1521'; |
161 | 161 |
$form->{Oracle_dbhost} = `hostname`; |
162 | 162 |
|
163 |
if (-f "css/lx-office-erp.css") { |
|
164 |
$myconfig->{stylesheet} = "lx-office-erp.css"; |
|
165 |
} |
|
166 |
|
|
167 |
$myconfig->{vclimit} = 200; |
|
168 |
$myconfig->{countrycode} = "de"; |
|
169 |
$myconfig->{numberformat} = "1000,00"; |
|
170 |
$myconfig->{dateformat} = "dd.mm.yy"; |
|
171 |
|
|
172 |
form_header(); |
|
173 |
form_footer(); |
|
174 |
|
|
163 |
my $myconfig = { |
|
164 |
"vclimit" => 200, |
|
165 |
"countrycode" => "de", |
|
166 |
"numberformat" => "1000,00", |
|
167 |
"dateformat" => "dd.mm.yy", |
|
168 |
"stylesheet" => "lx-office-erp.css", |
|
169 |
}; |
|
170 |
|
|
171 |
edit_user_form($myconfig); |
|
175 | 172 |
} |
176 | 173 |
|
177 | 174 |
sub edit { |
... | ... | |
182 | 179 |
. $locale->text('Edit User'); |
183 | 180 |
$form->{edit} = 1; |
184 | 181 |
|
185 |
form_header(); |
|
186 |
form_footer(); |
|
187 |
|
|
188 |
} |
|
189 |
|
|
190 |
sub form_footer { |
|
191 |
|
|
192 |
if ($form->{edit}) { |
|
193 |
$delete = |
|
194 |
qq|<input type=submit class=submit name=action value="| |
|
195 |
. $locale->text('Delete') . qq|"> |
|
196 |
<input type=hidden name=edit value=1>|; |
|
197 |
} |
|
198 |
|
|
199 |
print qq| |
|
200 |
|
|
201 |
<input name=callback type=hidden value="$form->{script}?action=list_users&rpw=$form->{rpw}"> |
|
202 |
<input type=hidden name=rpw value=$form->{rpw}> |
|
182 |
$form->isblank("login", $locale->text("The login is missing.")); |
|
203 | 183 |
|
204 |
<input type=submit class=submit name=action value="| |
|
205 |
. $locale->text('Save') . qq|"> |
|
206 |
$delete |
|
184 |
# get user |
|
185 |
my $myconfig = new User "$memberfile", "$form->{login}"; |
|
207 | 186 |
|
208 |
</form> |
|
187 |
$myconfig->{signature} =~ s/\\n/\r\n/g; |
|
188 |
$myconfig->{address} =~ s/\\n/\r\n/g; |
|
209 | 189 |
|
210 |
</body> |
|
211 |
</html> |
|
212 |
|; |
|
190 |
# strip basedir from templates directory |
|
191 |
$myconfig->{templates} =~ s|.*/||; |
|
213 | 192 |
|
193 |
edit_user_form($myconfig); |
|
214 | 194 |
} |
215 | 195 |
|
216 |
sub form_header { |
|
217 |
|
|
218 |
# if there is a login, get user |
|
219 |
if ($form->{login}) { |
|
220 |
|
|
221 |
# get user |
|
222 |
$myconfig = new User "$memberfile", "$form->{login}"; |
|
223 |
|
|
224 |
$myconfig->{signature} =~ s/\\n/\r\n/g; |
|
225 |
$myconfig->{address} =~ s/\\n/\r\n/g; |
|
226 |
|
|
227 |
# strip basedir from templates directory |
|
228 |
$myconfig->{templates} =~ s/^$templates\///; |
|
229 |
|
|
230 |
# $myconfig->{dbpasswd} = unpack 'u', $myconfig->{dbpasswd}; |
|
231 |
} |
|
196 |
sub edit_user_form { |
|
197 |
my ($myconfig) = @_; |
|
232 | 198 |
|
233 |
foreach $item (qw(mm-dd-yy mm/dd/yy dd-mm-yy dd/mm/yy dd.mm.yy yyyy-mm-dd)) { |
|
234 |
$dateformat .= |
|
235 |
($item eq $myconfig->{dateformat}) |
|
236 |
? "<option selected>$item\n" |
|
237 |
: "<option>$item\n"; |
|
238 |
} |
|
199 |
my @valid_dateformats = qw(mm-dd-yy mm/dd/yy dd-mm-yy dd/mm/yy dd.mm.yy yyyy-mm-dd); |
|
200 |
$form->{ALL_DATEFORMATS} = [ map { { "format" => $_, "selected" => $_ eq $myconfig->{dateformat} } } @valid_dateformats ]; |
|
239 | 201 |
|
240 |
foreach $item (qw(1,000.00 1000.00 1.000,00 1000,00)) { |
|
241 |
$numberformat .= |
|
242 |
($item eq $myconfig->{numberformat}) |
|
243 |
? "<option selected>$item\n" |
|
244 |
: "<option>$item\n"; |
|
245 |
} |
|
202 |
my @valid_numberformats = qw(1,000.00 1000.00 1.000,00 1000,00); |
|
203 |
$form->{ALL_NUMBERFORMATS} = [ map { { "format" => $_, "selected" => $_ eq $myconfig->{numberformat} } } @valid_numberformats ]; |
|
246 | 204 |
|
247 | 205 |
%countrycodes = User->country_codes; |
248 |
$countrycodes = ""; |
|
249 |
foreach $key (sort { $countrycodes{$a} cmp $countrycodes{$b} } |
|
250 |
keys %countrycodes |
|
251 |
) { |
|
252 |
$countrycodes .= |
|
253 |
($myconfig->{countrycode} eq $key) |
|
254 |
? "<option selected value=$key>$countrycodes{$key}" |
|
255 |
: "<option value=$key>$countrycodes{$key}"; |
|
206 |
$form->{ALL_COUNTRYCODES} = []; |
|
207 |
foreach $countrycode (sort { $countrycodes{$a} cmp $countrycodes{$b} } keys %countrycodes) { |
|
208 |
push @{ $form->{ALL_COUNTRYCODES} }, { "value" => $countrycode, |
|
209 |
"name" => $countrycodes{$countrycode}, |
|
210 |
"selected" => $countrycode eq $myconfig->{countrycode} }; |
|
256 | 211 |
} |
257 |
$countrycodes = qq|<option value="">American English\n$countrycodes|; |
|
258 | 212 |
|
259 | 213 |
# is there a templates basedir |
260 | 214 |
if (!-d "$templates") { |
261 |
$form->error( $locale->text('Directory') |
|
262 |
. ": $templates " |
|
263 |
. $locale->text('does not exist')); |
|
215 |
$form->error(sprintf($locale->text("The directory %s does not exist."), $templates)); |
|
264 | 216 |
} |
265 | 217 |
|
266 | 218 |
opendir TEMPLATEDIR, "$templates/." or $form->error("$templates : $!"); |
267 |
my @all = readdir(TEMPLATEDIR); |
|
268 |
my @alldir = sort(grep({ -d "$templates/$_" && !/^\.\.?$/ } @all));
|
|
269 |
my @allhtml = sort(grep({ -f "$templates/$_" && /\.html$/ } @all));
|
|
219 |
my @all = readdir(TEMPLATEDIR);
|
|
220 |
my @alldir = sort grep { -d "$templates/$_" && !/^\.\.?$/ } @all;
|
|
221 |
my @allhtml = sort grep { -f "$templates/$_" && /\.html$/ } @all;
|
|
270 | 222 |
closedir TEMPLATEDIR; |
271 | 223 |
|
272 | 224 |
@alldir = grep !/\.(html|tex|sty|odt|xml|txb)$/, @alldir; |
... | ... | |
276 | 228 |
push @allhtml, 'Default'; |
277 | 229 |
@allhtml = reverse @allhtml; |
278 | 230 |
|
279 |
foreach $item (@alldir) { |
|
280 |
if ($item eq $myconfig->{templates}) { |
|
281 |
$usetemplates .= qq|<option selected>$item\n|; |
|
282 |
} else { |
|
283 |
$usetemplates .= qq|<option>$item\n|; |
|
284 |
} |
|
285 |
} |
|
231 |
$form->{ALL_TEMPLATES} = [ map { { "name", => $_, "selected" => $_ eq $myconfig->{templates} } } @alldir ]; |
|
286 | 232 |
|
287 | 233 |
$lastitem = $allhtml[0]; |
288 | 234 |
$lastitem =~ s/-.*//g; |
289 |
$mastertemplates = qq|<option>$lastitem\n|;
|
|
235 |
$form->{ALL_MASTER_TEMPLATES} = [ { "name" => $lastitem, "selected" => $lastitem eq "German" } ];
|
|
290 | 236 |
foreach $item (@allhtml) { |
291 | 237 |
$item =~ s/-.*//g; |
238 |
next if ($item eq $lastitem); |
|
292 | 239 |
|
293 |
if ($item ne $lastitem) { |
|
294 |
my $selected = $item eq "German" ? " selected" : ""; |
|
295 |
$mastertemplates .= qq|<option$selected>$item\n|; |
|
296 |
$lastitem = $item; |
|
297 |
} |
|
240 |
push @{ $form->{ALL_MASTER_TEMPLATES} }, { "name" => $item, "selected" => $item eq "German" }; |
|
241 |
$lastitem = $item; |
|
298 | 242 |
} |
299 | 243 |
|
300 |
# opendir CSS, "css/.";
|
|
301 |
# @all = grep /.*\.css$/, readdir CSS;
|
|
302 |
# closedir CSS;
|
|
244 |
# css dir has styles that are not intended as general layouts.
|
|
245 |
# reverting to hardcoded list
|
|
246 |
$form->{ALL_STYLESHEETS} = [ map { { "name" => $_, "selected" => $_ eq $myconfig->{stylesheet} } } qw(lx-office-erp.css Win2000.css) ];
|
|
303 | 247 |
|
304 |
# css dir has styles that are not intended as general layouts. |
|
305 |
# reverting to hardcoded list |
|
306 |
@all = qw(lx-office-erp.css Win2000.css); |
|
248 |
$form->{"menustyle_" . $myconfig->{menustyle} } = 1; |
|
307 | 249 |
|
308 |
foreach $item (@all) { |
|
309 |
if ($item eq $myconfig->{stylesheet}) { |
|
310 |
$selectstylesheet .= qq|<option selected>$item\n|; |
|
311 |
} else { |
|
312 |
$selectstylesheet .= qq|<option>$item\n|; |
|
313 |
} |
|
314 |
} |
|
315 |
|
|
316 |
$form->header; |
|
317 |
|
|
318 |
if ($myconfig->{menustyle} eq "v3") { |
|
319 |
$menustyle_v3 = "checked"; |
|
320 |
} elsif ($myconfig->{menustyle} eq "neu") { |
|
321 |
$menustyle_neu = "checked"; |
|
322 |
} else { |
|
323 |
$menustyle_old = "checked"; |
|
324 |
} |
|
325 |
|
|
326 |
print qq| |
|
327 |
<body class=admin> |
|
328 |
|
|
329 |
<form method=post action=$form->{script}> |
|
330 |
|
|
331 |
<table width=100%> |
|
332 |
<tr class=listheading><th colspan=2>$form->{title}</th></tr> |
|
333 |
<tr size=5></tr> |
|
334 |
<tr valign=top> |
|
335 |
<td> |
|
336 |
<table> |
|
337 |
<tr> |
|
338 |
<th align=right>| . $locale->text('Login') . qq|</th> |
|
339 |
<td><input name="login" value="$myconfig->{login}"></td> |
|
340 |
</tr> |
|
341 |
<tr> |
|
342 |
<th align=right>| . $locale->text('Password') . qq|</th> |
|
343 |
<td><input type="password" name="password" size="8" value="$myconfig->{password}"></td> |
|
344 |
<input type="hidden" name="old_password" value="$myconfig->{password}"> |
|
345 |
</tr> |
|
346 |
<tr> |
|
347 |
<th align=right>| . $locale->text('Name') . qq|</th> |
|
348 |
<td><input name="name" size="15" value="$myconfig->{name}"></td> |
|
349 |
</tr> |
|
350 |
<tr> |
|
351 |
<th align=right>| . $locale->text('E-mail') . qq|</th> |
|
352 |
<td><input name=email size=30 value="$myconfig->{email}"></td> |
|
353 |
</tr> |
|
354 |
<tr valign=top> |
|
355 |
<th align=right>| . $locale->text('Signature') . qq|</th> |
|
356 |
<td><textarea name=signature rows=3 cols=35>$myconfig->{signature}</textarea></td> |
|
357 |
</tr> |
|
358 |
<tr> |
|
359 |
<th align=right>| . $locale->text('Phone') . qq|</th> |
|
360 |
<td><input name=tel size=14 value="$myconfig->{tel}"></td> |
|
361 |
</tr> |
|
362 |
<tr> |
|
363 |
<th align=right>| . $locale->text('Fax') . qq|</th> |
|
364 |
<td><input name=fax size=14 value="$myconfig->{fax}"></td> |
|
365 |
</tr> |
|
366 |
<tr> |
|
367 |
<th align=right>| . $locale->text('Company') . qq|</th> |
|
368 |
<td><input name=company size=35 value="$myconfig->{company}"></td> |
|
369 |
</tr> |
|
370 |
<tr valign=top> |
|
371 |
<th align=right>| . $locale->text('Address') . qq|</th> |
|
372 |
<td><textarea name=address rows=4 cols=35>$myconfig->{address}</textarea></td> |
|
373 |
</tr> |
|
374 |
<tr valign=top> |
|
375 |
<th align=right>| . $locale->text('Tax number') . qq|</th> |
|
376 |
<td><input name=taxnumber size=14 value="$myconfig->{taxnumber}"></td> |
|
377 |
</tr> |
|
378 |
<tr valign=top> |
|
379 |
<th align=right>| . $locale->text('Ust-IDNr') . qq|</th> |
|
380 |
<td><input name=co_ustid size=14 value="$myconfig->{co_ustid}"></td> |
|
381 |
</tr> |
|
382 |
<tr valign=top> |
|
383 |
<th align=right>| . $locale->text('DUNS-Nr') . qq|</th> |
|
384 |
<td><input name=duns size=14 value="$myconfig->{duns}"></td> |
|
385 |
</tr> |
|
386 |
</table> |
|
387 |
</td> |
|
388 |
<td> |
|
389 |
<table> |
|
390 |
<tr> |
|
391 |
<th align=right>| . $locale->text('Date Format') . qq|</th> |
|
392 |
<td><select name=dateformat>$dateformat</select></td> |
|
393 |
</tr> |
|
394 |
<tr> |
|
395 |
<th align=right>| . $locale->text('Number Format') . qq|</th> |
|
396 |
<td><select name=numberformat>$numberformat</select></td> |
|
397 |
</tr> |
|
398 |
<tr> |
|
399 |
<th align=right>| . $locale->text('Dropdown Limit') . qq|</th> |
|
400 |
<td><input name=vclimit value="$myconfig->{vclimit}"></td> |
|
401 |
</tr> |
|
402 |
<tr> |
|
403 |
<th align=right>| . $locale->text('Language') . qq|</th> |
|
404 |
<td><select name=countrycode>$countrycodes</select></td> |
|
405 |
</tr> |
|
406 |
<tr> |
|
407 |
<th align=right>| . $locale->text('Stylesheet') . qq|</th> |
|
408 |
<td><select name=userstylesheet>$selectstylesheet</select></td> |
|
409 |
</tr> |
|
410 |
<tr> |
|
411 |
<th align=right>| . $locale->text('Printer') . qq|</th> |
|
412 |
<td><input name=printer size=20 value="$myconfig->{printer}"></td> |
|
413 |
</tr> |
|
414 |
<tr> |
|
415 |
<th align=right>| . $locale->text('Use Templates') . qq|</th> |
|
416 |
<td><select name=usetemplates>$usetemplates</select></td> |
|
417 |
</tr> |
|
418 |
<tr> |
|
419 |
<th align=right>| . $locale->text('New Templates') . qq|</th> |
|
420 |
<td><input name=newtemplates></td> |
|
421 |
</tr> |
|
422 |
<tr> |
|
423 |
<th align=right>| . $locale->text('Setup Templates') . qq|</th> |
|
424 |
<td><select name=mastertemplates>$mastertemplates</select></td> |
|
425 |
</tr> |
|
426 |
<tr> |
|
427 |
<th align=right>| . $locale->text('Setup Menu') . qq|</th> |
|
428 |
<td><input name=menustyle type=radio class=radio value=v3 $menustyle_v3> | . |
|
429 |
$locale->text("Top (CSS)") . qq| |
|
430 |
<input name=menustyle type=radio class=radio value=neu $menustyle_neu> | . |
|
431 |
$locale->text("Top (Javascript)") . qq| |
|
432 |
<input name=menustyle type=radio class=radio value=old $menustyle_old> | . |
|
433 |
$locale->text("Old (on the side)") . qq| |
|
434 |
</td> |
|
435 |
</tr> |
|
436 |
<input type=hidden name=templates value=$myconfig->{templates}> |
|
437 |
</table> |
|
438 |
</td> |
|
439 |
</tr> |
|
440 |
<tr class=listheading> |
|
441 |
<th colspan=2>| . $locale->text('Database') . qq|</th> |
|
442 |
</tr>|; |
|
443 |
|
|
444 |
# list section for database drivers |
|
445 |
foreach $item (User->dbdrivers) { |
|
446 |
|
|
447 |
print qq| |
|
448 |
<tr> |
|
449 |
<td colspan=2> |
|
450 |
<table> |
|
451 |
<tr>|; |
|
452 |
|
|
453 |
$checked = ""; |
|
454 |
if ($myconfig->{dbdriver} eq $item) { |
|
455 |
map { $form->{"${item}_$_"} = $myconfig->{$_} } |
|
456 |
qw(dbhost dbport dbuser dbpasswd dbname sid); |
|
457 |
$checked = "checked"; |
|
458 |
} |
|
459 |
|
|
460 |
print qq| |
|
461 |
<th align=right>| . $locale->text('Driver') . qq|</th> |
|
462 |
<td><input name="dbdriver" type="radio" class="radio" value="$item" $checked> $item</td> |
|
463 |
<th align=right>| . $locale->text('Host') . qq|</th> |
|
464 |
<td><input name="${item}_dbhost" size=30 value="$form->{"${item}_dbhost"}"></td> |
|
465 |
</tr> |
|
466 |
<tr>|; |
|
467 |
|
|
468 |
if ($item eq 'Pg') { |
|
469 |
|
|
470 |
print qq| |
|
471 |
<th align=right>| . $locale->text('Dataset') . qq|</th> |
|
472 |
<td><input name="Pg_dbname" size="15" value="$form->{Pg_dbname}"></td> |
|
473 |
<th align=right>| . $locale->text('Port') . qq|</th> |
|
474 |
<td><input name="Pg_dbport" size="4" value="$form->{Pg_dbport}"></td> |
|
475 |
</tr> |
|
476 |
<tr> |
|
477 |
<th align=right>| . $locale->text('User') . qq|</th> |
|
478 |
<td><input name="${item}_dbuser" size=15 value="$form->{"${item}_dbuser"}"></td> |
|
479 |
<th align=right>| . $locale->text('Password') . qq|</th> |
|
480 |
<td><input name="${item}_dbpasswd" type=password size=10 value="$form->{"${item}_dbpasswd"}"></td> |
|
481 |
</tr>|; |
|
482 |
|
|
483 |
} |
|
484 |
|
|
485 |
if ($item eq 'Oracle') { |
|
486 |
print qq| |
|
487 |
<th align=right>SID</th> |
|
488 |
<td><input name=Oracle_sid value=$form->{Oracle_sid}></td> |
|
489 |
<th align=right>| . $locale->text('Port') . qq|</th> |
|
490 |
<td><input name=Oracle_dbport size=4 value=$form->{Oracle_dbport}></td> |
|
491 |
</tr> |
|
492 |
<tr> |
|
493 |
<th align=right>| . $locale->text('Dataset') . qq|</th> |
|
494 |
<td><input name="${item}_dbuser" size=15 value=$form->{"${item}_dbuser"}></td> |
|
495 |
<th align=right>| . $locale->text('Password') . qq|</th> |
|
496 |
<td><input name="${item}_dbpasswd" type=password size=10 value="$form->{"${item}_dbpasswd"}"></td> |
|
497 |
|
|
498 |
</tr>|; |
|
499 |
} |
|
500 |
|
|
501 |
print qq| |
|
502 |
<input type="hidden" name="old_dbpasswd" value="$myconfig->{dbpasswd}"> |
|
503 |
</table> |
|
504 |
</td> |
|
505 |
</tr> |
|
506 |
<tr> |
|
507 |
<td colspan=2><hr size=2 noshade></td> |
|
508 |
</tr> |
|
509 |
|; |
|
250 |
map { $form->{"myc_${_}"} = $myconfig->{$_} } keys %{ $myconfig }; |
|
510 | 251 |
|
511 |
}
|
|
252 |
map { $form->{"Pg_${_}"} = $myconfig->{$_} } qw(dbhost dbport dbname dbuser dbpasswd);
|
|
512 | 253 |
|
513 | 254 |
# access control |
255 |
my @acsorder = (); |
|
256 |
my %acs = (); |
|
257 |
my %excl = (); |
|
514 | 258 |
open(FH, $menufile) or $form->error("$menufile : $!"); |
515 | 259 |
|
516 |
# scan for first menu level |
|
517 |
@a = <FH>; |
|
518 |
close(FH); |
|
519 |
|
|
520 |
foreach $item (@a) { |
|
260 |
while ($item = <FH>) { |
|
521 | 261 |
next unless $item =~ /\[/; |
522 | 262 |
next if $item =~ /\#/; |
523 | 263 |
|
524 | 264 |
$item =~ s/(\[|\])//g; |
525 |
chop $item; |
|
265 |
chomp $item; |
|
266 |
|
|
267 |
my ($level, $menuitem); |
|
526 | 268 |
|
527 | 269 |
if ($item =~ /--/) { |
528 | 270 |
($level, $menuitem) = split /--/, $item, 2; |
... | ... | |
532 | 274 |
push @acsorder, $item; |
533 | 275 |
} |
534 | 276 |
|
277 |
$acs{$level} ||= []; |
|
535 | 278 |
push @{ $acs{$level} }, $menuitem; |
536 | 279 |
|
537 | 280 |
} |
538 | 281 |
|
539 |
%role = ('admin' => $locale->text('Administrator'), |
|
540 |
'user' => $locale->text('User'), |
|
541 |
'manager' => $locale->text('Manager'), |
|
542 |
'supervisor' => $locale->text('Supervisor')); |
|
543 |
|
|
544 |
$selectrole = ""; |
|
545 |
foreach $item (qw(user supervisor manager admin)) { |
|
546 |
$selectrole .= |
|
547 |
($myconfig->{role} eq $item) |
|
548 |
? "<option selected value=$item>$role{$item}\n" |
|
549 |
: "<option value=$item>$role{$item}\n"; |
|
550 |
} |
|
551 |
|
|
552 |
print qq| |
|
553 |
<tr class=listheading> |
|
554 |
<th colspan=2>| . $locale->text('Access Control') . qq|</th> |
|
555 |
</tr> |
|
556 |
<tr> |
|
557 |
<td><select name=role>$selectrole</select></td> |
|
558 |
</tr> |
|
559 |
|; |
|
560 |
|
|
561 | 282 |
foreach $item (split(/;/, $myconfig->{acs})) { |
562 | 283 |
($key, $value) = split /--/, $item, 2; |
563 | 284 |
$excl{$key}{$value} = 1; |
564 | 285 |
} |
565 | 286 |
|
566 |
foreach $key (@acsorder) { |
|
567 |
|
|
568 |
$checked = "checked"; |
|
569 |
if ($form->{login}) { |
|
570 |
$checked = ($excl{$key}{$key}) ? "" : "checked"; |
|
571 |
} |
|
572 |
|
|
573 |
# can't have variable names with spaces |
|
574 |
# the 1 is for apache 2 |
|
575 |
$item = $form->escape("${key}--$key", 1); |
|
576 |
|
|
577 |
$acsheading = $key; |
|
578 |
$acsheading =~ s/ / /g; |
|
287 |
$form->{ACLS} = []; |
|
288 |
$form->{all_acs} = ""; |
|
579 | 289 |
|
580 |
$acsheading = qq| |
|
581 |
<th align=left><input name="$item" class=checkbox type=checkbox value=1 $checked> $acsheading</th>\n|; |
|
582 |
$menuitems .= "$item;"; |
|
583 |
$acsdata = " |
|
584 |
<td>"; |
|
290 |
foreach $key (@acsorder) { |
|
291 |
my $acl = { "checked" => $form->{login} ? !$excl{$key}->{$key} : 1, |
|
292 |
"name" => "${key}--${key}", |
|
293 |
"title" => $key, |
|
294 |
"SUBACLS" => [], }; |
|
295 |
$form->{all_acs} .= "${key}--${key};"; |
|
585 | 296 |
|
586 | 297 |
foreach $item (@{ $acs{$key} }) { |
587 | 298 |
next if ($key eq $item); |
588 | 299 |
|
589 |
$checked = "checked"; |
|
590 |
if ($form->{login}) { |
|
591 |
$checked = ($excl{$key}{$item}) ? "" : "checked"; |
|
592 |
} |
|
593 |
|
|
594 |
$acsitem = $form->escape("${key}--$item", 1); |
|
595 |
|
|
596 |
$acsdata .= qq| |
|
597 |
<br><input name="$acsitem" class=checkbox type=checkbox value=1 $checked> $item|; |
|
598 |
$menuitems .= "$acsitem;"; |
|
300 |
my $subacl = { "checked" => $form->{login} ? !$excl{$key}->{$item} : 1, |
|
301 |
"name" => "${key}--${item}", |
|
302 |
"title" => $item }; |
|
303 |
push @{ $acl->{SUBACLS} }, $subacl; |
|
304 |
$form->{all_acs} .= "${key}--${item};"; |
|
599 | 305 |
} |
600 |
|
|
601 |
$acsdata .= " |
|
602 |
</td>"; |
|
603 |
|
|
604 |
print qq| |
|
605 |
<tr valign=top>$acsheading $acsdata |
|
606 |
</tr> |
|
607 |
|; |
|
306 |
push @{ $form->{ACLS} }, $acl; |
|
608 | 307 |
} |
609 | 308 |
|
610 |
print qq|<input type=hidden name=acs value="$menuitems"> |
|
611 |
|; |
|
612 |
if ($webdav) { |
|
613 |
@webdavdirs = |
|
614 |
qw(angebote bestellungen rechnungen anfragen lieferantenbestellungen einkaufsrechnungen); |
|
615 |
foreach $directory (@webdavdirs) { |
|
616 |
if ($myconfig->{$directory}) { |
|
617 |
$webdav{"${directory}c"} = "checked"; |
|
618 |
} else { |
|
619 |
$webdav{"${directory}c"} = ""; |
|
620 |
} |
|
621 |
} |
|
622 |
print qq| |
|
623 |
<tr> |
|
624 |
<td colspan=2><hr size=3 noshade></td> |
|
625 |
</tr> |
|
626 |
<tr class=listheading> |
|
627 |
<th colspan=2>| . $locale->text('WEBDAV-Zugriff') . qq|</th> |
|
628 |
</tr> |
|
629 |
<table width=100%> |
|
630 |
<tr> |
|
631 |
<td><input name=angebote class=checkbox type=checkbox value=1 $webdav{angebotec}> Angebot</td> |
|
632 |
<td><input name=bestellungen class=checkbox type=checkbox value=1 $webdav{bestellungenc}> Bestellung</td> |
|
633 |
<td><input name=rechnungen class=checkbox type=checkbox value=1 $webdav{rechnungenc}> Rechnung</td> |
|
634 |
</tr> |
|
635 |
<tr> |
|
636 |
<td><input name=anfragen class=checkbox type=checkbox value=1 $webdav{anfragenc}> Angebot</td> |
|
637 |
<td><input name=lieferantenbestellungen class=checkbox type=checkbox value=1 $webdav{lieferantenbestellungenc}> Lieferantenbestellung</td> |
|
638 |
<td><input name=einkaufsrechnungen class=checkbox type=checkbox value=1 $webdav{einkaufsrechnungenc}> Einkaufsrechnung</td> |
|
639 |
</tr> |
|
640 |
</table> |
|
641 |
<tr> |
|
642 |
<td colspan=2><hr size=3 noshade></td> |
|
643 |
</tr> |
|
644 |
|; |
|
645 |
} |
|
646 |
print qq| |
|
647 |
</table> |
|
648 |
</div> |
|
649 |
|; |
|
309 |
chop $form->{all_acs}; |
|
650 | 310 |
|
311 |
$form->header(); |
|
312 |
print $form->parse_html_template("admin/edit_user"); |
|
651 | 313 |
} |
652 | 314 |
|
653 | 315 |
sub save { |
... | ... | |
682 | 344 |
|
683 | 345 |
# is there a basedir |
684 | 346 |
if (!-d "$templates") { |
685 |
$form->error( $locale->text('Directory') |
|
686 |
. ": $templates " |
|
687 |
. $locale->text('does not exist')); |
|
347 |
$form->error(sprintf($locale->text("The directory %s does not exist."), $templates)); |
|
688 | 348 |
} |
689 | 349 |
|
690 | 350 |
# add base directory to $form->{templates} |
691 |
$form->{templates} = "$templates/$form->{templates}"; |
|
351 |
$form->{templates} =~ s|.*/||; |
|
352 |
$form->{templates} = "$templates/$form->{templates}"; |
|
692 | 353 |
|
693 | 354 |
$myconfig = new User "$memberfile", "$form->{login}"; |
694 | 355 |
|
695 | 356 |
# redo acs variable and delete all the acs codes |
696 |
@acs = split(/;/, $form->{acs}); |
|
697 |
|
|
698 |
$form->{acs} = ""; |
|
699 |
foreach $item (@acs) { |
|
700 |
$item = $form->escape($item, 1); |
|
701 |
|
|
702 |
if (!$form->{$item}) { |
|
703 |
$form->{acs} .= $form->unescape($form->unescape($item)) . ";"; |
|
704 |
} |
|
705 |
delete $form->{$item}; |
|
357 |
my @acs; |
|
358 |
foreach $item (split m|;|, $form->{all_acs}) { |
|
359 |
my $name = "ACS_${item}"; |
|
360 |
$name =~ s| |+|g; |
|
361 |
push @acs, $item if !$form->{$name}; |
|
362 |
delete $form->{$name}; |
|
706 | 363 |
} |
364 |
$form->{acs} = join ";", @acs; |
|
707 | 365 |
|
708 | 366 |
# check which database was filled in |
709 | 367 |
if ($form->{dbdriver} eq 'Oracle') { |
... | ... | |
729 | 387 |
$form->isblank("dbuser", $locale->text('Database User missing!')); |
730 | 388 |
} |
731 | 389 |
|
732 |
if ($webdav) { |
|
733 |
@webdavdirs = |
|
734 |
qw(angebote bestellungen rechnungen anfragen lieferantenbestellungen einkaufsrechnungen); |
|
735 |
foreach $directory (@webdavdirs) { |
|
736 |
if ($form->{$directory}) { |
|
737 |
$form->{$directory} = $form->{$directory}; |
|
738 |
} else { |
|
739 |
$form->{$directory} = 0; |
|
740 |
} |
|
741 |
} |
|
742 |
} |
|
743 |
|
|
744 | 390 |
foreach $item (keys %{$form}) { |
745 | 391 |
$myconfig->{$item} = $form->{$item}; |
746 | 392 |
} |
locale/de/admin | ||
---|---|---|
1 | 1 |
$self->{texts} = { |
2 | 2 |
'ADDED' => 'Hinzugef?gt', |
3 |
'Access Control' => 'Zugriffkontrolle', |
|
4 | 3 |
'Add User' => 'Benutzer erfassen', |
5 | 4 |
'Address' => 'Adresse', |
6 | 5 |
'Administration' => 'Administration', |
7 |
'Administrator' => 'Administrator', |
|
8 | 6 |
'All Datasets up to date!' => 'Alle Datenbanken sind auf aktuellem Stand.', |
9 | 7 |
'Attempt to call an undefined sub named \'%s\'' => 'Es wurde versucht, eine nicht definierte Unterfunktion namens \'%s\' aufzurufen.', |
10 | 8 |
'Bin List' => 'Lagerliste', |
11 | 9 |
'CANCELED' => 'Storniert', |
12 | 10 |
'Cannot create Lock!' => 'System kann nicht gesperrt werden!', |
13 | 11 |
'Change Admin Password' => 'Administratorpasswort ?ndern', |
14 |
'Company' => 'Firma', |
|
15 | 12 |
'Confirmation' => 'Auftragsbest?tigung', |
16 | 13 |
'Connect to' => 'Als Vorlage verwenden', |
17 | 14 |
'Continue' => 'Weiter', |
... | ... | |
21 | 18 |
'Customer details' => 'Kundendetails', |
22 | 19 |
'DELETED' => 'Gel?scht', |
23 | 20 |
'DUNNING STARTED' => 'Mahnprozess gestartet', |
24 |
'DUNS-Nr' => 'DUNS-Nr.', |
|
25 | 21 |
'Database' => 'Datenbank', |
26 | 22 |
'Database Administration' => 'Datenbankadministration', |
27 | 23 |
'Database Driver not checked!' => 'Kein Datenbanktreiber ausgew?hlt!', |
28 | 24 |
'Database User missing!' => 'Datenbankbenutzer fehlt!', |
29 |
'Dataset' => 'Datenbank', |
|
30 | 25 |
'Dataset missing!' => 'Datenbank fehlt!', |
31 | 26 |
'Dataset updated!' => 'Datenbank erneuert!', |
32 | 27 |
'Dataset upgrade' => 'Datenbankaktualisierung', |
33 |
'Date Format' => 'Datumsformat', |
|
34 |
'Delete' => 'L?schen', |
|
35 | 28 |
'Delete Dataset' => 'Datenbank l?schen', |
36 | 29 |
'Dependency loop detected:' => 'Schleife in den Abhängigkeiten entdeckt:', |
37 |
'Directory' => 'Verzeichnis', |
|
38 |
'Driver' => 'Treiber', |
|
39 |
'Dropdown Limit' => 'Auswahllistenbegrenzung', |
|
40 |
'E-mail' => 'eMail', |
|
41 | 30 |
'ELSE' => 'Zusatz', |
42 | 31 |
'Edit User' => 'Benutzerdaten bearbeiten', |
43 | 32 |
'Enter longdescription' => 'Langtext eingeben', |
44 | 33 |
'Error in database control file \'%s\': %s' => 'Fehler in Datenbankupgradekontrolldatei \'%s\': %s', |
45 |
'Fax' => 'Fax', |
|
46 | 34 |
'File locked!' => 'Datei gesperrt!', |
47 | 35 |
'History' => 'Historie', |
48 | 36 |
'Host' => 'Datenbankcomputer', |
49 | 37 |
'Hostname missing!' => 'Computername fehlt!', |
50 | 38 |
'Incorrect Password!' => 'Ung?ltiges Passwort!', |
51 | 39 |
'Invoice' => 'Rechnung', |
52 |
'Language' => 'Sprache', |
|
53 | 40 |
'Leave host and port field empty unless you want to make a remote connection.' => 'F?r lokale Verbindungen "Rechner" und "Port" freilassen.', |
54 | 41 |
'Lockfile created!' => 'System gesperrt!', |
55 | 42 |
'Lockfile removed!' => 'System entsperrt!', |
56 |
'Login' => 'Anmeldung', |
|
57 | 43 |
'Login name missing!' => 'Loginname fehlt.', |
58 | 44 |
'MAILED' => 'Gesendet', |
59 |
'Manager' => 'Manager', |
|
60 | 45 |
'Missing \'description\' field.' => 'Fehlendes Feld \'description\'.', |
61 | 46 |
'Missing \'tag\' field.' => 'Fehlendes Feld \'tag\'.', |
62 | 47 |
'More than one control file with the tag \'%s\' exist.' => 'Es gibt mehr als eine Kontrolldatei mit dem Tag \'%s\'.', |
63 | 48 |
'Name' => 'Name', |
64 |
'New Templates' => 'neue Vorlagen', |
|
65 | 49 |
'No Customer was found matching the search parameters.' => 'Zu dem Suchbegriff wurde kein Endkunde gefunden', |
66 | 50 |
'No Database Drivers available!' => 'Kein Datenbanktreiber verf?gbar!', |
67 | 51 |
'No Dataset selected!' => 'Keine Datenbank ausgew?hlt!', |
... | ... | |
72 | 56 |
'No project was found matching the search parameters.' => 'Es wurde kein Projekt gefunden, auf das die Suchparameter zutreffen.', |
73 | 57 |
'No vendor has been selected yet.' => 'Es wurde noch kein Lieferant ausgew?hlt.', |
74 | 58 |
'Nothing to delete!' => 'Es konnte nichts gel?scht werden!', |
75 |
'Number Format' => 'Zahlenformat', |
|
76 |
'Old (on the side)' => 'Alt (seitlich)', |
|
77 | 59 |
'PAYMENT POSTED' => 'Rechung gebucht', |
78 | 60 |
'POSTED' => 'Gebucht', |
79 | 61 |
'POSTED AS NEW' => 'Als neu gebucht', |
... | ... | |
83 | 65 |
'Part description' => 'Artikelbeschreibung', |
84 | 66 |
'Password' => 'Passwort', |
85 | 67 |
'Password changed!' => 'Passwort ge?ndert!', |
86 |
'Phone' => 'Telefon', |
|
87 | 68 |
'Pick List' => 'Sammelliste', |
88 | 69 |
'Please enter values' => 'Bitte Werte eingeben', |
89 | 70 |
'Port' => 'Port', |
90 | 71 |
'Port missing!' => 'Portangabe fehlt!', |
91 |
'Printer' => 'Drucker', |
|
92 | 72 |
'Proforma Invoice' => 'Proformarechnung', |
93 | 73 |
'Project Number' => 'Projektnummer', |
94 | 74 |
'Project description' => 'Projektbeschreibung', |
... | ... | |
98 | 78 |
'SAVED' => 'Gespeichert', |
99 | 79 |
'SAVED FOR DUNNING' => 'Gespeichert', |
100 | 80 |
'SCREENED' => 'Angezeigt', |
101 |
'Save' => 'Speichern', |
|
102 | 81 |
'Select a Customer' => 'Endkunde ausw?hlen', |
103 | 82 |
'Select a part' => 'Artikel auswählen', |
104 | 83 |
'Select a project' => 'Projekt auswählen', |
105 | 84 |
'Select an employee' => 'Angestellten auswählen', |
106 |
'Setup Menu' => 'Men?setup', |
|
107 |
'Setup Templates' => 'Vorlagen ausw?hlen', |
|
108 |
'Signature' => 'Unterschrift', |
|
109 | 85 |
'Storno Invoice' => 'Stornorechnung', |
110 | 86 |
'Storno Packing List' => 'Stornolieferschein', |
111 |
'Stylesheet' => 'Stilvorlage', |
|
112 |
'Supervisor' => 'Supervisor', |
|
113 |
'Tax number' => 'Steuernummer', |
|
114 | 87 |
'The \'tag\' field must only consist of alphanumeric characters or the carachters - _ ( )' => 'Das Feld \'tag\' darf nur aus alphanumerischen Zeichen und den Zeichen - _ ( ) bestehen.', |
88 |
'The directory %s does not exist.' => 'Das Verzeichnis %s existiert nicht.', |
|
115 | 89 |
'The following Datasets need to be updated' => 'Folgende Datenbanken m?ssen aktualisiert werden', |
90 |
'The login is missing.' => 'Das Login fehlt.', |
|
116 | 91 |
'The passwords do not match.' => 'Die Passwörter stimmen nicht überein.', |
117 | 92 |
'This is a preliminary check for existing sources. Nothing will be created or deleted at this stage!' => 'In diesem Schritt werden bestehende Datenbanken gesucht. Es werden noch keine ?nderungen vorgenommen!', |
118 |
'Top (CSS)' => 'Oben (mit CSS)', |
|
119 |
'Top (Javascript)' => 'Oben (mit Javascript)', |
|
120 | 93 |
'Trying to call a sub without a name' => 'Es wurde versucht, eine Unterfunktion ohne Namen aufzurufen.', |
121 | 94 |
'Unit' => 'Einheit', |
122 | 95 |
'Unknown dependency \'%s\'.' => 'Unbekannte Abhängigkeit \'%s\'.', |
123 | 96 |
'Update Dataset' => 'Datenbank aktualisieren', |
124 |
'Use Templates' => 'benutze Vorlagen', |
|
125 | 97 |
'User' => 'Benutzer', |
126 | 98 |
'User deleted!' => 'Benutzer gel?scht!', |
127 | 99 |
'User saved!' => 'Benutzer gespeichert!', |
128 |
'Ust-IDNr' => 'USt-IdNr.', |
|
129 | 100 |
'Value' => 'Wert', |
130 | 101 |
'Variable' => 'Variable', |
131 | 102 |
'Vendor details' => 'Lieferantendetails', |
132 |
'WEBDAV-Zugriff' => 'WEBDAV-Zugriff', |
|
133 | 103 |
'You must enter a host and port for local and remote connections!' => '"Rechner" und "Port" m?ssen f?r lokale und externe Verbindungen eingetragen werden!', |
134 | 104 |
'bin_list' => 'Lagerliste', |
135 |
'does not exist' => 'existiert nicht', |
|
136 | 105 |
'invoice' => 'Rechnung', |
137 | 106 |
'is already a member!' => 'ist bereits ein Mitglied!', |
138 | 107 |
'packing_list' => 'Versandliste', |
... | ... | |
168 | 137 |
'delete_dataset' => 'delete_dataset', |
169 | 138 |
'delivery_customer_selection' => 'delivery_customer_selection', |
170 | 139 |
'edit' => 'edit', |
140 |
'edit_user_form' => 'edit_user_form', |
|
171 | 141 |
'employee_selection_internal' => 'employee_selection_internal', |
172 |
'form_footer' => 'form_footer', |
|
173 |
'form_header' => 'form_header', |
|
174 | 142 |
'format_dates' => 'format_dates', |
175 | 143 |
'get_value' => 'get_value', |
176 | 144 |
'list_users' => 'list_users', |
locale/de/all | ||
---|---|---|
123 | 123 |
'Add unit' => 'Einheit hinzufügen', |
124 | 124 |
'Address' => 'Adresse', |
125 | 125 |
'Administration' => 'Administration', |
126 |
'Administrator' => 'Administrator', |
|
127 | 126 |
'Aktion' => 'Aktion', |
128 | 127 |
'All' => 'Alle', |
129 | 128 |
'All Accounts' => 'Alle Konten', |
... | ... | |
198 | 197 |
'Buchungsgruppen' => 'Buchungsgruppen', |
199 | 198 |
'Buchungsjournal' => 'Buchungsjournal', |
200 | 199 |
'Buchungsnummer' => 'Buchungsnummer', |
201 |
'Business' => '', |
|
202 | 200 |
'Business Number' => 'Firmennummer', |
203 | 201 |
'Business Volume' => 'Gesch?ftsvolumen', |
204 | 202 |
'Business deleted!' => 'Firma gel?scht.', |
... | ... | |
366 | 364 |
'Difference' => 'Differenz', |
367 | 365 |
'Dimension unit' => 'Maßeinheit', |
368 | 366 |
'Dimension units' => 'Maßeinheiten', |
369 |
'Directory' => 'Verzeichnis', |
|
370 | 367 |
'Discount' => 'Rabatt', |
371 | 368 |
'Display' => 'Anzeigen', |
372 | 369 |
'Display file' => 'Datei anzeigen', |
... | ... | |
656 | 653 |
'MSG_BROWSER_DOES_NOT_SUPPORT_IFRAMES' => 'Ihr Browser kann leider keine eingebetteten Frames anzeigen. Bitte wählen Sie ein anderes Menü in der Benutzerkonfiguration im Administrationsmenü aus.', |
657 | 654 |
'Main Preferences' => 'Grundeinstellungen', |
658 | 655 |
'Make' => 'Hersteller', |
659 |
'Manager' => 'Manager', |
|
660 | 656 |
'Mandantennummer' => 'Mandantennummer', |
661 | 657 |
'Mar' => 'M?rz', |
662 | 658 |
'March' => 'M?rz', |
... | ... | |
790 | 786 |
'Payment date missing!' => 'Tag der Zahlung fehlt!', |
791 | 787 |
'Payment posted!' => 'Zahlung gebucht!', |
792 | 788 |
'Payment terms deleted!' => 'Zahlungskonditionen gel?scht!', |
793 |
'Payment until' => '', |
|
794 | 789 |
'Payments' => 'Zahlungsausg?nge', |
795 | 790 |
'Period' => 'Zeitraum', |
796 | 791 |
'Pg Database Administration' => 'Datenbankadministration', |
... | ... | |
1007 | 1002 |
'Subject' => 'Betreff', |
1008 | 1003 |
'Subject:' => 'Betreff:', |
1009 | 1004 |
'Subtotal' => 'Zwischensumme', |
1010 |
'Supervisor' => 'Supervisor', |
|
1011 | 1005 |
'System' => 'System', |
1012 | 1006 |
'TOP100' => 'Top 100', |
1013 | 1007 |
'Tax' => 'Steuer', |
... | ... | |
1047 | 1041 |
'The database upgrade for the introduction of Buchungsgruppen is now complete.' => 'Das Datenbankupgrade für die Einführung von Buchungsgruppen ist jetzt beendet.', |
1048 | 1042 |
'The database upgrade for the introduction of units is now complete.' => 'Das Datenbankupgrade zwecks Einführung von Einheiten ist nun beendet.', |
1049 | 1043 |
'The dataset <TMPL_VAR db ESCAPE=HTML> has been successfully created.' => 'Die Datenbank <TMPL_VAR db ESCAPE=HTML> wurde erfolgreich erstellt.', |
1044 |
'The directory %s does not exist.' => 'Das Verzeichnis %s existiert nicht.', |
|
1050 | 1045 |
'The dunning process started' => 'Der Mahnprozess ist gestartet.', |
1051 | 1046 |
'The factor is missing in row %d.' => 'Der Faktor fehlt in Zeile %d.', |
1052 | 1047 |
'The factor is missing.' => 'Der Faktor fehlt.', |
... | ... | |
1058 | 1053 |
'The following warnings occured during an upgrade to the document templates:' => 'Die folgenden Warnungen traten während einer Aktualisierung der Dokumentenvorlagen auf:', |
1059 | 1054 |
'The formula needs the following syntax:<br>For regular article:<br>Variablename= Variable Unit;<br>Variablename2= Variable2 Unit2;<br>...<br>###<br>Variable + ( Variable2 / Variable )<br><b>Please be beware of the spaces in the formula</b><br>' => 'Die Formeln müssen in der folgenden Syntax eingegeben werden:<br>Bei normalen Artikeln:<br>Variablenname= Variable Einheit;<br>Variablenname2= Variable2 Einheit2;<br>...<br>###<br>Variable + Variable2 * ( Variable - Variable2 )<br>Bitte achten Sie auf die Leerzeichen in der Formel<br>Es muss jeweils die Gesamte Zeile eingegeben werden', |
1060 | 1055 |
'The licensing module has been deactivated in lx-erp.conf.' => 'Das Lizenzverwaltungsmodul wurde in lx-erp.conf deaktiviert.', |
1056 |
'The login is missing.' => 'Das Login fehlt.', |
|
1061 | 1057 |
'The name in row %d has already been used before.' => 'Der Name in Zeile %d wurde vorher bereits benutzt.', |
1062 | 1058 |
'The name is missing in row %d.' => 'Der Name fehlt in Zeile %d.', |
1063 | 1059 |
'The name is missing.' => 'Der Name fehlt.', |
... | ... | |
1091 | 1087 |
'Top Level' => 'Hauptartikelbezeichnung', |
1092 | 1088 |
'Total' => 'Summe', |
1093 | 1089 |
'Total Fees' => 'Kumulierte Geb?hren', |
1094 |
'Total Interest' => '', |
|
1095 | 1090 |
'Trade Discount' => 'Rabatt', |
1096 | 1091 |
'Transaction Date missing!' => 'Buchungsdatum fehlt!', |
1097 | 1092 |
'Transaction deleted!' => 'Buchung gel?scht!', |
... | ... | |
1159 | 1154 |
'Version' => 'Version', |
1160 | 1155 |
'View License' => 'Lizenz ansehen', |
1161 | 1156 |
'Von Konto: ' => 'von Konto: ', |
1162 |
'WEBDAV-Zugriff' => 'WEBDAV-Zugriff',
|
|
1157 |
'WEBDAV access' => 'WEBDAV-Zugriff',
|
|
1163 | 1158 |
'Warnings during template upgrade' => 'Warnungen bei Aktualisierung der Dokumentenvorlagen', |
1164 | 1159 |
'Weight' => 'Gewicht', |
1165 | 1160 |
'What type of item is this?' => 'Was ist dieser Artikel?', |
... | ... | |
1213 | 1208 |
'delete' => 'L?schen', |
1214 | 1209 |
'deliverydate' => 'Lieferdatum', |
1215 | 1210 |
'dimension units' => 'Maßeinheiten', |
1216 |
'does not exist' => 'existiert nicht', |
|
1217 | 1211 |
'done' => 'erledigt', |
1218 | 1212 |
'down' => 'runter', |
1219 | 1213 |
'drucken' => 'drucken', |
templates/webpages/admin/edit_user_de.html | ||
---|---|---|
1 |
<body class="admin"> |
|
2 |
|
|
3 |
<form method="post" action="admin.pl"> |
|
4 |
|
|
5 |
<div class="listtop" width="100%"><TMPL_VAR title></div> |
|
6 |
|
|
7 |
<table width="100%"> |
|
8 |
<tr valign="top"> |
|
9 |
<td> |
|
10 |
<table> |
|
11 |
<tr> |
|
12 |
<th align="right">Anmeldung</th> |
|
13 |
<td><input name="login" value="<TMPL_VAR myc_login ESCAPE=HTML>"></td> |
|
14 |
</tr> |
|
15 |
|
|
16 |
<tr> |
|
17 |
<th align="right">Passwort</th> |
|
18 |
<td><input type="password" name="password" size="8" value="<TMPL_VAR myc_password ESCAPE=HTML>"></td> |
|
19 |
<input type="hidden" name="old_password" value="<TMPL_VAR myc_password ESCAPE=HTML>"> |
|
20 |
</tr> |
|
21 |
|
|
22 |
<tr> |
|
23 |
<th align="right">Name</th> |
|
24 |
<td><input name="name" size="15" value="<TMPL_VAR myc_name ESCAPE=HTML>"></td> |
|
25 |
</tr> |
|
26 |
|
|
27 |
<tr> |
|
28 |
<th align="right">eMail</th> |
|
29 |
<td><input name="email" size="30" value="<TMPL_VAR myc_email ESCAPE=HTML>"></td> |
|
30 |
</tr> |
|
31 |
|
|
32 |
<tr valign="top"> |
|
33 |
<th align="right">Unterschrift</th> |
|
34 |
<td><textarea name="signature" rows="3" cols="35"><TMPL_VAR myc_signature ESCAPE=HTML></textarea></td> |
|
35 |
</tr> |
|
36 |
|
|
37 |
<tr> |
|
38 |
<th align="right">Telefon</th> |
|
39 |
<td><input name="tel" size="14" value="<TMPL_VAR myc_tel ESCAPE=HTML>"></td> |
|
40 |
</tr> |
|
41 |
|
|
42 |
<tr> |
|
43 |
<th align="right">Fax</th> |
|
44 |
<td><input name="fax" size="14" value="<TMPL_VAR myc_fax ESCAPE=HTML>"></td> |
|
45 |
</tr> |
|
46 |
|
|
47 |
<tr> |
|
48 |
<th align="right">Firma</th> |
|
49 |
<td><input name="company" size="35" value="<TMPL_VAR myc_company ESCAPE=HTML>"></td> |
|
50 |
</tr> |
|
51 |
|
|
52 |
<tr valign="top"> |
|
53 |
<th align="right">Adresse</th> |
|
54 |
<td><textarea name="address" rows="4" cols="35"><TMPL_VAR myc_address ESCAPE=HTML></textarea></td> |
|
55 |
</tr> |
|
56 |
|
|
57 |
<tr valign="top"> |
|
58 |
<th align="right">Steuernummer</th> |
|
59 |
<td><input name="taxnumber" size="14" value="<TMPL_VAR myc_taxnumber ESCAPE=HTML>"></td> |
|
60 |
</tr> |
|
61 |
|
|
62 |
<tr valign="top"> |
|
63 |
<th align="right">USt-IdNr.</th> |
|
64 |
<td><input name="co_ustid" size="14" value="<TMPL_VAR myc_co_ustid ESCAPE=HTML>"></td> |
|
65 |
</tr> |
|
66 |
|
|
67 |
<tr valign="top"> |
|
68 |
<th align="right">DUNS-Nr.</th> |
|
69 |
<td><input name="duns" size="14" value="<TMPL_VAR myc_duns ESCAPE=HTML>"></td> |
|
70 |
</tr> |
|
71 |
</table> |
|
72 |
</td> |
|
73 |
|
|
74 |
<td> |
|
75 |
<table> |
|
76 |
<tr> |
|
77 |
<th align="right">Datumsformat</th> |
|
78 |
<td> |
|
79 |
<select name="dateformat"> |
|
80 |
<TMPL_LOOP ALL_DATEFORMATS><option <TMPL_IF selected>selected</TMPL_IF>><TMPL_VAR format ESCAPE=HTML></option> |
|
81 |
</TMPL_LOOP> |
|
82 |
</select> |
|
83 |
</td> |
|
84 |
</tr> |
|
85 |
|
|
86 |
<tr> |
|
87 |
<th align="right">Zahlenformat</th> |
|
88 |
<td> |
|
89 |
<select name="numberformat"> |
|
90 |
<TMPL_LOOP ALL_NUMBERFORMATS><option <TMPL_IF selected>selected</TMPL_IF>><TMPL_VAR format ESCAPE=HTML></option> |
|
91 |
</TMPL_LOOP> |
|
92 |
</select> |
|
93 |
</td> |
|
94 |
</tr> |
|
95 |
|
|
96 |
<tr> |
|
97 |
<th align="right">Auswahllistenbegrenzung</th> |
|
98 |
<td><input name="vclimit" value="<TMPL_VAR myc_vclimit ESCAPE=HTML>"></td> |
|
99 |
</tr> |
|
100 |
|
|
101 |
<tr> |
|
102 |
<th align="right">Sprache</th> |
|
103 |
<td> |
|
104 |
<select name="countrycode"> |
|
105 |
<TMPL_LOOP ALL_COUNTRYCODES><option value="<TMPL_VAR value ESCAPE=HTML>" <TMPL_IF selected>selected</TMPL_IF>><TMPL_VAR name ESCAPE=HTML></option> |
|
106 |
</TMPL_LOOP> |
|
107 |
</select> |
|
108 |
</td> |
|
109 |
</tr> |
|
110 |
|
|
111 |
<tr> |
|
112 |
<th align="right">Stilvorlage</th> |
|
113 |
<td> |
|
114 |
<select name="userstylesheet"> |
|
115 |
<TMPL_LOOP ALL_STYLESHEETS><option <TMPL_IF selected>selected</TMPL_IF>><TMPL_VAR name ESCAPE=HTML></option> |
|
116 |
</TMPL_LOOP> |
|
117 |
</select> |
|
118 |
</td> |
|
119 |
</tr> |
|
120 |
|
|
121 |
<tr> |
|
122 |
<th align="right">Drucker</th> |
|
123 |
<td><input name="printer" size="20" value="<TMPL_VAR myc_printer ESCAPE=HTML>"></td> |
|
124 |
</tr> |
|
125 |
<tr> |
|
126 |
<th align="right">benutze Vorlagen</th> |
|
127 |
<td> |
|
128 |
<select name="usetemplates"> |
|
129 |
<TMPL_LOOP ALL_TEMPLATES><option <TMPL_IF selected>selected</TMPL_IF>><TMPL_VAR name ESCAPE=HTML></option> |
|
130 |
</TMPL_LOOP> |
|
131 |
</select> |
|
132 |
</td> |
|
133 |
</tr> |
|
134 |
<tr> |
|
135 |
<th align="right">neue Vorlagen</th> |
|
136 |
<td><input name="newtemplates"></td> |
|
137 |
</tr> |
|
138 |
<tr> |
|
139 |
<th align="right">Vorlagen ausw?hlen</th> |
|
140 |
<td> |
|
141 |
<select name="mastertemplates"> |
|
142 |
<TMPL_LOOP ALL_MASTER_TEMPLATES><option <TMPL_IF selected>selected</TMPL_IF>><TMPL_VAR name ESCAPE=HTML></option> |
|
143 |
</TMPL_LOOP> |
|
144 |
</select> |
|
145 |
</td> |
|
146 |
</tr> |
|
147 |
<tr> |
|
148 |
<th align="right">Men?setup</th> |
|
149 |
<td> |
|
150 |
<input name="menustyle" type="radio" class="radio" value="v3" <TMPL_IF menustyle_v3>checked</TMPL_IF>> Oben (mit CSS) |
|
151 |
<input name="menustyle" type="radio" class="radio" value="neu" <TMPL_IF menustyle_neu>checked</TMPL_IF>> Oben (mit Javascript) |
|
152 |
<input name="menustyle" type="radio" class="radio" value="old" <TMPL_IF menustyle_old>checked</TMPL_IF>> Alt (seitlich) |
|
153 |
</td> |
|
154 |
</tr> |
|
155 |
|
|
156 |
<input type="hidden" name="templates" value="<TMPL_VAR myc_templates ESCAPE=HTML>"> |
|
157 |
</table> |
|
158 |
</td> |
|
159 |
</tr> |
|
160 |
|
|
161 |
<tr class="listheading"> |
|
162 |
<th colspan="2">Datenbank</th> |
|
163 |
</tr> |
|
164 |
|
|
165 |
<tr> |
|
166 |
<td colspan="2"> |
|
167 |
<table> |
|
168 |
<tr> |
|
169 |
<th align="right">Treiber</th> |
|
170 |
<td><input type="hidden" name="dbdriver" value="Pg">PostgreSQL</td> |
|
171 |
<th align="right">Datenbankcomputer</th> |
|
172 |
<td><input name="Pg_dbhost" size="30" value="<TMPL_VAR Pg_dbhost ESCAPE=HTML>"></td> |
|
173 |
</tr> |
|
174 |
|
|
175 |
<tr> |
|
176 |
<th align="right">Datenbank</th> |
|
177 |
<td><input name="Pg_dbname" size="15" value="<TMPL_VAR Pg_dbname ESCAPE=HTML>"></td> |
|
178 |
<th align="right">Port</th> |
|
179 |
<td><input name="Pg_dbport" size="4" value="<TMPL_VAR Pg_dbport ESCAPE=HTML>"></td> |
|
180 |
</tr> |
|
181 |
|
|
182 |
<tr> |
|
183 |
<th align="right">Benutzer</th> |
|
184 |
<td><input name="Pg_dbuser" size="15" value="<TMPL_VAR Pg_dbuser ESCAPE=HTML>"></td> |
|
185 |
<th align="right">Passwort</th> |
|
186 |
<td><input name="Pg_dbpasswd" type="password" size="10" value="<TMPL_VAR Pg_dbpasswd ESCAPE=HTML>"></td> |
|
187 |
</tr> |
|
188 |
|
|
189 |
<input type="hidden" name="old_dbpasswd" value="<TMPL_VAR myc_dbpasswd ESCAPE=HTML>"> |
|
190 |
</table> |
|
191 |
</td> |
|
192 |
</tr> |
|
193 |
|
|
194 |
<tr> |
|
195 |
<td colspan="2"><hr size="2" noshade></td> |
|
196 |
</tr> |
|
197 |
|
|
198 |
<tr class="listheading"><th colspan="2">Zugriffkontrolle</th></tr> |
|
199 |
|
|
200 |
<TMPL_LOOP ACLS> |
|
201 |
<tr> |
|
202 |
<td valign="top"> |
|
203 |
<input type="checkbox" name="ACS_<TMPL_VAR name ESCAPE=HTML>" id="ACS_<TMPL_VAR name ESCAPE=HTML>" value="1" <TMPL_IF checked>checked</TMPL_IF>> |
|
204 |
<label for="ACS_<TMPL_VAR name ESCAPE=HTML>"><TMPL_VAR title ESCAPE=HTML></label> |
|
205 |
</td> |
|
206 |
|
|
207 |
<td valign="top"> |
|
208 |
<TMPL_LOOP SUBACLS> |
|
209 |
<input type="checkbox" name="ACS_<TMPL_VAR name ESCAPE=HTML>" id="ACS_<TMPL_VAR name ESCAPE=HTML>" value="1" <TMPL_IF checked>checked</TMPL_IF>> |
|
210 |
<label for="ACS_<TMPL_VAR name ESCAPE=HTML>"><TMPL_VAR title ESCAPE=HTML></label> |
|
211 |
<TMPL_UNLESS __last__><br></TMPL_UNLESS> |
|
212 |
</TMPL_LOOP> |
|
213 |
</td> |
|
214 |
</tr> |
|
215 |
</TMPL_LOOP> |
|
216 |
|
|
217 |
<input type="hidden" name="all_acs" value="<TMPL_VAR all_acs ESCAPE=HTML>"> |
|
218 |
|
|
219 |
<tr><td colspan="2"><hr size="3" noshade></td></tr> |
|
220 |
|
|
221 |
<tr class="listheading"> |
|
222 |
<th colspan="2">WEBDAV-Zugriff</th> |
|
223 |
</tr> |
|
224 |
|
|
225 |
<tr> |
|
226 |
<td colspan="2"> |
|
227 |
<table> |
|
228 |
<tr> |
|
229 |
<td><input name="angebote" class="checkbox" type="checkbox" value="1" <TMPL_IF myc_angebote>checked</TMPL_IF>> Angebot</td> |
|
230 |
<td><input name="bestellungen" class="checkbox" type="checkbox" value="1" <TMPL_IF myc_bestellungen>checked</TMPL_IF>> Bestellung</td> |
|
231 |
<td><input name="rechnungen" class="checkbox" type="checkbox" value="1" <TMPL_IF myc_rechnung>checked</TMPL_IF>> Rechnung</td> |
|
232 |
</tr> |
|
233 |
|
|
234 |
<tr> |
|
235 |
<td><input name="anfragen" class="checkbox" type="checkbox" value="1" <TMPL_IF myc_anfragen>checked</TMPL_IF>> Anfragen</td> |
|
236 |
<td><input name="lieferantenbestellungen" class="checkbox" type="checkbox" value="1" <TMPL_IF myc_lieferantenbestellungen>checked</TMPL_IF>> Lieferantenbestellung</td> |
|
237 |
<td><input name="einkaufsrechnungen" class="checkbox" type="checkbox" value="1" <TMPL_IF myc_einkaufsrechnungen>checked</TMPL_IF>> Einkaufsrechnung</td> |
|
238 |
</tr> |
|
239 |
</table> |
|
240 |
</td> |
|
241 |
</tr> |
|
242 |
|
|
243 |
<tr><td colspan="2"><hr size="3" noshade></td></tr> |
|
244 |
|
|
245 |
</table> |
|
246 |
|
|
247 |
<input name="callback" type="hidden" value="admin.pl?action=list_users&rpw=<TMPL_VAR rpw ESCAPE=URL>"> |
|
248 |
<input type="hidden" name="rpw" value="<TMPL_VAR rpw ESCAPE=HTML>"> |
|
249 |
|
|
250 |
<input type="submit" class="submit" name="action" value="Speichern"> |
|
251 |
|
|
252 |
<TMPL_IF edit> |
|
253 |
<input type="submit" class="submit" name="action" value="L?schen"> |
|
254 |
<input type="hidden" name="edit" value="1"> |
|
255 |
</TMPL_IF> |
|
256 |
|
|
257 |
</form> |
|
258 |
|
|
259 |
</body> |
|
260 |
</html> |
templates/webpages/admin/edit_user_master.html | ||
---|---|---|
1 |
<body class="admin"> |
|
2 |
|
|
3 |
<form method="post" action="admin.pl"> |
|
4 |
|
|
5 |
<div class="listtop" width="100%"><TMPL_VAR title></div> |
|
6 |
|
|
7 |
<table width="100%"> |
|
8 |
<tr valign="top"> |
|
9 |
<td> |
|
10 |
<table> |
|
11 |
<tr> |
|
12 |
<th align="right"><translate>Login</translate></th> |
|
13 |
<td><input name="login" value="<TMPL_VAR myc_login ESCAPE=HTML>"></td> |
|
14 |
</tr> |
|
15 |
|
|
16 |
<tr> |
|
17 |
<th align="right"><translate>Password</translate></th> |
|
18 |
<td><input type="password" name="password" size="8" value="<TMPL_VAR myc_password ESCAPE=HTML>"></td> |
|
19 |
<input type="hidden" name="old_password" value="<TMPL_VAR myc_password ESCAPE=HTML>"> |
|
20 |
</tr> |
|
21 |
|
|
22 |
<tr> |
|
23 |
<th align="right"><translate>Name</translate></th> |
|
24 |
<td><input name="name" size="15" value="<TMPL_VAR myc_name ESCAPE=HTML>"></td> |
|
25 |
</tr> |
|
26 |
|
|
27 |
<tr> |
|
28 |
<th align="right"><translate>E-mail</translate></th> |
|
29 |
<td><input name="email" size="30" value="<TMPL_VAR myc_email ESCAPE=HTML>"></td> |
|
30 |
</tr> |
|
31 |
|
|
32 |
<tr valign="top"> |
|
33 |
<th align="right"><translate>Signature</translate></th> |
|
34 |
<td><textarea name="signature" rows="3" cols="35"><TMPL_VAR myc_signature ESCAPE=HTML></textarea></td> |
|
35 |
</tr> |
|
36 |
|
|
37 |
<tr> |
|
38 |
<th align="right"><translate>Phone</translate></th> |
|
39 |
<td><input name="tel" size="14" value="<TMPL_VAR myc_tel ESCAPE=HTML>"></td> |
|
40 |
</tr> |
|
41 |
|
|
42 |
<tr> |
|
43 |
<th align="right"><translate>Fax</translate></th> |
|
44 |
<td><input name="fax" size="14" value="<TMPL_VAR myc_fax ESCAPE=HTML>"></td> |
|
45 |
</tr> |
|
46 |
|
|
47 |
<tr> |
|
48 |
<th align="right"><translate>Company</translate></th> |
|
49 |
<td><input name="company" size="35" value="<TMPL_VAR myc_company ESCAPE=HTML>"></td> |
|
50 |
</tr> |
|
51 |
|
|
52 |
<tr valign="top"> |
|
53 |
<th align="right"><translate>Address</translate></th> |
|
54 |
<td><textarea name="address" rows="4" cols="35"><TMPL_VAR myc_address ESCAPE=HTML></textarea></td> |
|
55 |
</tr> |
|
56 |
|
|
57 |
<tr valign="top"> |
|
58 |
<th align="right"><translate>Tax number</translate></th> |
|
59 |
<td><input name="taxnumber" size="14" value="<TMPL_VAR myc_taxnumber ESCAPE=HTML>"></td> |
|
60 |
</tr> |
|
61 |
|
|
62 |
<tr valign="top"> |
|
63 |
<th align="right"><translate>Ust-IDNr</translate></th> |
|
64 |
<td><input name="co_ustid" size="14" value="<TMPL_VAR myc_co_ustid ESCAPE=HTML>"></td> |
|
65 |
</tr> |
|
66 |
|
|
67 |
<tr valign="top"> |
|
68 |
<th align="right"><translate>DUNS-Nr</translate></th> |
|
69 |
<td><input name="duns" size="14" value="<TMPL_VAR myc_duns ESCAPE=HTML>"></td> |
|
70 |
</tr> |
|
71 |
</table> |
|
72 |
</td> |
|
73 |
|
|
74 |
<td> |
|
75 |
<table> |
|
76 |
<tr> |
|
77 |
<th align="right"><translate>Date Format</translate></th> |
|
78 |
<td> |
|
79 |
<select name="dateformat"> |
|
80 |
<TMPL_LOOP ALL_DATEFORMATS><option <TMPL_IF selected>selected</TMPL_IF>><TMPL_VAR format ESCAPE=HTML></option> |
|
81 |
</TMPL_LOOP> |
|
82 |
</select> |
|
83 |
</td> |
|
84 |
</tr> |
|
85 |
|
|
86 |
<tr> |
|
87 |
<th align="right"><translate>Number Format</translate></th> |
|
88 |
<td> |
|
89 |
<select name="numberformat"> |
|
90 |
<TMPL_LOOP ALL_NUMBERFORMATS><option <TMPL_IF selected>selected</TMPL_IF>><TMPL_VAR format ESCAPE=HTML></option> |
|
91 |
</TMPL_LOOP> |
|
92 |
</select> |
|
93 |
</td> |
|
94 |
</tr> |
|
95 |
|
|
96 |
<tr> |
|
97 |
<th align="right"><translate>Dropdown Limit</translate></th> |
|
98 |
<td><input name="vclimit" value="<TMPL_VAR myc_vclimit ESCAPE=HTML>"></td> |
|
99 |
</tr> |
|
100 |
|
|
101 |
<tr> |
|
102 |
<th align="right"><translate>Language</translate></th> |
|
103 |
<td> |
|
104 |
<select name="countrycode"> |
|
105 |
<TMPL_LOOP ALL_COUNTRYCODES><option value="<TMPL_VAR value ESCAPE=HTML>" <TMPL_IF selected>selected</TMPL_IF>><TMPL_VAR name ESCAPE=HTML></option> |
|
106 |
</TMPL_LOOP> |
|
107 |
</select> |
|
108 |
</td> |
|
109 |
</tr> |
|
110 |
|
|
111 |
<tr> |
|
112 |
<th align="right"><translate>Stylesheet</translate></th> |
|
113 |
<td> |
|
114 |
<select name="userstylesheet"> |
|
115 |
<TMPL_LOOP ALL_STYLESHEETS><option <TMPL_IF selected>selected</TMPL_IF>><TMPL_VAR name ESCAPE=HTML></option> |
|
116 |
</TMPL_LOOP> |
|
117 |
</select> |
|
118 |
</td> |
|
119 |
</tr> |
|
120 |
|
|
121 |
<tr> |
|
122 |
<th align="right"><translate>Printer</translate></th> |
|
123 |
<td><input name="printer" size="20" value="<TMPL_VAR myc_printer ESCAPE=HTML>"></td> |
|
124 |
</tr> |
|
125 |
<tr> |
|
126 |
<th align="right"><translate>Use Templates</translate></th> |
|
127 |
<td> |
|
128 |
<select name="usetemplates"> |
|
129 |
<TMPL_LOOP ALL_TEMPLATES><option <TMPL_IF selected>selected</TMPL_IF>><TMPL_VAR name ESCAPE=HTML></option> |
|
130 |
</TMPL_LOOP> |
|
131 |
</select> |
|
132 |
</td> |
|
133 |
</tr> |
|
134 |
<tr> |
|
135 |
<th align="right"><translate>New Templates</translate></th> |
|
136 |
<td><input name="newtemplates"></td> |
|
137 |
</tr> |
|
138 |
<tr> |
|
139 |
<th align="right"><translate>Setup Templates</translate></th> |
|
140 |
<td> |
|
141 |
<select name="mastertemplates"> |
|
142 |
<TMPL_LOOP ALL_MASTER_TEMPLATES><option <TMPL_IF selected>selected</TMPL_IF>><TMPL_VAR name ESCAPE=HTML></option> |
|
143 |
</TMPL_LOOP> |
|
144 |
</select> |
|
145 |
</td> |
|
146 |
</tr> |
|
147 |
<tr> |
|
148 |
<th align="right"><translate>Setup Menu</translate></th> |
|
149 |
<td> |
|
150 |
<input name="menustyle" type="radio" class="radio" value="v3" <TMPL_IF menustyle_v3>checked</TMPL_IF>> <translate>Top (CSS)</translate> |
|
151 |
<input name="menustyle" type="radio" class="radio" value="neu" <TMPL_IF menustyle_neu>checked</TMPL_IF>> <translate>Top (Javascript)</translate> |
|
152 |
<input name="menustyle" type="radio" class="radio" value="old" <TMPL_IF menustyle_old>checked</TMPL_IF>> <translate>Old (on the side)</translate> |
|
153 |
</td> |
|
154 |
</tr> |
|
155 |
|
|
156 |
<input type="hidden" name="templates" value="<TMPL_VAR myc_templates ESCAPE=HTML>"> |
|
157 |
</table> |
|
158 |
</td> |
|
159 |
</tr> |
|
160 |
|
|
161 |
<tr class="listheading"> |
|
162 |
<th colspan="2"><translate>Database</translate></th> |
|
163 |
</tr> |
|
164 |
|
|
165 |
<tr> |
|
166 |
<td colspan="2"> |
|
167 |
<table> |
|
168 |
<tr> |
|
169 |
<th align="right"><translate>Driver</translate></th> |
|
170 |
<td><input type="hidden" name="dbdriver" value="Pg">PostgreSQL</td> |
|
171 |
<th align="right"><translate>Host</translate></th> |
|
172 |
<td><input name="Pg_dbhost" size="30" value="<TMPL_VAR Pg_dbhost ESCAPE=HTML>"></td> |
|
173 |
</tr> |
|
174 |
|
|
175 |
<tr> |
|
176 |
<th align="right"><translate>Dataset</translate></th> |
|
177 |
<td><input name="Pg_dbname" size="15" value="<TMPL_VAR Pg_dbname ESCAPE=HTML>"></td> |
|
178 |
<th align="right"><translate>Port</translate></th> |
|
179 |
<td><input name="Pg_dbport" size="4" value="<TMPL_VAR Pg_dbport ESCAPE=HTML>"></td> |
|
180 |
</tr> |
|
181 |
|
|
182 |
<tr> |
|
183 |
<th align="right"><translate>User</translate></th> |
|
184 |
<td><input name="Pg_dbuser" size="15" value="<TMPL_VAR Pg_dbuser ESCAPE=HTML>"></td> |
|
185 |
<th align="right"><translate>Password</translate></th> |
|
186 |
<td><input name="Pg_dbpasswd" type="password" size="10" value="<TMPL_VAR Pg_dbpasswd ESCAPE=HTML>"></td> |
|
187 |
</tr> |
|
188 |
|
|
189 |
<input type="hidden" name="old_dbpasswd" value="<TMPL_VAR myc_dbpasswd ESCAPE=HTML>"> |
|
190 |
</table> |
|
191 |
</td> |
|
192 |
</tr> |
|
193 |
|
|
194 |
<tr> |
|
195 |
<td colspan="2"><hr size="2" noshade></td> |
|
196 |
</tr> |
|
197 |
|
|
198 |
<tr class="listheading"><th colspan="2"><translate>Access Control</translate></th></tr> |
|
199 |
|
|
200 |
<TMPL_LOOP ACLS> |
|
201 |
<tr> |
|
202 |
<td valign="top"> |
|
203 |
<input type="checkbox" name="ACS_<TMPL_VAR name ESCAPE=HTML>" id="ACS_<TMPL_VAR name ESCAPE=HTML>" value="1" <TMPL_IF checked>checked</TMPL_IF>> |
|
204 |
<label for="ACS_<TMPL_VAR name ESCAPE=HTML>"><TMPL_VAR title ESCAPE=HTML></label> |
|
205 |
</td> |
|
206 |
|
|
207 |
<td valign="top"> |
|
208 |
<TMPL_LOOP SUBACLS> |
|
209 |
<input type="checkbox" name="ACS_<TMPL_VAR name ESCAPE=HTML>" id="ACS_<TMPL_VAR name ESCAPE=HTML>" value="1" <TMPL_IF checked>checked</TMPL_IF>> |
|
210 |
<label for="ACS_<TMPL_VAR name ESCAPE=HTML>"><TMPL_VAR title ESCAPE=HTML></label> |
|
211 |
<TMPL_UNLESS __last__><br></TMPL_UNLESS> |
|
212 |
</TMPL_LOOP> |
|
213 |
</td> |
|
214 |
</tr> |
|
215 |
</TMPL_LOOP> |
|
216 |
|
|
217 |
<input type="hidden" name="all_acs" value="<TMPL_VAR all_acs ESCAPE=HTML>"> |
|
218 |
|
|
219 |
<tr><td colspan="2"><hr size="3" noshade></td></tr> |
|
220 |
|
|
221 |
<tr class="listheading"> |
|
222 |
<th colspan="2"><translate>WEBDAV access</translate></th> |
|
223 |
</tr> |
|
224 |
|
|
225 |
<tr> |
|
226 |
<td colspan="2"> |
|
227 |
<table> |
|
228 |
<tr> |
|
229 |
<td><input name="angebote" class="checkbox" type="checkbox" value="1" <TMPL_IF myc_angebote>checked</TMPL_IF>> Angebot</td> |
|
230 |
<td><input name="bestellungen" class="checkbox" type="checkbox" value="1" <TMPL_IF myc_bestellungen>checked</TMPL_IF>> Bestellung</td> |
|
231 |
<td><input name="rechnungen" class="checkbox" type="checkbox" value="1" <TMPL_IF myc_rechnung>checked</TMPL_IF>> Rechnung</td> |
|
232 |
</tr> |
|
233 |
|
|
234 |
<tr> |
|
235 |
<td><input name="anfragen" class="checkbox" type="checkbox" value="1" <TMPL_IF myc_anfragen>checked</TMPL_IF>> Anfragen</td> |
|
236 |
<td><input name="lieferantenbestellungen" class="checkbox" type="checkbox" value="1" <TMPL_IF myc_lieferantenbestellungen>checked</TMPL_IF>> Lieferantenbestellung</td> |
|
237 |
<td><input name="einkaufsrechnungen" class="checkbox" type="checkbox" value="1" <TMPL_IF myc_einkaufsrechnungen>checked</TMPL_IF>> Einkaufsrechnung</td> |
|
238 |
</tr> |
|
239 |
</table> |
|
240 |
</td> |
|
241 |
</tr> |
|
242 |
|
|
243 |
<tr><td colspan="2"><hr size="3" noshade></td></tr> |
|
244 |
|
|
245 |
</table> |
|
246 |
|
|
247 |
<input name="callback" type="hidden" value="admin.pl?action=list_users&rpw=<TMPL_VAR rpw ESCAPE=URL>"> |
|
248 |
<input type="hidden" name="rpw" value="<TMPL_VAR rpw ESCAPE=HTML>"> |
|
249 |
|
|
250 |
<input type="submit" class="submit" name="action" value="<translate>Save</translate>"> |
|
251 |
|
|
252 |
<TMPL_IF edit> |
|
253 |
<input type="submit" class="submit" name="action" value="<translate>Delete</translate>"> |
|
254 |
<input type="hidden" name="edit" value="1"> |
|
255 |
</TMPL_IF> |
|
256 |
|
|
257 |
</form> |
|
258 |
|
|
259 |
</body> |
|
260 |
</html> |
Auch abrufbar als: Unified diff
Umstellung des Anlegens und Bearbeitens von Benutzern auf die Verwendung von HTML-Vorlagen.