X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/9a22f14c16b2ba3ee47bc2ea0c97078260e3c167..53beea8bb782b8ddf13d291bb274cff31456dc21:/bin/mozilla/admin.pl
diff --git a/bin/mozilla/admin.pl b/bin/mozilla/admin.pl
index c1fbb7c6c..8cd79a4c5 100644
--- a/bin/mozilla/admin.pl
+++ b/bin/mozilla/admin.pl
@@ -38,6 +38,7 @@ use SL::Form;
use SL::User;
$form = new Form;
+$form->{"root"} = "root login";
$locale = new Locale $language, "admin";
@@ -55,6 +56,7 @@ $form->{favicon} = "favicon.ico";
if ($form->{action}) {
+
$subroutine = $locale->findsub($form->{action});
if ($subroutine eq 'login') {
@@ -120,11 +122,9 @@ sub adminlogin {
| . $locale->text('Password') . qq|
+ . $locale->text('Login') . qq|">
-
{path}>
@@ -164,6 +164,10 @@ sub add_user {
}
$myconfig->{vclimit} = 200;
+ $myconfig->{"countrycode"} = "de";
+ $myconfig->{"numberformat"} = "1000,00";
+ $myconfig->{"dateformat"} = "dd.mm.yy";
+
&form_header;
&form_footer;
@@ -193,8 +197,7 @@ sub form_footer {
print qq|
-
-
+
{path}>
{rpw}>
@@ -236,7 +239,7 @@ sub list_users {
if (/^(name=|company=|templates=|dbuser=|dbdriver=|dbname=|dbhost=)/) {
chop($var = $&);
- ($null, $member{$login}{$var}) = split /=/, $_, 2;
+ ($null, $member{$login}{$var}) = split(/=/, $_, 2);
}
}
@@ -290,7 +293,7 @@ sub list_users {
foreach $key (sort keys %member) {
$href =
- "$script?action=edit&login=$key&path=$form->{path}&root=$form->{root}&rpw=$form->{rpw}";
+ "$script?action=edit&login=$key&path=$form->{path}&rpw=$form->{rpw}";
$href =~ s/ /%20/g;
$member{$key}{templates} =~ s/^$templates\///;
@@ -299,7 +302,7 @@ sub list_users {
$member{$key}{dbname} = $member{$key}{dbuser}
if ($member{$key}{dbdriver} eq 'Oracle');
- $column_data{login} = qq|$key |;
+ $column_data{login} = qq|$key |;
$column_data{name} = qq|$member{$key}{name} |;
$column_data{company} = qq|$member{$key}{company} |;
$column_data{dbdriver} = qq|$member{$key}{dbdriver} |;
@@ -310,7 +313,7 @@ sub list_users {
$i++;
$i %= 2;
print qq|
- |;
+ |;
map { print "$column_data{$_}\n" } @column_index;
@@ -329,7 +332,6 @@ sub list_users {
{path}>
{rpw}>
-
@@ -344,7 +346,9 @@ $nologin
| . $locale->text('Click on login name to edit!') . qq|
|
- . $locale->text('To add a user to a group edit a name, change the login name and save. A new user with the same variables will then be saved under the new login name.')
+ . $locale->text(
+ 'To add a user to a group edit a name, change the login name and save. A new user with the same variables will then be saved under the new login name.'
+ )
. qq|
@@ -367,8 +371,7 @@ $nologin
| . $locale->text('Password') . qq|
+ . $locale->text('Login') . qq|">
{path}>
@@ -420,7 +423,8 @@ sub form_header {
%countrycodes = User->country_codes;
$countrycodes = "";
foreach $key (sort { $countrycodes{$a} cmp $countrycodes{$b} }
- keys %countrycodes) {
+ keys %countrycodes
+ ) {
$countrycodes .=
($myconfig->{countrycode} eq $key)
? "$countrycodes{$key}"
@@ -440,7 +444,8 @@ sub form_header {
closedir TEMPLATEDIR;
@allhtml = sort grep /\.html/, @all;
- @alldir = grep !/\.(html|tex)$/, @all;
+ @alldir = grep !/\.(html|tex|sty|odt)$/, @all;
+ @alldir = grep !/^(webpages|\.svn)$/, @alldir;
@allhtml = reverse grep !/Default/, @allhtml;
push @allhtml, 'Default';
@@ -461,7 +466,8 @@ sub form_header {
$item =~ s/-.*//g;
if ($item ne $lastitem) {
- $mastertemplates .= qq| $item\n|;
+ my $selected = $item eq "German" ? " selected" : "";
+ $mastertemplates .= qq| $item\n|;
$lastitem = $item;
}
}
@@ -481,6 +487,9 @@ sub form_header {
$form->header;
+ if ($myconfig->{menustyle} eq "neu") { $neu = "checked"; }
+ else { $old = "checked"; }
+
print qq|
@@ -535,7 +544,7 @@ sub form_header {
| . $locale->text('Ust-IDNr') . qq|
-
+
| . $locale->text('DUNS-Nr') . qq|
@@ -585,6 +594,11 @@ sub form_header {
| . $locale->text('Setup Templates') . qq|
$mastertemplates
+
+ | . $locale->text('Setup Menu') . qq|
+ New
+ Old
+
{templates}>
@@ -714,7 +728,7 @@ sub form_header {
|;
- foreach $item (split /;/, $myconfig->{acs}) {
+ foreach $item (split(/;/, $myconfig->{acs})) {
($key, $value) = split /--/, $item, 2;
$excl{$key}{$value} = 1;
}
@@ -849,7 +863,7 @@ sub save {
$myconfig = new User "$memberfile", "$form->{login}";
# redo acs variable and delete all the acs codes
- @acs = split /;/, $form->{acs};
+ @acs = split(/;/, $form->{acs});
$form->{acs} = "";
foreach $item (@acs) {
@@ -955,7 +969,7 @@ sub save {
# copy templates to the directory
opendir TEMPLATEDIR, "$templates/." or $form - error("$templates : $!");
- @templates = grep /$form->{mastertemplates}.*?\.(html|tex)$/,
+ @templates = grep /$form->{mastertemplates}.*?\.(html|tex|sty)$/,
readdir TEMPLATEDIR;
closedir TEMPLATEDIR;
@@ -1056,6 +1070,7 @@ sub delete {
if (-d "$dir") {
unlink <$dir/*.html>;
unlink <$dir/*.tex>;
+ unlink <$dir/*.sty>;
rmdir "$dir";
}
}
@@ -1106,11 +1121,17 @@ sub change_admin_password {