projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
save_form() und restore_form() koennen jetzt auch mit Arrays umgehen, die in $form...
[kivitendo-erp.git]
/
bin
/
mozilla
/
menunew.pl
diff --git
a/bin/mozilla/menunew.pl
b/bin/mozilla/menunew.pl
index
4aaa701
..
1aa7685
100644
(file)
--- a/
bin/mozilla/menunew.pl
+++ b/
bin/mozilla/menunew.pl
@@
-52,7
+52,7
@@
sub display {
&acc_menu;
print qq|
&acc_menu;
print qq|
-<iframe src="login.pl?login=$form->{login}&password=$form->{password}&action=company_logo&path=$form->{path}" width="100%" height="93%" name="main_window" style="position: absolute; border:0px;">
+<iframe
id="win1"
src="login.pl?login=$form->{login}&password=$form->{password}&action=company_logo&path=$form->{path}" width="100%" height="93%" name="main_window" style="position: absolute; border:0px;">
<p>Ihr Browser kann leider keine eingebetteten Frames anzeigen.
</p>
</iframe>
<p>Ihr Browser kann leider keine eingebetteten Frames anzeigen.
</p>
</iframe>
@@
-151,10
+151,9
@@
function clockon() {
</script>
<table border="0" width="100%" background="image/bg_titel.gif" cellpadding="0" cellspacing="0">
<tr>
</script>
<table border="0" width="100%" background="image/bg_titel.gif" cellpadding="0" cellspacing="0">
<tr>
+ <td style="color:white; font-family:verdana,arial,sans-serif; font-size: 12px;"> [<a href="JavaScript:top.main_window.print()">drucken</a>]</td>
<td align="right" style="vertical-align:middle; color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap>|
<td align="right" style="vertical-align:middle; color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap>|
- . $login
- . $datum
- . qq| <script>writeclock()</script>
+ . $login . $datum . qq| <script>writeclock()</script>
</td>
</tr>
</table>
</td>
</tr>
</table>
@@
-177,6
+176,8
@@
sub acc_menu {
var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
+//var KO = (navigator.appName=="Konqueror" \|\| navigator.appName=="Opera") ;
+var KO = ((navigator.userAgent.indexOf('Opera',0) != -1) \|\| (navigator.userAgent.indexOf('Konqueror',0) != -1));
function getRef(id) {
if (isDOM) return document.getElementById(id);
if (isIE4) return document.all[id];
function getRef(id) {
if (isDOM) return document.getElementById(id);
if (isIE4) return document.all[id];
@@
-188,6
+189,7
@@
function getSty(id) {
var popTimer = 0;
var litNow = new Array();
function popOver(menuNum, itemNum) {
var popTimer = 0;
var litNow = new Array();
function popOver(menuNum, itemNum) {
+ if (KO) document.getElementById("win1").style.visibility = "hidden";
clearTimeout(popTimer);
hideAllBut(menuNum);
litNow = getTree(menuNum, itemNum);
clearTimeout(popTimer);
hideAllBut(menuNum);
litNow = getTree(menuNum, itemNum);
@@
-206,6
+208,7
@@
function popOver(menuNum, itemNum) {
function popOut(menuNum, itemNum) {
if ((menuNum == 0) && !menu[menuNum][itemNum].target)
hideAllBut(0)
function popOut(menuNum, itemNum) {
if ((menuNum == 0) && !menu[menuNum][itemNum].target)
hideAllBut(0)
+ if (KO) document.getElementById("win1").style.visibility = "visible";
else
popTimer = setTimeout('hideAllBut(0)', 500);
}
else
popTimer = setTimeout('hideAllBut(0)', 500);
}
@@
-236,6
+239,7
@@
function hideAllBut(menuNum) {
menu[count][0].ref.visibility = 'hidden';
changeCol(litNow, false);
}
menu[count][0].ref.visibility = 'hidden';
changeCol(litNow, false);
}
+
function Menu(isVert, popInd, x, y, width, overCol, backCol, borderClass, textClass) {
this.isVert = isVert;
this.popInd = popInd
function Menu(isVert, popInd, x, y, width, overCol, backCol, borderClass, textClass) {
this.isVert = isVert;
this.popInd = popInd
@@
-336,6
+340,7
@@
document.onclick = clickHandle;
function clickHandle(evt) {
if (isNS4) document.routeEvent(evt);
hideAllBut(0);
function clickHandle(evt) {
if (isNS4) document.routeEvent(evt);
hideAllBut(0);
+ if (KO) document.getElementById("win1").style.visibility = "visible";
}
function moveRoot() {
with(menu[0][0].ref) left = ((parseInt(left) < 100) ? 100 : 5);
}
function moveRoot() {
with(menu[0][0].ref) left = ((parseInt(left) < 100) ? 100 : 5);
@@
-375,6
+380,7
@@
sub section_menu {
$main = 0;
#$pm=0;
$main = 0;
#$pm=0;
+ $shlp=0;
while (@menuorder) {
$item = shift @menuorder;
$label = $item;
while (@menuorder) {
$item = shift @menuorder;
$label = $item;
@@
-388,9
+394,14
@@
sub section_menu {
if ($menu->{$item}{submenu}) {
$menu->{$item}{$item} = !$form->{$item};
if ($menu->{$item}{submenu}) {
$menu->{$item}{$item} = !$form->{$item};
- # Untermenü
- if ($mlz{"s$ml"} > 1) { $z = $mlz{"s$ml"}++; $sm = 1; }
- else { $z = $sm; $mlz{"s$ml"}++; }
+ # Untermen
+ if ($mlz{"s$ml"} > 1) {
+ $z++;
+ $sm = 1;
+ } else {
+ $z = $sm;
+ $mlz{"s$ml"}++;
+ }
print
qq|menu[$mlz{$ml}][$z] = new Item('$label', '#', '', defLength, 0, |
. ++$pm
print
qq|menu[$mlz{$ml}][$z] = new Item('$label', '#', '', defLength, 0, |
. ++$pm
@@
-418,13
+429,14
@@
sub section_menu {
$mm++;
$pm++;
%mlz = ($ml, $pm, "s$ml", 1);
$mm++;
$pm++;
%mlz = ($ml, $pm, "s$ml", 1);
+ $shlp = $sm;
$sm = 1;
$sm = 1;
- $breit =
20 + length($label) * 7
;
+ $breit =
15 + length($label) * 6
;
print
qq|menu[0][$mm] = new Item(' $label', '#', '', $breit, 10, $pm); \n|;
print qq|menu[$pm] = new Array();\n|;
print
print
qq|menu[0][$mm] = new Item(' $label', '#', '', $breit, 10, $pm); \n|;
print qq|menu[$pm] = new Array();\n|;
print
- qq|menu[$pm][0] = new Menu(true, '>', 0, 2
2
, 180, defOver, defBack, 'itemBorder', 'itemText');\n|;
+ qq|menu[$pm][0] = new Menu(true, '>', 0, 2
0
, 180, defOver, defBack, 'itemBorder', 'itemText');\n|;
#print qq|<tr><td class="bg" height="22" align="left" valign="middle" ><img src="image/$item.png" style="vertical-align:middle"> <a href="menu.pl?path=bin/mozilla&action=acc_menu&level=$ml_&login=$form->{login}&password=$form->{password}" class="nohover">$label</a> </td></tr>\n|;
§ion_menu($menu, $item);
#print qq|<tr><td class="bg" height="22" align="left" valign="middle" ><img src="image/$item.png" style="vertical-align:middle"> <a href="menu.pl?path=bin/mozilla&action=acc_menu&level=$ml_&login=$form->{login}&password=$form->{password}" class="nohover">$label</a> </td></tr>\n|;
§ion_menu($menu, $item);