Revision c539651d
Von Sven Schöling vor fast 18 Jahren hinzugefügt
bin/mozilla/menuv3.pl | ||
---|---|---|
105 | 105 |
print qq| |
106 | 106 |
<script type="text/javascript"> |
107 | 107 |
<!-- |
108 |
var clockid=new Array() |
|
109 |
var clockidoutside=new Array() |
|
110 |
var i_clock=-1 |
|
111 |
var thistime= new Date() |
|
112 |
var hours= | . $Stunden . qq|; |
|
113 |
var minutes= | . $Minuten . qq|; |
|
114 |
var seconds= | . $Sekunden . qq|; |
|
115 |
if (eval(hours) <10) {hours="0"+hours} |
|
116 |
if (eval(minutes) < 10) {minutes="0"+minutes} |
|
117 |
if (seconds < 10) {seconds="0"+seconds} |
|
118 |
//var thistime = hours+":"+minutes+":"+seconds |
|
119 |
var thistime = hours+":"+minutes |
|
120 |
|
|
121 |
function writeclock() { |
|
122 |
i_clock++ |
|
123 |
if (document.all \|\| document.getElementById \|\| document.layers) { |
|
124 |
clockid[i_clock]="clock"+i_clock |
|
125 |
document.write("<font family=arial size=2><span id='"+clockid[i_clock]+"' style='position:relative'>"+thistime+"</span></font>") |
|
126 |
} |
|
127 |
} |
|
128 |
|
|
108 |
var h=$Stunden; var m=$Minuten; var s=$Sekunden; |
|
129 | 109 |
function clockon() { |
130 |
thistime= new Date() |
|
131 |
hours=thistime.getHours() |
|
132 |
minutes=thistime.getMinutes() |
|
133 |
seconds=thistime.getSeconds() |
|
134 |
if (eval(hours) <10) {hours="0"+hours} |
|
135 |
if (eval(minutes) < 10) {minutes="0"+minutes} |
|
136 |
if (seconds < 10) {seconds="0"+seconds} |
|
137 |
//thistime = hours+":"+minutes+":"+seconds |
|
138 |
thistime = hours+":"+minutes |
|
139 |
|
|
140 |
if (document.all) { |
|
141 |
for (i=0;i<=clockid.length-1;i++) { |
|
142 |
var thisclock=eval(clockid[i]) |
|
143 |
thisclock.innerHTML=thistime |
|
144 |
} |
|
145 |
} |
|
146 |
|
|
147 |
if (document.getElementById) { |
|
148 |
for (i=0;i<=clockid.length-1;i++) { |
|
149 |
document.getElementById(clockid[i]).innerHTML=thistime |
|
150 |
} |
|
151 |
} |
|
152 |
var timer=setTimeout("clockon()",60000) |
|
110 |
s=++s%60;if(s==0){m=++m%60;if(m==0)h=++h%24;} |
|
111 |
document.getElementById('clock_id').innerHTML = (h<10?'0'+h:h)+":"+(m<10?'0'+m:m)+":"+(s<10?'0'+s:s); |
|
112 |
var timer=setTimeout("clockon()", 1000); |
|
153 | 113 |
} |
154 |
//window.onload=clockon
|
|
114 |
window.onload=clockon |
|
155 | 115 |
//--> |
156 | 116 |
</script> |
157 | 117 |
<table border="0" width="100%" background="image/bg_titel.gif" cellpadding="0" cellspacing="0"> |
158 |
<tr>
|
|
159 |
<td style="color:white; font-family:verdana,arial,sans-serif; font-size: 12px;"> [<a href="JavaScript:top.main_window.print()">drucken</a>]</td>
|
|
160 |
<td align="right" style="vertical-align:middle; color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap>|
|
|
161 |
. $login . $datum . qq| <script>writeclock()</script>
|
|
162 |
</td>
|
|
163 |
</tr>
|
|
118 |
<tr>
|
|
119 |
<td style="color:white; font-family:verdana,arial,sans-serif; font-size: 12px;"> [<a href="JavaScript:top.main_window.print()">drucken</a>]</td>
|
|
120 |
<td align="right" style="vertical-align:middle; color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap>
|
|
121 |
$login $datum <span id='clock_id' style='position:relative'></span>
|
|
122 |
</td>
|
|
123 |
</tr>
|
|
164 | 124 |
</table> |
165 | 125 |
|; |
166 | 126 |
} |
... | ... | |
231 | 191 |
if ($menu_item->{"submenu"} || !defined($menu_item->{"module"}) || |
232 | 192 |
($menu_item->{"module"} eq "menu.pl")) { |
233 | 193 |
|
234 |
my $h = print_menu($menu, "${parent}${item}", $depth * 1 + 1); |
|
194 |
my $h = print_menu($menu, "${parent}${item}", $depth * 1 + 1)."\n";
|
|
235 | 195 |
if (!$parent) { |
236 |
$html .= qq|<ul><li><h2>${menu_text}</h2><ul>${h}</ul></li></ul>|; |
|
196 |
$html .= qq|<ul><li><h2>${menu_text}</h2><ul>${h}</ul></li></ul>\n|;
|
|
237 | 197 |
} else { |
238 |
$html .= qq|<li><div class="x">${menu_text}</div><ul>${h}</ul></li>|; |
|
198 |
$html .= qq|<li><div class="x">${menu_text}</div><ul>${h}</ul></li>\n|;
|
|
239 | 199 |
} |
240 | 200 |
} else { |
241 | 201 |
$html .= qq|<li>|; |
242 | 202 |
$html .= $menu->menuitem_v3(\%myconfig, $form, "${parent}$item", |
243 | 203 |
{ "title" => $menu_title, |
244 | 204 |
"target" => $target }); |
245 |
$html .= qq|${menu_text}</a></li>|; |
|
205 |
$html .= qq|${menu_text}</a></li>\n|;
|
|
246 | 206 |
} |
247 | 207 |
} |
248 | 208 |
|
Auch abrufbar als: Unified diff
Uhr wieer aktiviert und javascript aufgeraeumt