X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=bin%2Fmozilla%2Fkopf.pl;h=ed11e522be1af6b8b712a8ee2308d6e885f04631;hb=1e513d1dc428b188ac7acbf06de82d32c5d79f1a;hp=03c601b21097597a345e88ef329ef8a7a2ec369f;hpb=8c7e44938a661e035f62840e1e177353240ace5d;p=kivitendo-erp.git diff --git a/bin/mozilla/kopf.pl b/bin/mozilla/kopf.pl index 03c601b21..ed11e522b 100644 --- a/bin/mozilla/kopf.pl +++ b/bin/mozilla/kopf.pl @@ -1,21 +1,32 @@ #!/usr/bin/perl # -$| = 1; +#$| = 1; -use CGI::Carp qw(fatalsToBrowser); +#use CGI::Carp qw(fatalsToBrowser); + +use strict; + +sub run { + my $session_result = shift; + %::myconfig = $::auth->read_user($::form->{login}) if $::form->{login}; + $::locale = Locale->new($::myconfig{countrycode}) if $::myconfig{countrycode}; + +my $form = $main::form; +my $locale = $main::locale; $form->header; -$paramstring = $ENV{"QUERY_STRING"}; -@felder = split "&", $paramstring; +my $paramstring = $ENV{"QUERY_STRING"}; +my @felder = split "&", $paramstring; +my ($name, $wert); foreach (@felder) { ($name, $wert) = split "=", $_; $wert =~ tr/+/ /; - $$name = $wert; + $name = $wert; } -$login = - "[" . $login - . " - " +my $login = + "". $locale->text('User') . ": " . $form->{login} + . " [text('Logout now') . "\">" . $locale->text('Logout') . "] "; my ($Sekunden, $Minuten, $Stunden, $Monatstag, $Monat, @@ -33,7 +44,7 @@ my @Monatsnamen = ("", "Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"); -$datum = +my $datum = $Wochentage[$Wochentag] . ", der " . $Monatstag . "." . $Monat . "." @@ -59,57 +70,69 @@ if (seconds < 10) {seconds="0"+seconds} var thistime = hours+":"+minutes function writeclock() { - i_clock++ - if (document.all \|\| document.getElementById \|\| document.layers) { - clockid[i_clock]="clock"+i_clock - document.write(""+thistime+"") - } + i_clock++ + if (document.all \|\| document.getElementById \|\| document.layers) { + clockid[i_clock]="clock"+i_clock + document.write(""+thistime+"") + } } function clockon() { - thistime= new Date() - hours=thistime.getHours() - minutes=thistime.getMinutes() - seconds=thistime.getSeconds() - if (eval(hours) <10) {hours="0"+hours} - if (eval(minutes) < 10) {minutes="0"+minutes} - if (seconds < 10) {seconds="0"+seconds} - //thistime = hours+":"+minutes+":"+seconds - thistime = hours+":"+minutes + thistime= new Date() + hours=thistime.getHours() + minutes=thistime.getMinutes() + seconds=thistime.getSeconds() + if (eval(hours) <10) {hours="0"+hours} + if (eval(minutes) < 10) {minutes="0"+minutes} + if (seconds < 10) {seconds="0"+seconds} + //thistime = hours+":"+minutes+":"+seconds + thistime = hours+":"+minutes - if (document.all) { - for (i=0;i<=clockid.length-1;i++) { - var thisclock=eval(clockid[i]) - thisclock.innerHTML=thistime - } - } + if (document.all) { + for (i=0;i<=clockid.length-1;i++) { + var thisclock=eval(clockid[i]) + thisclock.innerHTML=thistime + } + } - if (document.getElementById) { - for (i=0;i<=clockid.length-1;i++) { - document.getElementById(clockid[i]).innerHTML=thistime - } - } - var timer=setTimeout("clockon()",60000) + if (document.getElementById) { + for (i=0;i<=clockid.length-1;i++) { + document.getElementById(clockid[i]).innerHTML=thistime + } + } + var timer=setTimeout("clockon()",60000) } window.onload=clockon //--> |; -# print qq|
- +[| . $locale->text('drucken') . qq|] | -| + |
+ [| . $locale->text('Menu') . qq|] + [| . $locale->text('New Win/Tab') . qq|] + [| . $locale->text('Print') . qq|] + [| . $locale->text('Back') . qq|] + [| . $locale->text('Fwd') . qq|] + | |; + } + print qq| +| . $login . $datum . qq| - | -