Index: typo3/stylesheet.css =================================================================== --- typo3/stylesheet.css (revision 3151) +++ typo3/stylesheet.css (working copy) @@ -126,7 +126,7 @@ background-color: #9BA1A8; } -body#typo3-alt-doc-php, body#typo3-db-list-php, body#ext-cms-layout-db-layout-php, body#ext-tstemplate-ts-index-php, body#typo3-mod-web-perm-index-php, body#typo3-mod-web-info-index-php, body#typo3-mod-web-func-index-php, body#ext-version-cm1-index-php { padding: 0; margin: 0; overflow: hidden; height: 100%; } +body#typo3-alt-doc-php, body#typo3-db-list-php, body#ext-cms-layout-db-layout-php, body#ext-tstemplate-ts-index-php, body#typo3-mod-web-perm-index-php, body#typo3-mod-web-info-index-php, body#typo3-mod-web-func-index-php, body#ext-version-cm1-index-php, body#ext-lowlevel-config-index-php { padding: 0; margin: 0; overflow: hidden; height: 100%; } /**************************************** Index: typo3/sysext/lowlevel/config/index.php =================================================================== --- typo3/sysext/lowlevel/config/index.php (revision 3151) +++ typo3/sysext/lowlevel/config/index.php (working copy) @@ -99,8 +99,10 @@ $this->menuConfig(); - $this->doc = t3lib_div::makeInstance('noDoc'); + $this->doc = t3lib_div::makeInstance('template'); $this->doc->backPath = $BACK_PATH; + $this->doc->setModuleTemplate('templates/config.html'); + $this->doc->docType='xhtml_trans'; // JavaScript $this->doc->JScode = ' @@ -150,16 +152,14 @@ function main() { global $BE_USER,$LANG,$TCA,$TYPO3_CONF_VARS; - $this->content.= $this->doc->startPage('Configuration'); $this->content.= $this->doc->header('Configuration'); $this->content.= $this->doc->spacer(5); $arrayBrowser = t3lib_div::makeInstance('t3lib_arrayBrowser'); - $menu = $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.menu').' '.t3lib_BEfunc::getFuncMenu(0,'SET[function]',$this->MOD_SETTINGS['function'],$this->MOD_MENU['function']). - '    '.t3lib_BEfunc::getFuncCheck(0,'SET[fixedLgd]',$this->MOD_SETTINGS['fixedLgd'],'','','id="checkFixedLgd"'); - $this->content.=$this->doc->section('',''.$menu.''); - + $this->content.= '  ' . t3lib_BEfunc::getFuncCheck(0, 'SET[fixedLgd]', $this->MOD_SETTINGS['fixedLgd'], '', '', 'id="checkFixedLgd"'); + $this->content.= $this->doc->spacer(5); + switch($this->MOD_SETTINGS['function']) { case 0: $theVar = $TYPO3_CONF_VARS; @@ -261,10 +261,20 @@
'; + + // Setting up the buttons and markers for docheader + $docHeaderButtons = $this->getButtons(); + $markers = array( + 'CSH' => $docHeaderButtons['csh'], + 'FUNC_MENU' => $this->getFuncMenu(), + 'CONTENT' => $this->content + ); - if ($BE_USER->mayMakeShortcut()) { - $this->content.=$this->doc->spacer(20).$this->doc->section('',$this->doc->makeShortcutIcon('','function',$this->MCONF['name'])); - } + // Build the for the module + $this->content = $this->doc->startPage('Configuration'); + $this->content.= $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers); + $this->content.= $this->doc->endPage(); + $this->content = $this->doc->insertStylesAndJS($this->content); } /** @@ -273,10 +283,39 @@ * @return void */ function printContent() { - - $this->content.= $this->doc->endPage(); echo $this->content; } + + /** + * Create the panel of buttons for submitting the form or otherwise perform operations. + * + * @return array all available buttons as an assoc. array + */ + private function getButtons() { + + $buttons = array( + 'csh' => '', + 'shortcut' => '' + ); + // CSH + //$buttons['csh'] = t3lib_BEfunc::cshItem('_MOD_web_func', '', $GLOBALS['BACK_PATH']); + + // Shortcut + if ($GLOBALS['BE_USER']->mayMakeShortcut()) { + $buttons['shortcut'] = $this->doc->makeShortcutIcon('','function',$this->MCONF['name']); + } + return $buttons; + } + + /** + * Create the function menu + * + * @return string HTML of the function menu + */ + private function getFuncMenu() { + $funcMenu = t3lib_BEfunc::getFuncMenu(0, 'SET[function]', $this->MOD_SETTINGS['function'], $this->MOD_MENU['function']); + return $funcMenu; + } } // Include extension? Index: typo3/templates/config.html =================================================================== --- typo3/templates/config.html (revision 0) +++ typo3/templates/config.html (revision 0) @@ -0,0 +1,33 @@ + +
+ +
+
+
###BUTTONLIST_LEFT###
+
###BUTTONLIST_RIGHT######FUNC_MENU###
+
+
+
###CSH######PAGEPATH###
+
###PAGEINFO###
+
+
+ +
+ ###CONTENT### +
+
+ + + + + +
###BUTTONS###
+ + + + + + + +###SHORTCUT### + \ No newline at end of file