Revision 6a9ef5df
Von Moritz Bunkus vor mehr als 17 Jahren hinzugefügt
bin/mozilla/admin.pl | ||
---|---|---|
157 | 157 |
. $locale->text('Administration') . " / " |
158 | 158 |
. $locale->text('Add User'); |
159 | 159 |
|
160 |
$form->{Oracle_sid} = $sid; |
|
161 |
$form->{Oracle_dbport} = '1521'; |
|
162 |
$form->{Oracle_dbhost} = `hostname`; |
|
163 |
|
|
164 | 160 |
my $myconfig = { |
165 | 161 |
"vclimit" => 200, |
166 | 162 |
"countrycode" => "de", |
... | ... | |
251 | 247 |
|
252 | 248 |
map { $form->{"myc_${_}"} = $myconfig->{$_} } keys %{ $myconfig }; |
253 | 249 |
|
254 |
map { $form->{"Pg_${_}"} = $myconfig->{$_} } qw(dbhost dbport dbname dbuser dbpasswd); |
|
255 |
|
|
256 | 250 |
# access control |
257 | 251 |
my @acsorder = (); |
258 | 252 |
my %acs = (); |
... | ... | |
316 | 310 |
|
317 | 311 |
sub save { |
318 | 312 |
|
319 |
# no driver checked |
|
320 |
$form->error($locale->text('Database Driver not checked!')) |
|
321 |
unless $form->{dbdriver}; |
|
313 |
$form->{dbdriver} = 'Pg'; |
|
322 | 314 |
|
323 | 315 |
# no spaces allowed in login name |
324 | 316 |
($form->{login}) = split / /, $form->{login}; |
... | ... | |
365 | 357 |
} |
366 | 358 |
$form->{acs} = join ";", @acs; |
367 | 359 |
|
368 |
# check which database was filled in |
|
369 |
if ($form->{dbdriver} eq 'Oracle') { |
|
370 |
$form->{sid} = $form->{Oracle_sid},; |
|
371 |
$form->{dbhost} = $form->{Oracle_dbhost},; |
|
372 |
$form->{dbport} = $form->{Oracle_dbport}; |
|
373 |
$form->{dbpasswd} = $form->{Oracle_dbpasswd}; |
|
374 |
$form->{dbuser} = $form->{Oracle_dbuser}; |
|
375 |
$form->{dbname} = $form->{Oracle_dbuser}; |
|
376 |
|
|
377 |
$form->isblank("dbhost", $locale->text('Hostname missing!')); |
|
378 |
$form->isblank("dbport", $locale->text('Port missing!')); |
|
379 |
$form->isblank("dbuser", $locale->text('Dataset missing!')); |
|
380 |
} |
|
381 |
if ($form->{dbdriver} eq 'Pg') { |
|
382 |
$form->{dbhost} = $form->{Pg_dbhost}; |
|
383 |
$form->{dbport} = $form->{Pg_dbport}; |
|
384 |
$form->{dbpasswd} = $form->{Pg_dbpasswd}; |
|
385 |
$form->{dbuser} = $form->{Pg_dbuser}; |
|
386 |
$form->{dbname} = $form->{Pg_dbname}; |
|
387 |
|
|
388 |
$form->isblank("dbname", $locale->text('Dataset missing!')); |
|
389 |
$form->isblank("dbuser", $locale->text('Database User missing!')); |
|
390 |
} |
|
360 |
$form->isblank("dbname", $locale->text('Dataset missing!')); |
|
361 |
$form->isblank("dbuser", $locale->text('Database User missing!')); |
|
391 | 362 |
|
392 | 363 |
foreach $item (keys %{$form}) { |
393 | 364 |
$myconfig->{$item} = $form->{$item}; |
... | ... | |
582 | 553 |
|
583 | 554 |
} |
584 | 555 |
|
585 |
sub oracle_database_administration { |
|
586 |
|
|
587 |
$form->{dbdriver} = 'Oracle'; |
|
588 |
dbselect_source(); |
|
589 |
|
|
590 |
} |
|
591 |
|
|
592 |
sub dbdriver_defaults { |
|
593 |
|
|
594 |
# load some defaults for the selected driver |
|
595 |
%driverdefaults = ( |
|
596 |
'Pg' => { dbport => '5432', |
|
597 |
dbuser => 'postgres', |
|
598 |
dbdefault => 'template1', |
|
599 |
dbhost => 'localhost', |
|
600 |
connectstring => $locale->text('Connect to') |
|
601 |
}, |
|
602 |
'Oracle' => { dbport => '1521', |
|
603 |
dbuser => 'oralin', |
|
604 |
dbdefault => $sid, |
|
605 |
dbhost => `hostname`, |
|
606 |
connectstring => 'SID' |
|
607 |
}); |
|
608 |
|
|
609 |
map { $form->{$_} = $driverdefaults{ $form->{dbdriver} }{$_} } |
|
610 |
keys %{ $driverdefaults{Pg} }; |
|
611 |
|
|
612 |
} |
|
613 |
|
|
614 | 556 |
sub dbselect_source { |
557 |
$form->{dbport} = '5432'; |
|
558 |
$form->{dbuser} = 'postgres'; |
|
559 |
$form->{dbdefault} = 'template1'; |
|
560 |
$form->{dbhost} = 'localhost'; |
|
615 | 561 |
|
616 |
dbdriver_defaults(); |
|
617 |
|
|
618 |
$msg{Pg} = |
|
619 |
$locale->text( |
|
620 |
'Leave host and port field empty unless you want to make a remote connection.' |
|
621 |
); |
|
622 |
$msg{Oracle} = |
|
623 |
$locale->text( |
|
624 |
'You must enter a host and port for local and remote connections!'); |
|
625 |
|
|
626 |
$form->{title} = |
|
627 |
"Lx-Office ERP / " . $locale->text('Database Administration'); |
|
628 |
|
|
629 |
$form->header; |
|
630 |
|
|
631 |
print qq| |
|
632 |
<body class=admin> |
|
633 |
|
|
634 |
|
|
635 |
<center> |
|
636 |
<h2>$form->{title}</h2> |
|
637 |
|
|
638 |
<form method=post action=$form->{script}> |
|
639 |
|
|
640 |
<table> |
|
641 |
<tr><td> |
|
642 |
|
|
643 |
<table> |
|
644 |
|
|
645 |
<tr class=listheading> |
|
646 |
<th colspan=4>| . $locale->text('Database') . qq|</th> |
|
647 |
</tr> |
|
648 |
|
|
649 |
<input type=hidden name=dbdriver value=$form->{dbdriver}> |
|
650 |
|
|
651 |
<tr><td> |
|
652 |
<table> |
|
653 |
|
|
654 |
<tr> |
|
655 |
|
|
656 |
<th align=right>| . $locale->text('Host') . qq|</th> |
|
657 |
<td><input name=dbhost size=25 value=$form->{dbhost}></td> |
|
658 |
<th align=right>| . $locale->text('Port') . qq|</th> |
|
659 |
<td><input name=dbport size=5 value=$form->{dbport}></td> |
|
660 |
|
|
661 |
</tr> |
|
662 |
|
|
663 |
<tr> |
|
664 |
|
|
665 |
<th align=right>| . $locale->text('User') . qq|</th> |
|
666 |
<td><input name="dbuser" size="10" value="$form->{dbuser}"></td> |
|
667 |
<th align=right>| . $locale->text('Password') . qq|</th> |
|
668 |
<td><input type="password" name="dbpasswd" size="10"></td> |
|
669 |
|
|
670 |
</tr> |
|
671 |
|
|
672 |
<tr> |
|
673 |
|
|
674 |
<th align=right>$form->{connectstring}</th> |
|
675 |
<td colspan=3><input name=dbdefault size=10 value=$form->{dbdefault}></td> |
|
676 |
|
|
677 |
</tr> |
|
678 |
|
|
679 |
</table> |
|
680 |
|
|
681 |
</td></tr> |
|
682 |
</table> |
|
683 |
|
|
684 |
<input name=callback type=hidden value="$form->{script}?action=list_users&rpw=$form->{rpw}"> |
|
685 |
<input type=hidden name=rpw value=$form->{rpw}> |
|
686 |
|
|
687 |
<br> |
|
688 |
|
|
689 |
<input type=submit class=submit name=action value="| |
|
690 |
. $locale->text('Create Dataset') . qq|">|; |
|
691 |
# Vor?bergehend Deaktiviert |
|
692 |
# <input type=submit class=submit name=action value="| |
|
693 |
# . $locale->text('Update Dataset') . qq|"> |
|
694 |
print qq| <input type=submit class=submit name=action value="| |
|
695 |
. $locale->text('Delete Dataset') . qq|"> |
|
696 |
|
|
697 |
</form> |
|
698 |
|
|
699 |
</td></tr> |
|
700 |
</table> |
|
701 |
|
|
702 |
<p>| |
|
703 |
. $locale->text( |
|
704 |
'This is a preliminary check for existing sources. Nothing will be created or deleted at this stage!' |
|
705 |
) |
|
706 |
|
|
707 |
. qq| |
|
708 |
<br>$msg{$form->{dbdriver}} |
|
709 |
|
|
710 |
|
|
711 |
</body> |
|
712 |
</html> |
|
713 |
|; |
|
562 |
$form->{title} = "Lx-Office ERP / " . $locale->text('Database Administration'); |
|
714 | 563 |
|
564 |
$form->header(); |
|
565 |
print $form->parse_html_template("admin/dbadmin"); |
|
715 | 566 |
} |
716 | 567 |
|
717 | 568 |
sub continue { |
... | ... | |
753 | 604 |
<table width=100%> |
754 | 605 |
<form method=post action=$form->{script}> |
755 | 606 |
|
756 |
<input type=hidden name="dbdriver" value="$form->{dbdriver}"> |
|
757 | 607 |
<input type=hidden name="dbhost" value="$form->{dbhost}"> |
758 | 608 |
<input type=hidden name="dbport" value="$form->{dbport}"> |
759 | 609 |
<input type=hidden name="dbuser" value="$form->{dbuser}"> |
locale/de/admin | ||
---|---|---|
10 | 10 |
'Cannot create Lock!' => 'System kann nicht gesperrt werden!', |
11 | 11 |
'Change Admin Password' => 'Administratorpasswort ?ndern', |
12 | 12 |
'Confirmation' => 'Auftragsbest?tigung', |
13 |
'Connect to' => 'Als Vorlage verwenden', |
|
14 | 13 |
'Continue' => 'Weiter', |
15 | 14 |
'Create Dataset' => 'Datenbank anlegen', |
16 | 15 |
'Credit Note' => 'Gutschrift', |
... | ... | |
18 | 17 |
'Customer details' => 'Kundendetails', |
19 | 18 |
'DELETED' => 'Gel?scht', |
20 | 19 |
'DUNNING STARTED' => 'Mahnprozess gestartet', |
21 |
'Database' => 'Datenbank', |
|
22 | 20 |
'Database Administration' => 'Datenbankadministration', |
23 |
'Database Driver not checked!' => 'Kein Datenbanktreiber ausgew?hlt!', |
|
24 | 21 |
'Database User missing!' => 'Datenbankbenutzer fehlt!', |
25 | 22 |
'Dataset missing!' => 'Datenbank fehlt!', |
26 | 23 |
'Dataset updated!' => 'Datenbank erneuert!', |
... | ... | |
33 | 30 |
'Error in database control file \'%s\': %s' => 'Fehler in Datenbankupgradekontrolldatei \'%s\': %s', |
34 | 31 |
'File locked!' => 'Datei gesperrt!', |
35 | 32 |
'History' => 'Historie', |
36 |
'Host' => 'Datenbankcomputer', |
|
37 |
'Hostname missing!' => 'Computername fehlt!', |
|
38 | 33 |
'Incorrect Password!' => 'Ung?ltiges Passwort!', |
39 | 34 |
'Invoice' => 'Rechnung', |
40 |
'Leave host and port field empty unless you want to make a remote connection.' => 'F?r lokale Verbindungen "Rechner" und "Port" freilassen.', |
|
41 | 35 |
'Lockfile created!' => 'System gesperrt!', |
42 | 36 |
'Lockfile removed!' => 'System entsperrt!', |
43 | 37 |
'Login name missing!' => 'Loginname fehlt.', |
... | ... | |
63 | 57 |
'Packing List' => 'Lieferschein', |
64 | 58 |
'Part Number' => 'Artikelnummer', |
65 | 59 |
'Part description' => 'Artikelbeschreibung', |
66 |
'Password' => 'Passwort', |
|
67 | 60 |
'Password changed!' => 'Passwort ge?ndert!', |
68 | 61 |
'Pick List' => 'Sammelliste', |
69 | 62 |
'Please enter values' => 'Bitte Werte eingeben', |
70 |
'Port' => 'Port', |
|
71 |
'Port missing!' => 'Portangabe fehlt!', |
|
72 | 63 |
'Proforma Invoice' => 'Proformarechnung', |
73 | 64 |
'Project Number' => 'Projektnummer', |
74 | 65 |
'Project description' => 'Projektbeschreibung', |
... | ... | |
89 | 80 |
'The following Datasets need to be updated' => 'Folgende Datenbanken m?ssen aktualisiert werden', |
90 | 81 |
'The login is missing.' => 'Das Login fehlt.', |
91 | 82 |
'The passwords do not match.' => 'Die Passwörter stimmen nicht überein.', |
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!', |
|
93 | 83 |
'Trying to call a sub without a name' => 'Es wurde versucht, eine Unterfunktion ohne Namen aufzurufen.', |
94 | 84 |
'Unit' => 'Einheit', |
95 | 85 |
'Unknown dependency \'%s\'.' => 'Unbekannte Abhängigkeit \'%s\'.', |
96 | 86 |
'Update Dataset' => 'Datenbank aktualisieren', |
97 |
'User' => 'Benutzer', |
|
98 | 87 |
'User deleted!' => 'Benutzer gel?scht!', |
99 | 88 |
'User saved!' => 'Benutzer gespeichert!', |
100 | 89 |
'Value' => 'Wert', |
101 | 90 |
'Variable' => 'Variable', |
102 | 91 |
'Vendor details' => 'Lieferantendetails', |
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!', |
|
104 | 92 |
'bin_list' => 'Lagerliste', |
105 | 93 |
'invoice' => 'Rechnung', |
106 | 94 |
'is already a member!' => 'ist bereits ein Mitglied!', |
... | ... | |
130 | 118 |
'create_dataset' => 'create_dataset', |
131 | 119 |
'dbcreate' => 'dbcreate', |
132 | 120 |
'dbdelete' => 'dbdelete', |
133 |
'dbdriver_defaults' => 'dbdriver_defaults', |
|
134 | 121 |
'dbselect_source' => 'dbselect_source', |
135 | 122 |
'dbupdate' => 'dbupdate', |
136 | 123 |
'delete' => 'delete', |
... | ... | |
145 | 132 |
'lock_system' => 'lock_system', |
146 | 133 |
'login' => 'login', |
147 | 134 |
'login_name' => 'login_name', |
148 |
'oracle_database_administration' => 'oracle_database_administration', |
|
149 | 135 |
'part_selection_internal' => 'part_selection_internal', |
150 | 136 |
'pg_database_administration' => 'pg_database_administration', |
151 | 137 |
'project_selection_internal' => 'project_selection_internal', |
locale/de/all | ||
---|---|---|
261 | 261 |
'Compare to' => 'Gegen?berstellen zu', |
262 | 262 |
'Confirm!' => 'Best?tigen Sie!', |
263 | 263 |
'Confirmation' => 'Auftragsbest?tigung', |
264 |
'Connect to' => 'Als Vorlage verwenden', |
|
265 | 264 |
'Contact' => 'Kontakt', |
266 | 265 |
'Contact Person' => 'Ansprechpartner', |
267 | 266 |
'Contacts' => 'Kontakte', |
... | ... | |
318 | 317 |
'DUNS-Nr' => 'DUNS-Nr.', |
319 | 318 |
'Database' => 'Datenbank', |
320 | 319 |
'Database Administration' => 'Datenbankadministration', |
321 |
'Database Driver not checked!' => 'Kein Datenbanktreiber ausgew?hlt!', |
|
322 | 320 |
'Database Host' => 'Datenbankcomputer', |
323 | 321 |
'Database User missing!' => 'Datenbankbenutzer fehlt!', |
322 |
'Database template' => 'Datenbankvorlage', |
|
324 | 323 |
'Database update error:' => 'Fehler beim Datenbankupgrade:', |
325 | 324 |
'Dataset' => 'Datenbank', |
326 | 325 |
'Dataset missing!' => 'Datenbank fehlt!', |
... | ... | |
520 | 519 |
'History Search Engine' => 'Historien Suchmaschiene', |
521 | 520 |
'Homepage' => 'Homepage', |
522 | 521 |
'Host' => 'Datenbankcomputer', |
523 |
'Hostname missing!' => 'Computername fehlt!', |
|
524 | 522 |
'I' => 'I', |
525 | 523 |
'ID' => 'Buchungsnummer', |
526 | 524 |
'ID-Nummer' => 'ID-Nummer (intern)', |
... | ... | |
615 | 613 |
'Last Service Number' => 'Letzte Dienstleistungsnr.', |
616 | 614 |
'Last Vendor Number' => 'Letzte Lieferantennummer', |
617 | 615 |
'Lead' => 'Kundenquelle', |
618 |
'Leave host and port field empty unless you want to make a remote connection.' => 'F?r lokale Verbindungen "Rechner" und "Port" freilassen.',
|
|
616 |
'Leave host and port field empty unless you want to make a remote connection.' => 'Für lokale Verbindungen "Rechner" und "Port" freilassen.',
|
|
619 | 617 |
'Liability' => 'Passiva/Mittelherkunft', |
620 | 618 |
'License' => 'Lizenz', |
621 | 619 |
'License key' => 'Lizenzschl?ssel', |
... | ... | |
806 | 804 |
'Please seletct the dataset you want to delete:' => 'Bitte wählen Sie die zu löschende Datenbank aus:', |
807 | 805 |
'Plural' => 'Plural', |
808 | 806 |
'Port' => 'Port', |
809 |
'Port missing!' => 'Portangabe fehlt!', |
|
810 | 807 |
'Post' => 'Buchen', |
811 | 808 |
'Post Payment' => 'Zahlung buchen', |
812 | 809 |
'Post as new' => 'Neu buchen', |
... | ... | |
1072 | 1069 |
'Therefore there\'s no need to create the same article more than once if it is sold or bought in/from another tax zone.' => 'Deswegen muss man den gleichen Artikel nicht mehr mehrmals anlegen, wenn er in verschiedenen Steuerzonen gehandelt werden soll.', |
1073 | 1070 |
'These units can be based on other units so that Lx-Office can convert prices when the user switches from one unit to another.' => 'Diese Einheiten können auf anderen Einheiten basieren, sodass Lx-Office Preise umrechnen kann, wenn der Benutzer von einer Einheit zu einer anderen Wechselt.', |
1074 | 1071 |
'This customer number is already in use.' => 'Diese Kundennummer wird bereits verwendet.', |
1075 |
'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!',
|
|
1072 |
'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!',
|
|
1076 | 1073 |
'This upgrade script tries to map all existing parts in the database to the newly created Buchungsgruppen.' => 'Dieses Upgradescript versucht, bei allen bestehenden Artikeln neu erstellte Buchungsgruppen zuzuordnen.', |
1077 | 1074 |
'This upgrade script tries to map all existing units in the database to the newly created units.' => 'Dieses Update-Script versucht, alle bestehenden Einheiten automatisch in die neuen Einheiten umzuwandeln.', |
1078 | 1075 |
'This vendor number is already in use.' => 'Diese Lieferantennummer wird bereits verwendet.', |
... | ... | |
1182 | 1179 |
'You have to chose a dimension unit and a service unit which will then be assigned to those entries.' => 'Sie müssen eine Maß- und eine Dienstleistungseinheit auswählen, die diesen Waren und Dienstleistungen, denen noch keine Einheit zugeordnet ist, zugeordnet wird.', |
1183 | 1180 |
'You have to chose which unit to save for each of them.' => 'Sie müssen für jeden Artikel die neue Einheit auswählen.', |
1184 | 1181 |
'You have to create new Buchungsgruppen for all the combinations of inventory, income and expense accounts that have been used already.' => 'Sie müssen neue Buchungsgruppen für alle Kombinationen aus Inventar-, Erlös- und Aufwandskonto, die bereits benutzt wurden.', |
1185 |
'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!', |
|
1186 | 1182 |
'You\'re not editing a file.' => 'Sie bearbeiten momentan keine Datei.', |
1187 | 1183 |
'You\'ve already chosen the following limitations:' => 'Sie haben bereits die folgenden Einschränkungen vorgenommen:', |
1188 | 1184 |
'Zeitpunkt' => 'Zeitpunkt', |
templates/webpages/admin/dbadmin_de.html | ||
---|---|---|
1 |
<body class="admin"> |
|
2 |
|
|
3 |
<div align="center"> |
|
4 |
<h2><TMPL_VAR title></h2> |
|
5 |
|
|
6 |
<form method="post" action="admin.pl"> |
|
7 |
|
|
8 |
<table> |
|
9 |
<tr> |
|
10 |
<td> |
|
11 |
|
|
12 |
<table> |
|
13 |
|
|
14 |
<input type="hidden" name="dbdriver" value="<TMPL_VAR dbdriver ESCAPE=HTML>"> |
|
15 |
|
|
16 |
<tr> |
|
17 |
<td> |
|
18 |
<table> |
|
19 |
|
|
20 |
<tr> |
|
21 |
|
|
22 |
<th align="right">Datenbankcomputer</th> |
|
23 |
<td><input name="dbhost" size="25" value="<TMPL_VAR dbhost ESCAPE=HTML>"></td> |
|
24 |
<th align="right">Port</th> |
|
25 |
<td><input name="dbport" size="5" value="<TMPL_VAR dbport ESCAPE=HTML>"></td> |
|
26 |
|
|
27 |
</tr> |
|
28 |
|
|
29 |
<tr> |
|
30 |
|
|
31 |
<th align="right">Benutzer</th> |
|
32 |
<td><input name="dbuser" size="10" value="<TMPL_VAR dbuser ESCAPE=HTML>"></td> |
|
33 |
<th align="right">Passwort</th> |
|
34 |
<td><input type="password" name="dbpasswd" size="10"></td> |
|
35 |
|
|
36 |
</tr> |
|
37 |
|
|
38 |
<tr> |
|
39 |
|
|
40 |
<th align="right">Datenbankvorlage</th> |
|
41 |
<td colspan="3"><input name="dbdefault" size="10" value="<TMPL_VAR dbdefault ESCAPE=HTML>"></td> |
|
42 |
|
|
43 |
</tr> |
|
44 |
|
|
45 |
</table> |
|
46 |
|
|
47 |
</td> |
|
48 |
</tr> |
|
49 |
</table> |
|
50 |
|
|
51 |
<input name="callback" type="hidden" value="admin.pl?action=list_users&rpw=<TMPL_VAR rpw ESCAPE=URL>"> |
|
52 |
<input type="hidden" name="rpw" value="<TMPL_VAR rpw ESCAPE=HTML>"> |
|
53 |
|
|
54 |
<br> |
|
55 |
|
|
56 |
<input type="submit" class="submit" name="action" value="Datenbank anlegen"> |
|
57 |
<!-- <input type="submit" class="submit" name="action" value="Datenbank aktualisieren"> --> |
|
58 |
<input type="submit" class="submit" name="action" value="Datenbank l?schen"> |
|
59 |
</td> |
|
60 |
</tr> |
|
61 |
</table> |
|
62 |
</form> |
|
63 |
|
|
64 |
<p>In diesem Schritt werden bestehende Datenbanken gesucht. Es werden noch keine Änderungen vorgenommen!</p> |
|
65 |
|
|
66 |
<p>Für lokale Verbindungen "Rechner" und "Port" freilassen.</p> |
|
67 |
|
|
68 |
</div> |
|
69 |
</body> |
|
70 |
</html> |
templates/webpages/admin/dbadmin_master.html | ||
---|---|---|
1 |
<body class="admin"> |
|
2 |
|
|
3 |
<div align="center"> |
|
4 |
<h2><TMPL_VAR title></h2> |
|
5 |
|
|
6 |
<form method="post" action="admin.pl"> |
|
7 |
|
|
8 |
<table> |
|
9 |
<tr> |
|
10 |
<td> |
|
11 |
|
|
12 |
<table> |
|
13 |
|
|
14 |
<input type="hidden" name="dbdriver" value="<TMPL_VAR dbdriver ESCAPE=HTML>"> |
|
15 |
|
|
16 |
<tr> |
|
17 |
<td> |
|
18 |
<table> |
|
19 |
|
|
20 |
<tr> |
|
21 |
|
|
22 |
<th align="right"><translate>Host</translate></th> |
|
23 |
<td><input name="dbhost" size="25" value="<TMPL_VAR dbhost ESCAPE=HTML>"></td> |
|
24 |
<th align="right"><translate>Port</translate></th> |
|
25 |
<td><input name="dbport" size="5" value="<TMPL_VAR dbport ESCAPE=HTML>"></td> |
|
26 |
|
|
27 |
</tr> |
|
28 |
|
|
29 |
<tr> |
|
30 |
|
|
31 |
<th align="right"><translate>User</translate></th> |
|
32 |
<td><input name="dbuser" size="10" value="<TMPL_VAR dbuser ESCAPE=HTML>"></td> |
|
33 |
<th align="right"><translate>Password</translate></th> |
|
34 |
<td><input type="password" name="dbpasswd" size="10"></td> |
|
35 |
|
|
36 |
</tr> |
|
37 |
|
|
38 |
<tr> |
|
39 |
|
|
40 |
<th align="right"><translate>Database template</translate></th> |
|
41 |
<td colspan="3"><input name="dbdefault" size="10" value="<TMPL_VAR dbdefault ESCAPE=HTML>"></td> |
|
42 |
|
|
43 |
</tr> |
|
44 |
|
|
45 |
</table> |
|
46 |
|
|
47 |
</td> |
|
48 |
</tr> |
|
49 |
</table> |
|
50 |
|
|
51 |
<input name="callback" type="hidden" value="admin.pl?action=list_users&rpw=<TMPL_VAR rpw ESCAPE=URL>"> |
|
52 |
<input type="hidden" name="rpw" value="<TMPL_VAR rpw ESCAPE=HTML>"> |
|
53 |
|
|
54 |
<br> |
|
55 |
|
|
56 |
<input type="submit" class="submit" name="action" value="<translate>Create Dataset</translate>"> |
|
57 |
<!-- <input type="submit" class="submit" name="action" value="<translate>Update Dataset</translate>"> --> |
|
58 |
<input type="submit" class="submit" name="action" value="<translate>Delete Dataset</translate>"> |
|
59 |
</td> |
|
60 |
</tr> |
|
61 |
</table> |
|
62 |
</form> |
|
63 |
|
|
64 |
<p><translate>This is a preliminary check for existing sources. Nothing will be created or deleted at this stage!</translate></p> |
|
65 |
|
|
66 |
<p><translate>Leave host and port field empty unless you want to make a remote connection.</translate></p> |
|
67 |
|
|
68 |
</div> |
|
69 |
</body> |
|
70 |
</html> |
templates/webpages/admin/edit_user_de.html | ||
---|---|---|
167 | 167 |
<table> |
168 | 168 |
<tr> |
169 | 169 |
<th align="right">Treiber</th> |
170 |
<td><input type="hidden" name="dbdriver" value="Pg">PostgreSQL</td>
|
|
170 |
<td>PostgreSQL</td> |
|
171 | 171 |
<th align="right">Datenbankcomputer</th> |
172 |
<td><input name="Pg_dbhost" size="30" value="<TMPL_VAR Pg_dbhost ESCAPE=HTML>"></td>
|
|
172 |
<td><input name="dbhost" size="30" value="<TMPL_VAR myc_dbhost ESCAPE=HTML>"></td>
|
|
173 | 173 |
</tr> |
174 | 174 |
|
175 | 175 |
<tr> |
176 | 176 |
<th align="right">Datenbank</th> |
177 |
<td><input name="Pg_dbname" size="15" value="<TMPL_VAR Pg_dbname ESCAPE=HTML>"></td>
|
|
177 |
<td><input name="dbname" size="15" value="<TMPL_VAR myc_dbname ESCAPE=HTML>"></td>
|
|
178 | 178 |
<th align="right">Port</th> |
179 |
<td><input name="Pg_dbport" size="4" value="<TMPL_VAR Pg_dbport ESCAPE=HTML>"></td>
|
|
179 |
<td><input name="dbport" size="4" value="<TMPL_VAR myc_dbport ESCAPE=HTML>"></td>
|
|
180 | 180 |
</tr> |
181 | 181 |
|
182 | 182 |
<tr> |
183 | 183 |
<th align="right">Benutzer</th> |
184 |
<td><input name="Pg_dbuser" size="15" value="<TMPL_VAR Pg_dbuser ESCAPE=HTML>"></td>
|
|
184 |
<td><input name="dbuser" size="15" value="<TMPL_VAR myc_dbuser ESCAPE=HTML>"></td>
|
|
185 | 185 |
<th align="right">Passwort</th> |
186 |
<td><input name="Pg_dbpasswd" type="password" size="10" value="<TMPL_VAR Pg_dbpasswd ESCAPE=HTML>"></td>
|
|
186 |
<td><input name="dbpasswd" type="password" size="10" value="<TMPL_VAR myc_dbpasswd ESCAPE=HTML>"></td>
|
|
187 | 187 |
</tr> |
188 | 188 |
|
189 | 189 |
<input type="hidden" name="old_dbpasswd" value="<TMPL_VAR myc_dbpasswd ESCAPE=HTML>"> |
templates/webpages/admin/edit_user_master.html | ||
---|---|---|
167 | 167 |
<table> |
168 | 168 |
<tr> |
169 | 169 |
<th align="right"><translate>Driver</translate></th> |
170 |
<td><input type="hidden" name="dbdriver" value="Pg">PostgreSQL</td>
|
|
170 |
<td>PostgreSQL</td> |
|
171 | 171 |
<th align="right"><translate>Host</translate></th> |
172 |
<td><input name="Pg_dbhost" size="30" value="<TMPL_VAR Pg_dbhost ESCAPE=HTML>"></td>
|
|
172 |
<td><input name="dbhost" size="30" value="<TMPL_VAR myc_dbhost ESCAPE=HTML>"></td>
|
|
173 | 173 |
</tr> |
174 | 174 |
|
175 | 175 |
<tr> |
176 | 176 |
<th align="right"><translate>Dataset</translate></th> |
177 |
<td><input name="Pg_dbname" size="15" value="<TMPL_VAR Pg_dbname ESCAPE=HTML>"></td>
|
|
177 |
<td><input name="dbname" size="15" value="<TMPL_VAR myc_dbname ESCAPE=HTML>"></td>
|
|
178 | 178 |
<th align="right"><translate>Port</translate></th> |
179 |
<td><input name="Pg_dbport" size="4" value="<TMPL_VAR Pg_dbport ESCAPE=HTML>"></td>
|
|
179 |
<td><input name="dbport" size="4" value="<TMPL_VAR myc_dbport ESCAPE=HTML>"></td>
|
|
180 | 180 |
</tr> |
181 | 181 |
|
182 | 182 |
<tr> |
183 | 183 |
<th align="right"><translate>User</translate></th> |
184 |
<td><input name="Pg_dbuser" size="15" value="<TMPL_VAR Pg_dbuser ESCAPE=HTML>"></td>
|
|
184 |
<td><input name="dbuser" size="15" value="<TMPL_VAR myc_dbuser ESCAPE=HTML>"></td>
|
|
185 | 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>
|
|
186 |
<td><input name="dbpasswd" type="password" size="10" value="<TMPL_VAR myc_dbpasswd ESCAPE=HTML>"></td>
|
|
187 | 187 |
</tr> |
188 | 188 |
|
189 | 189 |
<input type="hidden" name="old_dbpasswd" value="<TMPL_VAR myc_dbpasswd ESCAPE=HTML>"> |
Auch abrufbar als: Unified diff
Maske "Datenbankadministration" auf die Verwendung von HTML-Vorlagen umgestellt.