$theme =& atkinstance('atk.ui.atktheme'); $position = $menu->getPosition(); $scrolling = $menu->getScrollable() == MENU_SCROLLABLE ? FRAME_SCROLL_AUTO : FRAME_SCROLL_NO; if (isset($ATK_VARS["atknodetype"]) && isset($ATK_VARS["atkaction"])) { $destination = "dispatch.php?atknodetype=" . $ATK_VARS["atknodetype"] . "&atkaction=" . $ATK_VARS["atkaction"]; if (isset($ATK_VARS["atkselector"])) { $destination .= "&atkselector=" . $ATK_VARS["atkselector"]; } if (isset($ATK_VARS["searchstring"])) { $destination .= "&searchstring=" . $ATK_VARS["searchstring"]; } } else { if (atkArrayNvl(atkGetUser(), "name") == "administrator") { $destination = session_url(dispatch_url("pim.pim", "adminpim"), SESSION_NEW); } else { $destination = session_url(dispatch_url("pim.pim", "pim"), SESSION_NEW); } } $frame_top_height = $theme->getAttribute('frame_top_height'); $frame_menu_width = $theme->getAttribute('frame_menu_width'); $topframe =& new atkFrame($frame_top_height ? $frame_top_height : "75", "top", "top.php", FRAME_SCROLL_NO, true); $mainframe =& new atkFrame("*", "main", $destination, FRAME_SCROLL_AUTO, true); $menuframe =& new atkFrame($position == MENU_LEFT || $position == MENU_RIGHT ? $frame_menu_width ? $frame_menu_width : 190 : $menu->getHeight(), "menu", "menu.php", $scrolling); $noframes = '<p>Your browser doesnt support frames, but this is required to run ' . atktext('app_title') . "</p>\n"; $root =& new atkRootFrameset(); if (atkconfig("top_frame")) { $outer =& new atkFrameSet("*", FRAMESET_VERTICAL, 0, $noframes); $outer->addChild($topframe); $root->addChild($outer); } else { $outer =& $root;
{ if (xmlHttp.readyState == 4) { atkLockCheckResponse(xmlHttp.responseXML); } } xmlHttp.send(null); } else { var image = new Image(); image.onerror = atkLockUnlock; image.src = '<?php echo session_url('include.php?file=atk/lock/lock.php&type=image&stack=' . $stack); ?> &id=' + atkLock.theIdentifier + '&sequence=' + atkLock.theSequence; } } /** * When the lock lease has expired we notify the user. */ function atkLockUnlock() { atkLock.isLocked = false; if (typeof(document.images['_lock_']) != 'undefined') document.images['_lock_'].src='<?php echo atkconfig("atkroot"); ?>
atkimport("atk.menu.atkmenu"); atkimport("atk.utils.atkframeset"); $menu =& atkMenu::getMenu(); $theme =& atkinstance('atk.ui.atktheme'); $position = $menu->getPosition(); $scrolling = $menu->getScrollable() == MENU_SCROLLABLE ? FRAME_SCROLL_AUTO : FRAME_SCROLL_NO; if (isset($ATK_VARS["atknodetype"]) && isset($ATK_VARS["atkaction"])) { $destination = "dispatch.php?atknodetype=" . $ATK_VARS["atknodetype"] . "&atkaction=" . $ATK_VARS["atkaction"]; if (isset($ATK_VARS["atkselector"])) { $destination .= "&atkselector=" . $ATK_VARS["atkselector"]; } if (isset($ATK_VARS["searchstring"])) { $destination .= "&searchstring=" . $ATK_VARS["searchstring"]; } } else { $destination = session_url(dispatch_url("dashboard.mainboard", "start"), SESSION_NEW); } $frame_top_height = 55; $frame_menu_width = $theme->getAttribute('frame_menu_width'); $topframe =& new atkFrame($frame_top_height ? $frame_top_height : "75", "top", "top.php", FRAME_SCROLL_NO, true); $mainframe =& new atkFrame("*", "main", $destination, FRAME_SCROLL_AUTO, true); $menuframe =& new atkFrame($position == MENU_LEFT || $position == MENU_RIGHT ? $frame_menu_width ? $frame_menu_width : 190 : $menu->getHeight(), "menu", "menu.php", $scrolling); $noframes = '<p>Your browser doesnt support frames, but this is required to run ' . atktext('app_title') . "</p>\n"; $root =& new atkRootFrameset(); if (atkconfig("top_frame")) { $outer =& new atkFrameSet("*", FRAMESET_VERTICAL, 0, $noframes); $outer->addChild($topframe); $root->addChild($outer); } else { $outer =& $root; $outer->m_noframes = $noframes;