00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00055 die();
00056
00057 require ('init.php');
00058 require ('template.php');
00059 require_once (PATH_t3lib.'class.t3lib_loadmodules.php');
00060 require_once (PATH_t3lib.'class.t3lib_basicfilefunc.php');
00061 require_once ('class.alt_menu_functions.inc');
00062 $LANG->includeLLFile('EXT:lang/locallang_misc.xml');
00063
00064
00065
00066
00074 class SC_alt_main {
00075
00076
00077 var $content;
00078 var $mainJScode;
00079
00085 var $loadModules;
00086
00092 var $alt_menuObj;
00093
00094
00095 var $leftMenuFrameW = 130;
00096 var $selMenuFrame = 130;
00097 var $topFrameH = 32;
00098 var $shortcutFrameH = 30;
00099
00100
00101 var $topMenu = 21;
00102 var $topIcons = 40;
00103
00109 function init() {
00110 global $TBE_MODULES,$TBE_STYLES;
00111
00112
00113 $this->loadModules = t3lib_div::makeInstance('t3lib_loadModules');
00114 $this->loadModules->load($TBE_MODULES);
00115
00116
00117 $this->alt_menuObj = t3lib_div::makeInstance('alt_menu_functions');
00118
00119
00120 if ($TBE_STYLES['dims']['leftMenuFrameW']) $this->leftMenuFrameW = $TBE_STYLES['dims']['leftMenuFrameW'];
00121 if ($TBE_STYLES['dims']['topFrameH']) $this->topFrameH = $TBE_STYLES['dims']['topFrameH'];
00122 if ($TBE_STYLES['dims']['shortcutFrameH']) $this->shortcutFrameH = $TBE_STYLES['dims']['shortcutFrameH'];
00123 if ($TBE_STYLES['dims']['selMenuFrame']) $this->selMenuFrame = $TBE_STYLES['dims']['selMenuFrame'];
00124 }
00125
00131 function generateJScode() {
00132 global $BE_USER,$LANG;
00133
00134 $pt3 = t3lib_div::dirname(t3lib_div::getIndpEnv('SCRIPT_NAME')).'/';
00135 $goToModule_switch = $this->alt_menuObj->topMenu($this->loadModules->modules,0,"",4);
00136 $fsMod = implode(chr(10),$this->alt_menuObj->fsMod);
00137
00138
00139 $newPageModule = trim($GLOBALS['BE_USER']->getTSConfigVal('options.overridePageModule'));
00140 $pageModule = t3lib_BEfunc::isModuleSetInTBE_MODULES($newPageModule) ? $newPageModule : 'web_layout';
00141
00142 $this->mainJScode='
00143
00147 function resize_Iframe() {
00148 var container = document.getElementById("content");
00149 var menuHeight = '.(is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['topApps']['icons']) ? $this->topIcons+$this->topMenu : $this->topMenu).';
00150 container.style.height = (document.body.clientHeight-menuHeight)+"px";
00151 }
00152 window.onload = resize_Iframe;
00153 window.onresize = resize_Iframe;
00154
00158 function rawurlencode(str) {
00159 var output = escape(str);
00160 output = str_replace("*","%2A", output);
00161 output = str_replace("+","%2B", output);
00162 output = str_replace("/","%2F", output);
00163 output = str_replace("@","%40", output);
00164 return output;
00165 }
00166
00170 function str_replace(match,replace,string) {
00171 var input = ""+string;
00172 var matchStr = ""+match;
00173 if (!matchStr) {return string;}
00174 var output = "";
00175 var pointer=0;
00176 var pos = input.indexOf(matchStr);
00177 while (pos!=-1) {
00178 output+=""+input.substr(pointer, pos-pointer)+replace;
00179 pointer=pos+matchStr.length;
00180 pos = input.indexOf(match,pos+1);
00181 }
00182 output+=""+input.substr(pointer);
00183 return output;
00184 }
00185
00189 function typoSetup() {
00190 this.PATH_typo3 = "'.$pt3.'";
00191 this.PATH_typo3_enc = "'.rawurlencode($pt3).'";
00192 this.username = "'.$BE_USER->user['username'].'";
00193 this.uniqueID = "'.t3lib_div::shortMD5(uniqid('')).'";
00194 this.navFrameWidth = 0;
00195 }
00196 var TS = new typoSetup();
00197
00201 function busy() {
00202 this.loginRefreshed = busy_loginRefreshed;
00203 this.checkLoginTimeout = busy_checkLoginTimeout;
00204 this.openRefreshWindow = busy_OpenRefreshWindow;
00205 this.busyloadTime=0;
00206 this.openRefreshW=0;
00207 this.reloginCancelled=0;
00208 }
00209 function busy_loginRefreshed() {
00210 var date = new Date();
00211 this.busyloadTime = Math.floor(date.getTime()/1000);
00212 this.openRefreshW=0;
00213 }
00214 function busy_checkLoginTimeout() {
00215 var date = new Date();
00216 var theTime = Math.floor(date.getTime()/1000);
00217 if (theTime > this.busyloadTime+'.intval($BE_USER->auth_timeout_field).'-30) {
00218 return true;
00219 }
00220 }
00221 function busy_OpenRefreshWindow() {
00222 vHWin=window.open("login_frameset.php","relogin_"+TS.uniqueID,"height=350,width=700,status=0,menubar=0,location=1");
00223 vHWin.focus();
00224 this.openRefreshW=1;
00225 }
00226 function busy_checkLoginTimeout_timer() {
00227 if (busy.checkLoginTimeout() && !busy.reloginCancelled && !busy.openRefreshW) {
00228 if (confirm('.$GLOBALS['LANG']->JScharCode($LANG->sL('LLL:EXT:lang/locallang_core.php:mess.refresh_login')).')) {
00229 busy.openRefreshWindow();
00230 } else {
00231 busy.reloginCancelled = 1;
00232 }
00233 }
00234 window.setTimeout("busy_checkLoginTimeout_timer();",2*1000);
00235
00236
00237 if (top && top.content && top.content.nav_frame && top.content.nav_frame.document && top.content.nav_frame.document.body) {
00238 TS.navFrameWidth = (top.content.nav_frame.document.documentElement && top.content.nav_frame.document.documentElement.clientWidth) ? top.content.nav_frame.document.documentElement.clientWidth : top.content.nav_frame.document.body.clientWidth;
00239 }
00240 }
00241
00245 function launchView(table,uid,bP) {
00246 var backPath= bP ? bP : "";
00247 var thePreviewWindow="";
00248 thePreviewWindow = window.open(TS.PATH_typo3+"show_item.php?table="+escape(table)+"&uid="+escape(uid),"ShowItem"+TS.uniqueID,"height=300,width=550,status=0,menubar=0,resizable=0,location=0,directories=0,scrollbars=1,toolbar=0");
00249 if (thePreviewWindow && thePreviewWindow.focus) {
00250 thePreviewWindow.focus();
00251 }
00252 }
00253
00257 function openUrlInWindow(url,windowName) {
00258 regularWindow = window.open(url,windowName,"status=1,menubar=1,resizable=1,location=1,directories=0,scrollbars=1,toolbar=1");
00259 regularWindow.focus();
00260 return false;
00261 }
00262
00266 function loadTopMenu(url) {
00267 top.topmenuFrame.location = url;
00268 }
00269
00273 function loadEditId(id,addGetVars) {
00274 top.fsMod.recentIds["web"]=id;
00275 top.fsMod.navFrameHighlightedID["web"]="pages"+id+"_0";
00276
00277 if (top.content && top.content.nav_frame && top.content.nav_frame.refresh_nav) {
00278 top.content.nav_frame.refresh_nav();
00279 }
00280
00281 top.goToModule("'.$pageModule.'", 0, addGetVars?addGetVars:"");
00282 }
00283
00288 var nextLoadModuleUrl="";
00289 function getModuleUrl(inUrl) {
00290 var nMU;
00291 if (top.nextLoadModuleUrl) {
00292 nMU=top.nextLoadModuleUrl;
00293 top.nextLoadModuleUrl="";
00294 return nMU;
00295 } else {
00296 return inUrl;
00297 }
00298 }
00299
00303 function debugObj(obj,name,printEach) {
00304 var acc;
00305 for (i in obj) {
00306 if (obj[i]) {
00307 if (printEach) {
00308 alert(i+": "+obj[i]);
00309 } else {
00310 acc+=i+": "+obj[i]+"\n";
00311 }
00312 }
00313 }
00314 if (!printEach) alert("Object: "+name+"\n\n"+acc);
00315 }
00316
00320 var busy = new busy();
00321 busy.loginRefreshed();
00322 busy_checkLoginTimeout_timer();
00323
00324
00328 var currentlyHighLightedId = "";
00329 var currentlyHighLighted_restoreValue = "";
00330 var currentlyHighLightedMain = "";
00331 function highlightModuleMenuItem(trId, mainModule) {
00332 currentlyHighLightedMain = mainModule;
00333
00334 if (top.menu && top.menu.document) {
00335 var docObj = top.menu.document;
00336 var HLclass = mainModule ? "c-mainitem-HL" : "c-subitem-row-HL";
00337 } else if (top.topmenuFrame && top.topmenuFrame.document) {
00338 var docObj = top.topmenuFrame.document;
00339 var HLclass = mainModule ? "c-mainitem-HL" : "c-subitem-HL";
00340 }
00341
00342 if (docObj) {
00343
00344 if (currentlyHighLightedId && docObj.getElementById(currentlyHighLightedId)) {
00345 docObj.getElementById(currentlyHighLightedId).attributes.getNamedItem("class").nodeValue = currentlyHighLighted_restoreValue;
00346 }
00347
00348 currentlyHighLightedId = trId;
00349 if (currentlyHighLightedId && docObj.getElementById(currentlyHighLightedId)) {
00350 var classAttribObject = docObj.getElementById(currentlyHighLightedId).attributes.getNamedItem("class");
00351 currentlyHighLighted_restoreValue = classAttribObject.nodeValue;
00352 classAttribObject.nodeValue = HLclass;
00353 }
00354 }
00355 }
00356
00360 function restoreHighlightedModuleMenuItem() {
00361 if (currentlyHighLightedId) {
00362 highlightModuleMenuItem(currentlyHighLightedId,currentlyHighLightedMain);
00363 }
00364 }
00365
00369 var currentModuleLoaded = "";
00370 function goToModule(modName,cMR_flag,addGetVars) {
00371 var additionalGetVariables = "";
00372 if (addGetVars) additionalGetVariables = addGetVars;
00373
00374 var cMR = 0;
00375 if (cMR_flag) cMR = 1;
00376
00377 currentModuleLoaded = modName;
00378
00379 switch(modName) {'.$goToModule_switch.'
00380 }
00381 }
00382
00391 function fsModules() {
00392 this.recentIds=new Array();
00393 this.navFrameHighlightedID=new Array();
00394 this.currentMainLoaded="";
00395 this.currentBank="0";
00396 }
00397 var fsMod = new fsModules();
00398 '.$fsMod.'
00399
00400
00401 var condensedMode = '.($BE_USER->uc['condensedMode']?1:0).';
00402 var currentSubScript = "";
00403 var currentSubNavScript = "";
00404
00405
00406 var DTM_currentTabs = new Array();
00407 ';
00408
00409
00410 $this->editPageHandling();
00411 $this->startModule();
00412 }
00413
00420 function editPageHandling() {
00421 global $BE_USER;
00422
00423 if (!t3lib_extMgm::isLoaded('cms')) return;
00424
00425
00426 $editId = preg_replace('/[^[:alnum:]_]/','',t3lib_div::_GET('edit'));
00427 $theEditRec = '';
00428
00429 if ($editId) {
00430
00431
00432 $where = ' AND ('.$BE_USER->getPagePermsClause(2).' OR '.$BE_USER->getPagePermsClause(16).')';
00433 if (t3lib_div::testInt($editId)) {
00434 $theEditRec = t3lib_BEfunc::getRecordWSOL('pages',$editId,'*',$where);
00435 } else {
00436 $records = t3lib_BEfunc::getRecordsByField('pages','alias',$editId,$where);
00437 if (is_array($records)) {
00438 reset($records);
00439 $theEditRec = current($records);
00440 t3lib_BEfunc::workspaceOL('pages', $theEditRec);
00441 }
00442 }
00443
00444
00445 if (is_array($theEditRec) && $BE_USER->isInWebMount($theEditRec['uid'])) {
00446
00447 $this->mainJScode.='
00448
00449 window.setTimeout("top.loadEditId('.intval($theEditRec['uid']).');",500);
00450 ';
00451
00452 if(!$BE_USER->getTSConfigVal('options.shortcut_onEditId_dontSetPageTree')) {
00453
00454
00455 t3lib_BEfunc::openPageTree(intval($theEditRec['pid']),!$BE_USER->getTSConfigVal('options.shortcut_onEditId_keepExistingExpanded'));
00456 }
00457 } else {
00458 $this->mainJScode.='
00459
00460 alert('.$GLOBALS['LANG']->JScharCode(sprintf($GLOBALS['LANG']->getLL('noEditPage'),$editId)).');
00461 ';
00462 }
00463 }
00464 }
00465
00471 function startModule() {
00472 global $BE_USER;
00473 $module = preg_replace('/[^[:alnum:]_]/','',t3lib_div::_GET('module'));
00474 if (!$module && $BE_USER->uc['startInTaskCenter']) {
00475 $module = 'user_task';
00476 }
00477
00478 $params = t3lib_div::_GET('modParams');
00479 if ($module) {
00480 $this->mainJScode.='
00481
00482 window.setTimeout("top.goToModule(\''.$module.'\',false,\''.$params.'\');",500);
00483 ';
00484 }
00485 }
00486
00487
00493 function main() {
00494 global $BE_USER,$TYPO3_CONF_VARS;
00495
00496
00497 $GLOBALS['TBE_TEMPLATE']->docType='xhtml_frames';
00498
00499
00500 $this->generateJScode();
00501 $GLOBALS['TBE_TEMPLATE']->JScode= '
00502 <script type="text/javascript" src="md5.js"></script>
00503 <script type="text/javascript" src="../t3lib/jsfunc.evalfield.js"></script>
00504 ';
00505 $GLOBALS['TBE_TEMPLATE']->JScode.=$GLOBALS['TBE_TEMPLATE']->wrapScriptTags($this->mainJScode);
00506
00507
00508 $title = $TYPO3_CONF_VARS['SYS']['sitename'] ? $TYPO3_CONF_VARS['SYS']['sitename'].' [TYPO3 '.TYPO3_version.']' : 'TYPO3 '.TYPO3_version;
00509
00510
00511 $this->content.='
00512
00513 <script src="contrib/prototype/prototype.js" language="JavaScript" type="text/javascript"></script>
00514 <script src="contrib/scriptaculous/scriptaculous.js" language="JavaScript" type="text/javascript"></script>
00515 <script type="text/javascript" language="JavaScript">
00516 function getElementContent(placeholderId, frequency, url) {
00517 if (!url) {
00518 if (placeholderId=="_logoMenu") {
00519 var url = "logomenu.php?cmd=menuitem";
00520 } else {
00521 var url = "mod.php?M="+placeholderId+"&cmd=menuitem";
00522 }
00523 }
00524 var pars = "";
00525
00526 if (frequency) {
00527 var myAjax = new Ajax.PeriodicalUpdater(
00528 placeholderId,
00529 url,
00530 {
00531 method: "get",
00532 parameters: pars,
00533 evalScripts: true,
00534 frequency: frequency
00535 });
00536 } else {
00537 var myAjax = new Ajax.Updater(
00538 placeholderId,
00539 url,
00540 {
00541 method: "get",
00542 parameters: pars,
00543 evalScripts: true
00544 });
00545 }
00546 }
00547
00548
00549 var menuActive = "";
00550 var menuItemObjects = new Array();
00551
00552 function menuToggleState(ID) {
00553 if (menuActive) {
00554 menuReset();
00555 } else {
00556 menuSet(ID);
00557 }
00558 }
00559 function menuMouseOver(ID) {
00560 if (menuActive) {
00561 menuSet(ID);
00562 }
00563 }
00564 function menuMouseOut(ID) {
00565 return;
00566 if (menuActive) {
00567 hideOpenLayerStack();
00568 Element.removeClassName(menuActive, "menu-hilight");
00569 Element.addClassName(menuActive, "menu-normal");
00570 }
00571 }
00572
00573 function menuSet(ID) {
00574 if (menuActive != ID) {
00575 hideOpenLayerStack();
00576 if (menuActive) {
00577 Element.removeClassName(menuActive, "menu-hilight");
00578 Element.addClassName(menuActive, "menu-normal");
00579 }
00580 menuActive = ID;
00581
00582 Element.addClassName(menuActive, "menu-hilight");
00583 Element.removeClassName(menuActive, "menu-normal");
00584
00585
00586 var nodes = $A($(ID).childNodes);
00587 nodes.each(function(node){
00588 if (node.nodeType==1) {
00589 if (Element.hasClassName(node,"menulayer")) {
00590 menuShowLayer(node, ID);
00591 }
00592 }
00593 });
00594
00595 if (menuItemObjects[ID]) menuItemObjects[ID].onActivate();
00596 }
00597 }
00598 function menuReset() {
00599 hideOpenLayerStack();
00600 Element.removeClassName(menuActive, "menu-hilight");
00601 Element.addClassName(menuActive, "menu-normal");
00602 menuActive = "";
00603 }
00604
00605 function hideOpenLayerStack() {
00606 var layersToHide = document.getElementsByClassName("menulayer", "menu");
00607 var nodes = $A(layersToHide);
00608 nodes.each(function(node){
00609 Element.hide(node);
00610
00611 });
00612 }
00613 function menuShowLayer(menyLayerObj, alignWithID) {
00614
00615
00616 var rightEdgeOfLayer = $(alignWithID).offsetLeft + Element.getDimensions(menyLayerObj).width;
00617 if (rightEdgeOfLayer>document.body.clientWidth) {
00618 Element.setStyle(menyLayerObj,{left: ($(alignWithID).offsetLeft + Element.getDimensions(alignWithID).width - Element.getDimensions(menyLayerObj).width)+\'px\'});
00619 } else {
00620 Element.setStyle(menyLayerObj,{left: ($(alignWithID).offsetLeft)+\'px\'});
00621 }
00622 Element.setStyle(menyLayerObj,{top: \''.$this->topMenu.'px\'});
00623
00624 Effect.Appear(menyLayerObj,{duration: 0.2});
00625 }
00626
00627 function menuOpenSub(el) {
00628
00629
00630 var nodes = $A(el.childNodes);
00631 nodes.each(function(node){
00632 if (node.nodeType==1) {
00633
00634 if (Element.hasClassName(node,"menulayer") && !Element.visible(node)) {
00635 Effect.Appear(node,{duration: 0.2});
00636 Element.setStyle(node,{left: ($(el).offsetLeft + Element.getDimensions(el).width - 5) +\'px\'});
00637
00638 if (el.id && menuItemObjects[""+el.id]) {
00639 menuItemObjects[""+el.id].onActivate();
00640 }
00641 }
00642 }
00643 });
00644
00645
00646 var siblings = $A(el.parentNode.childNodes);
00647 siblings.each(function(sibling){
00648 if (sibling.nodeType==1) {
00649 var equal = sibling==el;
00650 if (!equal) {
00651 var layersToHide = document.getElementsByClassName("menulayer", sibling);
00652 var nodes = $A(layersToHide);
00653 nodes.each(function(node){
00654 Element.hide(node);
00655 });
00656 }
00657 }
00658 });
00659 }
00660
00661
00662
00663 </script>
00664
00665
00666 <style type="text/css" id="internalStyle">
00667
00668
00669 <!--
00670
00671 body, html {
00672 width: 100%;
00673 height: 100%;
00674 margin: 0;
00675 padding: 0;
00676 }
00677
00678 #menu {
00679 position: absolute;
00680 top: 0px;
00681 left: 0px;
00682 height: '.$this->topMenu.'px;
00683 z-index: 99;
00684 border-bottom: 1px solid #666666;
00685 border-top: 1px solid black;
00686 width: 100%;
00687 background-image: url("gfx/x_menubackground.gif");
00688 }
00689
00690 #icons {
00691 position: absolute;
00692 top: '.$this->topMenu.'px;
00693 left: 0px;
00694 height: '.$this->topIcons.'px;
00695 z-index: 98;
00696 background-color: #eeeeee;
00697 border-bottom: 1px solid #666666;
00698 width: 100%;
00699 }
00700
00701 #content {
00702 position: absolute;
00703 top: '.(is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['topApps']['icons']) ? $this->topIcons+$this->topMenu : $this->topMenu).'px;
00704 left: 0px;
00705 width: 100%;
00706 height: 100%;
00707 border: 0px;
00708 z-index: 1;
00709 }
00710
00711 .menu-hilight {
00712 background-color: #d0e7b1;
00713 padding-left: 0px;
00714 padding-right: 0px;
00715 border-left: 1px solid #999999;
00716 border-right: 1px solid #999999;
00717 }
00718 .menu-normal {
00719 padding-left: 1px;
00720 padding-right: 1px;
00721 }
00722 .menuItems {
00723 height: '.($this->topMenu-1).'px;
00724 cursor: hand;
00725 padding-top:2px;
00726 font-size: 12px;
00727 }
00728 .menulayer {
00729 position: absolute;
00730 border: 1px solid #aaaaaa;
00731 background-image : url("gfx/x_menulayerbg.png");
00732 }
00733
00734 .menulayer DIV.menuLayerItem {
00735 cursor: hand;
00736 width: 100%;
00737 height: 16px;
00738 white-space: nowrap;
00739 padding-top: 3px;
00740 padding-bottom: 3px;
00741 font-size: 11px;
00742 }
00743 .menulayerItemIcon {
00744 vertical-align: middle;
00745 padding-right: 3px;
00746 }
00747
00748 .menulayer DIV.menuLayerItem_divider {
00749 background-image : url("gfx/x_dividerbg.png");
00750 width: 100%;
00751 height: 7px;
00752 }
00753 .menulayer DIV.menuLayerItem:hover {
00754 background-color: #d0e7b1;
00755 }
00756
00757 html {
00758
00759 _overflow: hidden;
00760 }
00761
00762 body {
00763 overflow: hidden;
00764 }
00765
00766
00767
00768
00769
00770 .dashboard-col {
00771 float: left;
00772 border: 1px solid red;
00773 }
00774 .dashboard-dock {
00775 border: 1px solid yellow;
00776 float: none;
00777 }
00778 .dashboard-item {
00779 background-color: white;
00780 border: 1px solid blue;
00781 margin: 10 10 10 10;
00782 }
00783 .dashboard-dock .dashboard-item {
00784 background-color: yellow;
00785 }
00786 .dashboard-dock .dashboard-item .dashboard-icon {
00787 display: visible;
00788 }
00789 .dashboard-dock .dashboard-item .dashboard-content {
00790 display: none
00791 }
00792 .dashboard-col .dashboard-item .dashboard-icon {
00793 display: none;
00794 }
00795
00796 .dashboard-item-hover {
00797 border: 3px solid green;
00798 }
00799
00800 -->
00801
00802
00803 </style>
00804 ';
00805
00806
00807
00808
00809 $this->content.=$GLOBALS['TBE_TEMPLATE']->startPage($title);
00810
00811
00812
00813
00814
00815
00816
00817
00818
00819
00820
00821
00822
00823
00824
00825
00826
00827
00828
00829
00830
00831
00832
00833
00834
00835
00836
00837
00838
00839
00840
00841
00842
00843
00844
00845
00846
00847
00848
00849
00850
00851
00852
00853
00854
00855
00856
00857
00858
00859
00860
00861
00862 $c_menu = '';
00863 $c_icons = '';
00864 $populate = '';
00865 if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['topApps']['menu'])) {
00866 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['topApps']['menu'] = array();
00867 }
00868 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['topApps']['menu'] = array_merge(array('_logoMenu' => array('leftAlign'=>TRUE)), $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['topApps']['menu']);
00869
00870 foreach($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['topApps']['menu'] as $modName => $options) {
00871 $align = $options['leftAlign'];
00872 $c_menu.='<div id="'.$modName.'"'.(!$options['simpleContainer'] ? ' class="menuItems menu-normal"' : '').' style="float: '.($align?'left':'right').';"'.(!$options['simpleContainer'] ? ' onclick="menuToggleState(\''.$modName.'\');" onmouseover="menuMouseOver(\''.$modName.'\');" onmouseout="menuMouseOut(\''.$modName.'\');"':'').'></div>';
00873 $populate.= '
00874 getElementContent("'.$modName.'");';
00875 }
00876
00877 if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['topApps']['icons'])) {
00878 foreach($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['topApps']['icons'] as $modName => $options) {
00879 $align = $options['leftAlign'];
00880 $c_icons.='<div id="'.$modName.'" style="float: '.($align?'left':'right').';"></div>';
00881 $populate.= '
00882 getElementContent("'.$modName.'");';
00883 }
00884 }
00885
00886 $this->content.= ('<body>
00887 <div id="menu">'.$c_menu.'</div>
00888 '.($c_icons ? '<div id="icons">'.$c_icons.'</div>' : '').'
00889 <iframe src="./alt_intro.php" id="content" name="content"></iframe>
00890
00891
00892 <script type="text/javascript" language="JavaScript">
00893 '.$populate.'
00894 </script>
00895
00896
00897 </body>');
00898
00899 $this->content.= ('</html>');
00900 }
00901
00907 function printContent() {
00908 echo $this->content;
00909 }
00910 }
00911
00912
00913 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_main.php']) {
00914 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_main.php']);
00915 }
00916
00917
00918
00919
00920
00921
00922
00923
00924
00925
00926
00927
00928 $SOBE = t3lib_div::makeInstance('SC_alt_main');
00929 $SOBE->init();
00930 $SOBE->main();
00931 $SOBE->printContent();
00932
00933 ?>