kivitendo/bin/mozilla/kopf.pl @ 1410996d
d319704a | Moritz Bunkus | #!/usr/bin/perl
|
||
#
|
||||
$| = 1;
|
||||
use CGI::Carp qw(fatalsToBrowser);
|
||||
$form->header;
|
||||
$paramstring = $ENV{"QUERY_STRING"};
|
||||
@felder = split "&", $paramstring;
|
||||
foreach (@felder) {
|
||||
($name, $wert) = split "=", $_;
|
||||
$wert =~ tr/+/ /;
|
||||
$$name = $wert;
|
||||
}
|
||||
$login =
|
||||
4923839e | Moritz Bunkus | "[" . $form->{login}
|
||
8c7e4493 | Moritz Bunkus | . " - <a href=\"login.pl?action=logout\" target=\"_top\">"
|
||
d319704a | Moritz Bunkus | . $locale->text('Logout')
|
||
. "</a>] ";
|
||||
my ($Sekunden, $Minuten, $Stunden, $Monatstag, $Monat,
|
||||
$Jahr, $Wochentag, $Jahrestag, $Sommerzeit)
|
||||
= localtime(time);
|
||||
my $CTIME_String = localtime(time);
|
||||
$Monat += 1;
|
||||
$Jahrestag += 1;
|
||||
$Monat = $Monat < 10 ? $Monat = "0" . $Monat : $Monat;
|
||||
$Monatstag = $Monatstag < 10 ? $Monatstag = "0" . $Monatstag : $Monatstag;
|
||||
$Jahr += 1900;
|
||||
my @Wochentage = ("Sonntag", "Montag", "Dienstag", "Mittwoch",
|
||||
"Donnerstag", "Freitag", "Samstag");
|
||||
my @Monatsnamen = ("", "Januar", "Februar", "März",
|
||||
"April", "Mai", "Juni", "Juli",
|
||||
"August", "September", "Oktober", "November",
|
||||
"Dezember");
|
||||
$datum =
|
||||
$Wochentage[$Wochentag] . ", der "
|
||||
. $Monatstag . "."
|
||||
. $Monat . "."
|
||||
. $Jahr . " - ";
|
||||
#$zeit="<div id='Uhr'>".$Stunden.":".$Minuten.":".$Sekunden."</div>";
|
||||
5dc26967 | Thomas Kasulke | my $zeit = "<div id='Uhr'>" . $Stunden . ":" . $Minuten . "</div>";
|
||
d319704a | Moritz Bunkus | |||
print qq|
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
var clockid=new Array()
|
||||
var clockidoutside=new Array()
|
||||
var i_clock=-1
|
||||
var thistime= new Date()
|
||||
var hours= | . $Stunden . qq|;
|
||||
var minutes= | . $Minuten . qq|;
|
||||
var seconds= | . $Sekunden . qq|;
|
||||
if (eval(hours) <10) {hours="0"+hours}
|
||||
if (eval(minutes) < 10) {minutes="0"+minutes}
|
||||
if (seconds < 10) {seconds="0"+seconds}
|
||||
//var thistime = hours+":"+minutes+":"+seconds
|
||||
var thistime = hours+":"+minutes
|
||||
function writeclock() {
|
||||
i_clock++
|
||||
if (document.all \|\| document.getElementById \|\| document.layers) {
|
||||
clockid[i_clock]="clock"+i_clock
|
||||
document.write("<font family=arial size=2><span id='"+clockid[i_clock]+"' style='position:relative'>"+thistime+"</span></font>")
|
||||
}
|
||||
}
|
||||
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
|
||||
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)
|
||||
}
|
||||
window.onload=clockon
|
||||
//-->
|
||||
</script>
|
||||
|;
|
||||
#
|
||||
print qq|
|
||||
834bd183 | Thomas Kasulke | <body bgcolor="#ffffff" text="#ffffff" link="#ffffff" vlink="#ffffff" alink="#ffffff" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" style="background-image: url('image/fade.png'); background-repeat:repeat-x;">
|
||
d319704a | Moritz Bunkus | |||
<table border="0" width="100%" background="image/bg_titel.gif" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
5dc26967 | Thomas Kasulke | <td style="color:white; font-family:verdana,arial,sans-serif; font-size: 12px;"> [<a href="JavaScript:top.main_window.print()">| . $locale->text('drucken') . qq|</a>]</td>
|
||
d319704a | Moritz Bunkus | <td align="right" style="vertical-align:middle; color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap>|
|
||
081a4f97 | Moritz Bunkus | . $login . $datum . qq| <script>writeclock()</script>
|
||
d319704a | Moritz Bunkus | </td>
|
||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|;
|
||||
#
|