Index: typo3/show_rechis.php =================================================================== --- typo3/show_rechis.php (revision 3175) +++ typo3/show_rechis.php (working copy) @@ -94,11 +94,12 @@ global $LANG; // Create internal template object: - $this->doc = t3lib_div::makeInstance('mediumDoc'); + $this->doc = t3lib_div::makeInstance('template'); + $this->doc->backPath = $GLOBALS['BACK_PATH']; $this->doc->docType = 'xhtml_trans'; + $this->doc->setModuleTemplate('templates/show_rechis.html'); // Start the page header: - $this->content.=$this->doc->startPage($LANG->getLL('title')); $this->content.=$this->doc->header($LANG->getLL('title')); $this->content.=$this->doc->spacer(5); } @@ -114,19 +115,17 @@ // Start history object $historyObj = t3lib_div::makeInstance('recordHistory'); - // Return link: - if ($historyObj->returnUrl) { - $this->content .= ''.$LANG->getLL('returnLink',1).''; - } - // Get content: $this->content .= $historyObj->main(); - // Return link: - if ($historyObj->returnUrl) { - $link = ''.$LANG->getLL('returnLink',1).''; - $this->content .= $this->doc->section($LANG->getLL('return'),$link,0,1); - } + // Setting up the buttons and markers for docheader + $docHeaderButtons = $this->getButtons(); + $markers['CONTENT'] = $this->content; + $markers['CSH'] = $docHeaderButtons['csh']; + + // Build the for the module + $this->content = $this->doc->startPage($LANG->getLL('title')); + $this->content.= $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers); } /** @@ -140,6 +139,30 @@ $this->content = $this->doc->insertStylesAndJS($this->content); 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' => '', + 'back' => '' + ); + + // CSH + $buttons['csh'] = t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'history_log', $GLOBALS['BACK_PATH'], ''); + + // Start history object + $historyObj = t3lib_div::makeInstance('recordHistory'); + + if ($historyObj->returnUrl) { + $buttons['back']= ''; + } + + return $buttons; + } } // Include extension? Index: typo3/stylesheet.css =================================================================== --- typo3/stylesheet.css (revision 3175) +++ 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-show-rechis-php { padding: 0; margin: 0; overflow: hidden; height: 100%; } /**************************************** Index: typo3/templates/show_rechis.html =================================================================== --- typo3/templates/show_rechis.html (revision 0) +++ typo3/templates/show_rechis.html (revision 0) @@ -0,0 +1,30 @@ + +
+ +
+
+
###BUTTONLIST_LEFT###
+
###BUTTONLIST_RIGHT###
+
+
+
###CSH###
+
+
+
+ +
+ ###CONTENT### +
+
+ + + +
###BUTTONS###
+ + + +###BACK### + + + + \ No newline at end of file