X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fmenunew.pl;h=6b74be731a80002a2c368582b6af04f3d941355b;hb=87c7db6a14d2276b72c85a8423e3995f20255b6a;hp=9f7d53cd45f1053aeb6d0251270cc96b1d9e2ebb;hpb=de763d70b4b2e0501565e579fb4726e033594589;p=kivitendo-erp.git diff --git a/bin/mozilla/menunew.pl b/bin/mozilla/menunew.pl index 9f7d53cd4..6b74be731 100644 --- a/bin/mozilla/menunew.pl +++ b/bin/mozilla/menunew.pl @@ -52,7 +52,7 @@ sub display { &acc_menu; print qq| - @@ -65,7 +65,10 @@ sub display { sub clock_line { - $login = "[" + $fensterlink="menunew.pl?login=$form->{login}&password=$form->{password}&path=$form->{path}&action=display"; + $fenster = "["."neues Fenster]"; + + $login = "[Nutzer " . $form->{login} . " - {"path"} @@ -100,63 +103,22 @@ sub clock_line { print qq| - - - + + + +
| - . $login - . $datum - . qq|   -
  $fenster   [drucken] + $login $datum   +
|; } @@ -177,6 +139,8 @@ sub acc_menu { 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]; @@ -188,6 +152,7 @@ function getSty(id) { 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); @@ -206,6 +171,7 @@ function popOver(menuNum, itemNum) { 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); } @@ -236,6 +202,7 @@ function hideAllBut(menuNum) { 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 @@ -259,6 +226,11 @@ function Item(text, href, frame, length, spacing, target) { this.target = target; this.ref = null; } +function go(link,frame) { + tmp=eval("top."+frame); + tmp.location=link; + //top.main_window.location=link; +} function writeMenus() { if (!isDOM && !isIE4 && !isNS4) return; for (currMenu = 0; currMenu < menu.length; currMenu++) with (menu[currMenu][0]) { @@ -276,9 +248,10 @@ function writeMenus() { str += ''; - str += ''; + str += '
' + '' : '>') + text + '
'; + str +=''; if (target > 0) { menu[target][0].parentMenu = currMenu; menu[target][0].parentItem = currItem; @@ -336,6 +309,7 @@ document.onclick = clickHandle; 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); @@ -375,6 +349,7 @@ sub section_menu { $main = 0; #$pm=0; + $shlp=0; while (@menuorder) { $item = shift @menuorder; $label = $item; @@ -388,9 +363,14 @@ sub section_menu { 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 @@ -398,14 +378,14 @@ sub section_menu { $sm = 1; print qq|menu[$pm] = new Array();\n|; print - qq|menu[$pm][0] = new Menu(true, '', 85, 0, 140, defOver, defBack, 'itemBorder', 'itemText');\n|; + qq|menu[$pm][0] = new Menu(true, '', 85, 0, 180, defOver, defBack, 'itemBorder', 'itemText');\n|; map { shift @menuorder } grep /^$item/, @menuorder; §ion_menu($menu, $item); map { shift @menuorder } grep /^$item/, @menuorder; } else { if ($menu->{$item}{module}) { - #Untermenüpunkte + #Untermenüpunkte $target = $menu->{$item}{target}; $uri = $menu->menuitemNew(\%myconfig, \%$form, $item, $level); @@ -418,13 +398,14 @@ sub section_menu { $mm++; $pm++; %mlz = ($ml, $pm, "s$ml", 1); + $shlp = $sm; $sm = 1; - $breit = 20 + length($label) * 5; + $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 - qq|menu[$pm][0] = new Menu(true, '>', 0, 22, 160, defOver, defBack, 'itemBorder', 'itemText');\n|; + qq|menu[$pm][0] = new Menu(true, '>', 0, 20, 180, defOver, defBack, 'itemBorder', 'itemText');\n|; #print qq|\n|; §ion_menu($menu, $item);
' + text + '
 $label