PMCORE-2827 3.6.0 Community > New UI does not work correctly

This commit is contained in:
Roly Gutierrez
2022-01-10 12:37:00 -04:00
parent d3300eef12
commit a196348bdc
2 changed files with 53 additions and 70 deletions

View File

@@ -194,6 +194,7 @@ if ($RBAC->userCanAccess('PM_USERS') === 1) {
'', '',
'users' 'users'
); );
/*----------------------------------********---------------------------------*/
$G_TMP_MENU->AddIdRawOption( $G_TMP_MENU->AddIdRawOption(
'USERS_EXTENDED', 'USERS_EXTENDED',
'../userExtendedAttributes/index', '../userExtendedAttributes/index',
@@ -202,6 +203,7 @@ if ($RBAC->userCanAccess('PM_USERS') === 1) {
'', '',
'users' 'users'
); );
/*----------------------------------********---------------------------------*/
$G_TMP_MENU->AddIdRawOption( $G_TMP_MENU->AddIdRawOption(
'GROUPS', 'GROUPS',
'../groups/groups', '../groups/groups',

View File

@@ -1,80 +1,61 @@
<?php <?php
$cd = (isset($_SESSION['__CD__']))? $_SESSION['__CD__'] : ''; $cd = (isset($_SESSION['__CD__'])) ? $_SESSION['__CD__'] : '';
unset($_SESSION['__CD__']); unset($_SESSION['__CD__']);
$filter = new InputFilter(); $filter = new InputFilter();
?> ?>
<html> <html>
<style type="text/css"> <style type="text/css">
.Footer .content { .Footer .content {
padding :0px !important; padding :0px !important;
} }
*html body { *html body {
overflow-y: hidden; overflow-y: hidden;
} }
</style> </style>
<body onresize="autoResizeScreen()" onload="autoResizeScreen()"> <body onresize="autoResizeScreen()" onload="autoResizeScreen()">
<?php <iframe name="casesFrame" id="casesFrame" src ="<?php echo $cd; ?>../cases/viena_init<?php echo $filter->xssFilterHard($_POST['qs']); ?>" width="99%" height="768" frameborder="0">
/*----------------------------------********---------------------------------*/ <p>Your browser does not support iframes.</p>
if (true) { </iframe>
//In enterprise version this snippet of code should be always be executed </body>
//In community version this snippet of code is deleted and is executed the next snippet of code <script>
?> if (document.getElementById('pm_submenu'))
<iframe name="casesFrame" id="casesFrame" src ="<?php echo $cd; ?>../cases/viena_init<?php echo $filter->xssFilterHard($_POST['qs']); ?>" width="99%" height="768" frameborder="0"> document.getElementById('pm_submenu').style.display = 'none';
<p>Your browser does not support iframes.</p> document.documentElement.style.overflowY = 'hidden';
</iframe>
<?php
} else {
/*----------------------------------********---------------------------------*/
?>
<iframe name="casesFrame" id="casesFrame" src ="<?php echo $cd; ?>../cases/main_init<?php echo $filter->xssFilterHard($_POST['qs']); ?>" width="99%" height="768" frameborder="0">
<p>Your browser does not support iframes.</p>
</iframe>
<?php
/*----------------------------------********---------------------------------*/
}
/*----------------------------------********---------------------------------*/
?>
</body>
<script>
if ( document.getElementById('pm_submenu') )
document.getElementById('pm_submenu').style.display = 'none';
document.documentElement.style.overflowY = 'hidden';
var oClientWinSize = getClientWindowSize(); var oClientWinSize = getClientWindowSize();
function autoResizeScreen() {
var containerList1, containerList2;
oCasesFrame = document.getElementById('casesFrame');
oClientWinSize = getClientWindowSize();
function autoResizeScreen() { containerList1 = document.getElementById("pm_header");
var containerList1, containerList2; if (document.getElementById("mainMenuBG") &&
oCasesFrame = document.getElementById('casesFrame'); document.getElementById("mainMenuBG").parentNode &&
oClientWinSize = getClientWindowSize(); document.getElementById("mainMenuBG").parentNode.parentNode &&
document.getElementById("mainMenuBG").parentNode.parentNode.parentNode &&
containerList1 = document.getElementById("pm_header"); document.getElementById("mainMenuBG").parentNode.parentNode.parentNode.parentNode) {
if (document.getElementById("mainMenuBG") && containerList2 = document.getElementById("mainMenuBG").parentNode.parentNode.parentNode.parentNode;
document.getElementById("mainMenuBG").parentNode && }
document.getElementById("mainMenuBG").parentNode.parentNode && if (containerList1 === containerList2) {
document.getElementById("mainMenuBG").parentNode.parentNode.parentNode && height = oClientWinSize.height - containerList1.clientHeight;
document.getElementById("mainMenuBG").parentNode.parentNode.parentNode.parentNode){ oCasesFrame.style.height = height;
containerList2 = document.getElementById("mainMenuBG").parentNode.parentNode.parentNode.parentNode; if (oCasesFrame.height) {
} oCasesFrame.height = height;
if (containerList1 === containerList2) { }
height = oClientWinSize.height - containerList1.clientHeight; } else {
oCasesFrame.style.height = height; height = getClientWindowSize().height - 90;
if (oCasesFrame.height ) { oCasesFrame.style.height = height + 'px';
oCasesFrame.height = height; oCasesSubFrame = oCasesFrame.contentWindow.document.getElementById('casesSubFrame');
} if (oCasesSubFrame) {
} else { oCasesSubFrame.style.height = (height - 5) + 'px';
height = getClientWindowSize().height-90; } else {
oCasesFrame.style.height = height + 'px'; setTimeout('autoResizeScreen()', 2000);
oCasesSubFrame = oCasesFrame.contentWindow.document.getElementById('casesSubFrame'); }
if(oCasesSubFrame){ }
oCasesSubFrame.style.height = (height-5) + 'px';; }
} else { </script>
setTimeout('autoResizeScreen()', 2000); <script src="/jscore/src/PM.js" type=text/javascript></script>
} <script src="/jscore/src/Sessions.js" type=text/javascript></script>
}
}
</script>
<SCRIPT src="/jscore/src/PM.js" type=text/javascript></SCRIPT>
<SCRIPT src="/jscore/src/Sessions.js" type=text/javascript></SCRIPT>
</html> </html>