Project

General

Profile

Feature #17678 » iframes.diff

Administrator Admin, 2007-10-14 11:12

View differences:

typo3/alt_main.php (working copy)
global $BE_USER,$TYPO3_CONF_VARS;
// Set doktype:
$GLOBALS['TBE_TEMPLATE']->docType='xhtml_frames';
$GLOBALS['TBE_TEMPLATE']->docType='xhtml_trans';
// Make JS:
$this->generateJScode();
......
$this->content.=$GLOBALS['TBE_TEMPLATE']->startPage($title);
// Creates frameset
$fr_toplogo = '<iframe height="'.$this->topFrameH.'" width="'.$this->leftMenuFrameW.'" name="toplogo" src="alt_toplogo.php" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" noresize="noresize"></iframe>';
$fr_topmenu = '<iframe height="'.$this->topFrameH.'" width="100%" name="topmenuFrame" src="alt_topmenu_dummy.php" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" noresize="noresize"></iframe>';
$fr_altmenu = '<iframe height="100%" width="'.$this->leftMenuFrameW.'" name="menu" src="alt_menu.php" marginwidth="0" marginheight="0" scrolling="auto" noresize="noresize"></iframe>';
$fr_content = '<iframe height="100%" width="100%" name="content" src="alt_intro.php" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" noresize="noresize"></iframe>';
$shortcutFrame=array();
if ($BE_USER->getTSConfigVal('options.shortcutFrame')) {
$shortcutFrame['frameDef']='<iframe height="'.$this->shortcutFrameH.'" width="100%" name="shortcutFrame" src="alt_shortcut.php" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" noresize="noresize"></iframe>';
}
// @TODO: $GLOBALS['BE_USER']->uc['noMenuMode']
$this->content.='
<body>
<table style="position:absolute; top:0; left:0; width: 100%; height: 100%;">
<colgroup>
<col width="'.$this->leftMenuFrameW.'"></col>
<col width="*"></col>
</colgroup>
<tr>
<td height="'.$this->topFrameH.'">'.$fr_toplogo.'</td>
<td height="'.$this->topFrameH.'">'.$fr_topmenu.'</td>
</tr>
<tr>
<td height="100%">'.$fr_altmenu.'</td>
<td height="100%">'.$fr_content.'</td>
</tr>
<tr>
<td colspan="2">'.$shortcutFrame['frameDef'].'</td>
</tr>
</table>
</body>
<!--
<frameset rows="'.$this->topFrameH.',*'.$shortcutFrame['rowH'].'" framespacing="0" frameborder="0" border="0">
<frameset cols="'.$this->leftMenuFrameW.',*" framespacing="0" frameborder="0" border="0">
'.$fr_toplogo.'
'.$fr_topmenu.'
</frameset>
<frameset cols="'.$this->leftMenuFrameW.',*" framespacing="0" frameborder="0" border="0">
'.$fr_altmenu.'
'.$fr_content.'
</frameset>
'.$shortcutFrame['frameDef'].'
</frameset>
-->
';
$this->content.='
</html>';
#######################################
return;
// Creates frameset
$fr_content = '<frame name="content" src="alt_intro.php" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" noresize="noresize" />';
$fr_toplogo = '<frame name="toplogo" src="alt_toplogo.php" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" noresize="noresize" />';
$fr_topmenu = '<frame name="topmenuFrame" src="alt_topmenu_dummy.php" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" noresize="noresize" />';
(2-2/6)