Revision 08b6539d
Von Sven Donath vor etwa 14 Jahren hinzugefügt
bin/mozilla/kopf.pl | ||
---|---|---|
25 | 25 |
$name = $wert; |
26 | 26 |
} |
27 | 27 |
my $login = |
28 |
"[" . $form->{login}
|
|
29 |
. " - <a href=\"login.pl?action=logout\" target=\"_top\">"
|
|
28 |
"". $locale->text('User') . ": " . $form->{login}
|
|
29 |
. " [<a href=\"login.pl?action=logout\" target=\"_top\" title=\"". $locale->text('Logout now') . "\">"
|
|
30 | 30 |
. $locale->text('Logout') |
31 | 31 |
. "</a>] "; |
32 | 32 |
my ($Sekunden, $Minuten, $Stunden, $Monatstag, $Monat, |
... | ... | |
108 | 108 |
|; |
109 | 109 |
|
110 | 110 |
# |
111 |
my $framesize = _calc_framesize(); # framesize calculation as in menu.pl is only a quick and dirty hack here |
|
112 |
# it would be better to use a global or config variable |
|
113 |
|
|
111 | 114 |
print qq| |
112 | 115 |
<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;"> |
113 |
|
|
116 |
<script language='JavaScript' src='js/switchmenuframe.js'></script> |
|
114 | 117 |
<table border="0" width="100%" background="image/bg_titel.gif" cellpadding="0" cellspacing="0"> |
115 | 118 |
<tr> |
116 | 119 |
<td style="color:white; font-family:verdana,arial,sans-serif; font-size: 12px;"> |
117 |
[<a href="JavaScript:top.main_window.print();" title="| . $locale->text('Hardcopy') . qq|">| . $locale->text('Print') . qq|</a>]
|
|
120 |
[<a href="JavaScript:Switch_Menu(|.$framesize.qq|);" title="| . $locale->text('Switch Menu on / off') . qq|">| . $locale->text('Menu') . qq|</a>]
|
|
118 | 121 |
[<a HREF="login.pl" target="_blank" title="| . $locale->text('Open a further Lx-Office Window or Tab') . qq|">| . $locale->text('New Win/Tab') . qq|</a>] |
122 |
[<a href="JavaScript:top.main_window.print();" title="| . $locale->text('Hardcopy') . qq|">| . $locale->text('Print') . qq|</a>] |
|
119 | 123 |
[<a href="Javascript:top.main_window.history.back();" title="| . $locale->text('Go one step back') . qq|">| . $locale->text('Back') . qq|</a>] |
120 | 124 |
[<a href="Javascript:top.main_window.history.forward();" title="| . $locale->text('Go one step forward') . qq|">| . $locale->text('Fwd') . qq|</a>] |
121 |
<!-- is there a better solution for Back? Possibly with the callback variable? --> |
|
125 |
<!-- is there any better solution for Back? Possibly with the callback variable? -->
|
|
122 | 126 |
</td> |
123 | 127 |
<td align="right" style="vertical-align:middle; color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap>| |
124 | 128 |
. $login . $datum . qq| <script>writeclock()</script> |
... | ... | |
129 | 133 |
</html> |
130 | 134 |
|; |
131 | 135 |
|
136 |
sub _calc_framesize { |
|
137 |
my $is_lynx_browser = $ENV{HTTP_USER_AGENT} =~ /links/i; |
|
138 |
my $is_mobile_browser = $ENV{HTTP_USER_AGENT} =~ /mobile/i; |
|
139 |
my $is_mobile_style = $::form->{stylesheet} =~ /mobile/i; |
|
140 |
|
|
141 |
return $is_mobile_browser && $is_mobile_style ? 130 |
|
142 |
: $is_lynx_browser ? 240 |
|
143 |
: 180; |
|
144 |
} |
|
145 |
|
|
132 | 146 |
} |
133 | 147 |
|
134 | 148 |
1; |
Auch abrufbar als: Unified diff
Seitliches HTML-Menü lässt sich ein- und ausklappen. (Link "Menü" in Kopfzeile)
Das bringt auf kleinen Bildschirmen zusätzlichen horizontalen Platz.
Getestet mit Opera, Firefox, Chrome, IE8, Android Webkit.
Funktioniert auf allen außer Android. ^^ Hier muss noch nachgebessert werden,
am besten im Zusammenhang mit dem Mobile.css.
Außerdem Reihenfolge der Links in der Kopfzeile geändert, und Title-Tag
für Logout hinzugefügt.