Revision 064232d4
Von Moritz Bunkus vor mehr als 17 Jahren hinzugefügt
bin/mozilla/menuv3.pl | ||
---|---|---|
40 | 40 |
# end of main |
41 | 41 |
|
42 | 42 |
sub display { |
43 |
$form->header(qq|<link rel="stylesheet" href="css/menuv3.css?id=| . |
|
44 |
int(rand(100000)) . qq|" type="text/css">|); |
|
43 |
$form->header(qq|<link rel="stylesheet" href="css/menuv3.css?id=" type="text/css">|); |
|
45 | 44 |
|
46 |
print(qq|<body style="padding:0px; margin:0px;">\n|); |
|
45 |
$form->{date} = clock_line(); |
|
46 |
$form->{menu} = acc_menu(); |
|
47 | 47 |
|
48 |
clock_line(); |
|
49 |
|
|
50 |
print qq| |
|
51 |
|
|
52 |
<div id="menu"> |
|
53 |
|
|
54 |
| . acc_menu() . qq| |
|
55 |
|
|
56 |
</div> |
|
57 |
|
|
58 |
<div style="clear: both;"></div> |
|
59 |
|
|
60 |
<iframe id="win1" src="login.pl?login=$form->{login}&password=$form->{password}&action=company_logo" width="100%" height="94%" name="main_window" style="position: absolute; border: 0px; z-index: 99; "> |
|
61 |
<p>Ihr Browser kann leider keine eingebetteten Frames anzeigen. Bitte wählen Sie ein anderes Menü in der Benutzerkonfiguration im Administrationsmenü aus. |
|
62 |
</p> |
|
63 |
</iframe> |
|
64 |
</body> |
|
65 |
</html> |
|
66 |
|
|
67 |
|; |
|
48 |
print $form->parse_html_template("menu/menuv3"); |
|
68 | 49 |
|
69 | 50 |
} |
70 | 51 |
|
71 | 52 |
sub clock_line { |
72 |
|
|
73 |
$fensterlink="menuv3.pl?login=$form->{login}&password=$form->{password}&action=display"; |
|
74 |
$fenster = "["."<a href=\"$fensterlink\" target=\"_blank\">neues Fenster</a>]"; |
|
75 |
|
|
76 |
$login = "[".$locale->text('User') . ": " |
|
77 |
. $form->{login} |
|
78 |
. " - <a href=\"login.pl?password=" |
|
79 |
. $form->{"password"} |
|
80 |
. "&action=logout\" target=\"_top\">" |
|
81 |
. $locale->text('Logout') |
|
82 |
. "</a>] "; |
|
83 | 53 |
my ($Sekunden, $Minuten, $Stunden, $Monatstag, $Monat, |
84 | 54 |
$Jahr, $Wochentag, $Jahrestag, $Sommerzeit) |
85 | 55 |
= localtime(time); |
86 |
my $CTIME_String = localtime(time); |
|
87 | 56 |
$Monat += 1; |
88 | 57 |
$Jahrestag += 1; |
89 | 58 |
$Monat = $Monat < 10 ? $Monat = "0" . $Monat : $Monat; |
... | ... | |
95 | 64 |
"April", "Mai", "Juni", "Juli", |
96 | 65 |
"August", "September", "Oktober", "November", |
97 | 66 |
"Dezember"); |
98 |
$datum =
|
|
67 |
return
|
|
99 | 68 |
$Wochentage[$Wochentag] . ", der " |
100 | 69 |
. $Monatstag . "." |
101 | 70 |
. $Monat . "." |
102 | 71 |
. $Jahr . " - "; |
103 |
|
|
104 |
#$zeit="<div id='Uhr'>".$Stunden.":".$Minuten.":".$Sekunden."</div>"; |
|
105 |
$zeit = "<div id='Uhr'>" . $Stunden . ":" . $Minuten . "</div>"; |
|
106 |
print qq| |
|
107 |
<script type="text/javascript"> |
|
108 |
<!-- |
|
109 |
function clockon() { |
|
110 |
var now = new Date(); |
|
111 |
var h = now.getHours(); |
|
112 |
var m = now.getMinutes(); |
|
113 |
document.getElementById('clock_id').innerHTML = (h<10?'0'+h:h)+":"+(m<10?'0'+m:m); |
|
114 |
var timer=setTimeout("clockon()", 10000); |
|
115 |
} |
|
116 |
window.onload=clockon |
|
117 |
//--> |
|
118 |
</script> |
|
119 |
<table border="0" width="100%" background="image/bg_titel.gif" cellpadding="0" cellspacing="0"> |
|
120 |
<tr> |
|
121 |
<td style="color:white; font-family:verdana,arial,sans-serif; font-size: 12px;"> $fenster [<a href="JavaScript:top.main_window.print()">drucken</a>]</td> |
|
122 |
<td align="right" style="vertical-align:middle; color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap> |
|
123 |
$login $datum <span id='clock_id' style='position:relative'></span> |
|
124 |
</td> |
|
125 |
</tr> |
|
126 |
</table> |
|
127 |
|; |
|
128 | 72 |
} |
129 | 73 |
|
130 | 74 |
sub acc_menu { |
locale/de/all | ||
---|---|---|
650 | 650 |
'Lx-Office 2.4.0 introduces two new concepts: tax zones and Buchungsgruppen.' => 'Lx-Office 2.4.0 führt zwei neue Konzepte ein: Steuerzonen und Buchungsgruppen.', |
651 | 651 |
'Lx-Office is about to update the database <b><TMPL_VAR dbname ESCAPE=HTML></b>. You should create a backup of the database before proceeding because the backup might not be reversible.' => 'Lx-Office wird gleich die Datenbank <b><TMPL_VAR dbname ESCAPE=HTML></b> aktualisieren. Sie sollten eine Sicherungskopie der Datenbank erstellen, bevor Sie fortfahren, da die Aktualisierung unter Umständen nicht umkehrbar ist.', |
652 | 652 |
'MAILED' => 'Gesendet', |
653 |
'MSG_BROWSER_DOES_NOT_SUPPORT_IFRAMES' => 'Ihr Browser kann leider keine eingebetteten Frames anzeigen. Bitte wählen Sie ein anderes Menü in der Benutzerkonfiguration im Administrationsmenü aus.', |
|
653 | 654 |
'Main Preferences' => 'Grundeinstellungen', |
654 | 655 |
'Make' => 'Hersteller', |
655 | 656 |
'Manager' => 'Manager', |
... | ... | |
1223 | 1224 |
'lead saved!' => 'Kundenquelle geichert', |
1224 | 1225 |
'list' => 'auflisten', |
1225 | 1226 |
'localhost' => 'lokaler Rechner', |
1227 |
'logout' => 'abmelden', |
|
1226 | 1228 |
'month' => 'Monatliche Abgabe', |
1229 |
'new Window' => 'neues Fenster', |
|
1227 | 1230 |
'none (pricegroup)' => 'keine', |
1228 | 1231 |
'number' => 'Nummer', |
1229 | 1232 |
'packing_list' => 'Versandliste', |
... | ... | |
1235 | 1238 |
'pos_ustva' => 'UStVA', |
1236 | 1239 |
'posted!' => 'gebucht', |
1237 | 1240 |
'prices updated!' => ' Preise aktualisiert!', |
1241 |
'print' => 'drucken', |
|
1238 | 1242 |
'proforma' => 'Proforma', |
1239 | 1243 |
'purchase_order' => 'Auftrag', |
1240 | 1244 |
'quarter' => 'Viertelj?hrliche (quartalsweise) Abgabe', |
locale/de/menuv3 | ||
---|---|---|
1 | 1 |
$self->{texts} = { |
2 |
'Logout' => 'Abmeldung', |
|
3 |
'User' => 'Benutzer', |
|
4 | 2 |
}; |
5 | 3 |
|
6 | 4 |
$self->{subs} = { |
templates/webpages/menu/menuv3_de.html | ||
---|---|---|
1 |
<body style="padding:0px; margin:0px;"> |
|
2 |
|
|
3 |
<script type="text/javascript"> |
|
4 |
<!-- |
|
5 |
function clockon() { |
|
6 |
var now = new Date(); |
|
7 |
var h = now.getHours(); |
|
8 |
var m = now.getMinutes(); |
|
9 |
document.getElementById('clock_id').innerHTML = (h<10?'0'+h:h)+":"+(m<10?'0'+m:m); |
|
10 |
var timer=setTimeout("clockon()", 10000); |
|
11 |
} |
|
12 |
window.onload=clockon |
|
13 |
//--> |
|
14 |
</script> |
|
15 |
|
|
16 |
<table border="0" width="100%" background="image/bg_titel.gif" cellpadding="0" cellspacing="0"> |
|
17 |
<tr> |
|
18 |
<td style="color:white; font-family:verdana,arial,sans-serif; font-size: 12px;"> |
|
19 |
|
|
20 |
[<a href="menuv3.pl?action=display&login=<TMPL_VAR login ESCAPE=URL>&password=<TMPL_VAR password ESCAPE=URL>" target="_blank">neues Fenster</a>] |
|
21 |
|
|
22 |
[<a href="JavaScript:top.main_window.print()">drucken</a>] |
|
23 |
</td> |
|
24 |
<td align="right" style="vertical-align:middle; color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap> |
|
25 |
[Benutzer: <TMPL_VAR login ESCAPE=HTML> - |
|
26 |
<a href="login.pl?action=logout&login=<TMPL_VAR login ESCAPE=URL>&password=<TMPL_VAR password ESCAPE=URL>" target="_top">abmelden</a>] |
|
27 |
<TMPL_VAR date> <span id='clock_id' style='position:relative'></span> |
|
28 |
</td> |
|
29 |
</tr> |
|
30 |
</table> |
|
31 |
|
|
32 |
|
|
33 |
<div id="menu"> |
|
34 |
|
|
35 |
<TMPL_VAR menu> |
|
36 |
|
|
37 |
</div> |
|
38 |
|
|
39 |
<div style="clear: both;"></div> |
|
40 |
|
|
41 |
<iframe id="win1" src="login.pl?login=$form->{login}&password=$form->{password}&action=company_logo" width="100%" height="94%" name="main_window" style="position: absolute; border: 0px; z-index: 99; "> |
|
42 |
<p>Ihr Browser kann leider keine eingebetteten Frames anzeigen. Bitte wählen Sie ein anderes Menü in der Benutzerkonfiguration im Administrationsmenü aus.</p> |
|
43 |
</iframe> |
|
44 |
</body> |
|
45 |
</html> |
templates/webpages/menu/menuv3_master.html | ||
---|---|---|
1 |
<body style="padding:0px; margin:0px;"> |
|
2 |
|
|
3 |
<script type="text/javascript"> |
|
4 |
<!-- |
|
5 |
function clockon() { |
|
6 |
var now = new Date(); |
|
7 |
var h = now.getHours(); |
|
8 |
var m = now.getMinutes(); |
|
9 |
document.getElementById('clock_id').innerHTML = (h<10?'0'+h:h)+":"+(m<10?'0'+m:m); |
|
10 |
var timer=setTimeout("clockon()", 10000); |
|
11 |
} |
|
12 |
window.onload=clockon |
|
13 |
//--> |
|
14 |
</script> |
|
15 |
|
|
16 |
<table border="0" width="100%" background="image/bg_titel.gif" cellpadding="0" cellspacing="0"> |
|
17 |
<tr> |
|
18 |
<td style="color:white; font-family:verdana,arial,sans-serif; font-size: 12px;"> |
|
19 |
|
|
20 |
[<a href="menuv3.pl?action=display&login=<TMPL_VAR login ESCAPE=URL>&password=<TMPL_VAR password ESCAPE=URL>" target="_blank"><translate>new Window</translate></a>] |
|
21 |
|
|
22 |
[<a href="JavaScript:top.main_window.print()"><translate>print</translate></a>] |
|
23 |
</td> |
|
24 |
<td align="right" style="vertical-align:middle; color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap> |
|
25 |
[<translate>User</translate>: <TMPL_VAR login ESCAPE=HTML> - |
|
26 |
<a href="login.pl?action=logout&login=<TMPL_VAR login ESCAPE=URL>&password=<TMPL_VAR password ESCAPE=URL>" target="_top"><translate>logout</translate></a>] |
|
27 |
<TMPL_VAR date> <span id='clock_id' style='position:relative'></span> |
|
28 |
</td> |
|
29 |
</tr> |
|
30 |
</table> |
|
31 |
|
|
32 |
|
|
33 |
<div id="menu"> |
|
34 |
|
|
35 |
<TMPL_VAR menu> |
|
36 |
|
|
37 |
</div> |
|
38 |
|
|
39 |
<div style="clear: both;"></div> |
|
40 |
|
|
41 |
<iframe id="win1" src="login.pl?login=$form->{login}&password=$form->{password}&action=company_logo" width="100%" height="94%" name="main_window" style="position: absolute; border: 0px; z-index: 99; "> |
|
42 |
<p><translate>MSG_BROWSER_DOES_NOT_SUPPORT_IFRAMES</translate></p> |
|
43 |
</iframe> |
|
44 |
</body> |
|
45 |
</html> |
Auch abrufbar als: Unified diff
CSS-Menü aus HTML-Vorlage erzeugen lassen.