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#typo3-mod-php { padding: 0; margin: 0; overflow: hidden; height: 100%; } /**************************************** Index: typo3/sysext/belog/mod/index.php =================================================================== --- typo3/sysext/belog/mod/index.php (revision 3151) +++ typo3/sysext/belog/mod/index.php (working copy) @@ -29,7 +29,7 @@ * * This module lets you view the changelog. * - * @author Kasper Skårhøj + * @author Kasper SkÃ¥rhøj */ @@ -81,8 +81,10 @@ $this->lF = t3lib_div::makeInstance('t3lib_BEDisplayLog'); $this->menuConfig(); - $this->doc = t3lib_div::makeInstance('noDoc'); + $this->doc = t3lib_div::makeInstance('template'); $this->doc->backPath = $BACK_PATH; + $this->doc->setModuleTemplate('templates/belog.html'); + $this->doc->docType = 'xhtml_trans'; // JavaScript $this->doc->JScode = ' @@ -173,7 +175,6 @@ function main() { global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS; - $this->content.=$this->doc->startPage('Administration log'); $this->content.=$this->doc->header('Administration log'); $this->content.=$this->doc->spacer(5); @@ -299,10 +300,17 @@ $this->content.=$this->doc->section($header,$this->doc->table($codeArr)); $GLOBALS['TYPO3_DB']->sql_free_result($log); - - if ($BE_USER->mayMakeShortcut()) { - $this->content.=$this->doc->spacer(20).$this->doc->section('',$this->doc->makeShortcutIcon('','users,time,max,action',$this->MCONF['name'])); - } + + // Setting up the buttons and markers for docheader + $docHeaderButtons = $this->getButtons(); + //$markers['CSH'] = $docHeaderButtons['csh']; + $markers['CONTENT'] = $this->content; + + // Build the for the module + $this->content = $this->doc->startPage('Administration log'); + $this->content.= $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers); + $this->content.= $this->doc->endPage(); + $this->content = $this->doc->insertStylesAndJS($this->content); } /** @@ -311,11 +319,30 @@ * @return string HTML */ function printContent() { - - $this->content.=$this->doc->spacer(20); - $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('','users,time,max,action',$this->MCONF['name']); + } + + return $buttons; + } } // Include extension? Index: typo3/templates/belog.html =================================================================== --- typo3/templates/belog.html (revision 0) +++ typo3/templates/belog.html (revision 0) @@ -0,0 +1,29 @@ + +
+ +
+
+
###BUTTONLIST_LEFT###
+
###BUTTONLIST_RIGHT###
+
+
+
+
+
+
+ +
+ ###CONTENT### +
+
+ + + + + +
###BUTTONS###
+ + + +###SHORTCUT### + \ No newline at end of file