Files
luos/workflow/engine/templates/setup/main_Load.php

43 lines
1.8 KiB
PHP
Raw Normal View History

2010-12-02 23:34:41 +00:00
<body onresize="autoResizeScreen()" onload="autoResizeScreen()">
2016-03-03 16:56:09 -04:00
<style type="text/css">
*html body {
overflow-y: hidden;
}
</style>
<iframe name="adminFrame" id="adminFrame" src ="main_init" width="99%" height="768" frameborder="0">
<p>Your browser does not support iframes.</p>
</iframe>
2010-12-02 23:34:41 +00:00
</body>
<script>
2016-03-03 16:56:09 -04:00
if (document.getElementById('pm_submenu'))
document.getElementById('pm_submenu').style.display = 'none';
document.documentElement.style.overflowY = 'hidden';
2010-12-02 23:34:41 +00:00
2016-03-03 16:56:09 -04:00
function autoResizeScreen() {
var pmHeader, container, adminFrame, height, setupFrame, factor;
adminFrame = document.getElementById('adminFrame');
pmHeader = document.getElementById("pm_header");
if (document.getElementById("mainMenuBG") &&
document.getElementById("mainMenuBG").parentNode &&
document.getElementById("mainMenuBG").parentNode.parentNode &&
document.getElementById("mainMenuBG").parentNode.parentNode.parentNode &&
document.getElementById("mainMenuBG").parentNode.parentNode.parentNode.parentNode) {
container = document.getElementById("mainMenuBG").parentNode.parentNode.parentNode.parentNode;
}
if (pmHeader === container) {
factor = pmHeader.clientHeight;
} else {
factor = 90;
}
height = getClientWindowSize().height - factor;
adminFrame.style.height = height + 'px';
if (adminFrame.height) {
adminFrame.height = height + 'px';
}
setupFrame = adminFrame.contentWindow.document.getElementById('setup-frame');
if (setupFrame) {
setupFrame.style.height = (height - 5) + 'px';
}
}
2010-12-02 23:34:41 +00:00
</script>
</html>