X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/f14ee9757f16935755db5e0710a3f713637faada..c3cee60334aa81dfb51e5ffe45635d59450c3409:/bin/mozilla/admin.pl
diff --git a/bin/mozilla/admin.pl b/bin/mozilla/admin.pl
index a9769a06b..ef985f40c 100644
--- a/bin/mozilla/admin.pl
+++ b/bin/mozilla/admin.pl
@@ -160,18 +160,15 @@ sub add_user {
$form->{Oracle_dbport} = '1521';
$form->{Oracle_dbhost} = `hostname`;
- if (-f "css/lx-office-erp.css") {
- $myconfig->{stylesheet} = "lx-office-erp.css";
- }
-
- $myconfig->{vclimit} = 200;
- $myconfig->{countrycode} = "de";
- $myconfig->{numberformat} = "1000,00";
- $myconfig->{dateformat} = "dd.mm.yy";
-
- form_header();
- form_footer();
-
+ my $myconfig = {
+ "vclimit" => 200,
+ "countrycode" => "de",
+ "numberformat" => "1000,00",
+ "dateformat" => "dd.mm.yy",
+ "stylesheet" => "lx-office-erp.css",
+ };
+
+ edit_user_form($myconfig);
}
sub edit {
@@ -182,91 +179,46 @@ sub edit {
. $locale->text('Edit User');
$form->{edit} = 1;
- form_header();
- form_footer();
-
-}
-
-sub form_footer {
-
- if ($form->{edit}) {
- $delete =
- qq|
-|;
- }
-
- print qq|
-
-
-{rpw}>
+ $form->isblank("login", $locale->text("The login is missing."));
-
-$delete
+ # get user
+ my $myconfig = new User "$memberfile", "$form->{login}";
-
+ $myconfig->{signature} =~ s/\\n/\r\n/g;
+ $myconfig->{address} =~ s/\\n/\r\n/g;
-