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/beuser/mod/index.php =================================================================== --- typo3/sysext/beuser/mod/index.php (revision 3151) +++ typo3/sysext/beuser/mod/index.php (working copy) @@ -1125,9 +1125,12 @@ // ************************** // Initializing // ************************** - $this->doc = t3lib_div::makeInstance('noDoc'); + $this->doc = t3lib_div::makeInstance('template'); + $this->doc->backPath = $GLOBALS['BACK_PATH']; + $this->doc->setModuleTemplate('templates/beuser.html'); + $this->doc->docType = 'xhtml_trans'; $this->doc->form='
'; - $this->doc->backPath = $GLOBALS['BACK_PATH']; + // JavaScript $this->doc->JScode = $this->doc->wrapScriptTags(' script_ended = 0; @@ -1164,13 +1167,9 @@ */ function main() { $this->content=''; - $this->content.=$this->doc->startPage('Backend User Administration'); - $menu=t3lib_BEfunc::getFuncMenu(0,'SET[function]',$this->MOD_SETTINGS['function'],$this->MOD_MENU['function']); - $this->content.=$this->doc->header('Backend User Administration'); $this->content.=$this->doc->spacer(5); - $this->content.=$this->doc->section('',$menu).$this->doc->divider(5); switch($this->MOD_SETTINGS['function']) { case 'compare': @@ -1185,13 +1184,18 @@ case 'whoisonline': $this->content.=$this->whoIsOnline(); break; - } - - - if ($GLOBALS['BE_USER']->mayMakeShortcut()) { - $this->content.=$this->doc->spacer(20). - $this->doc->section('',$this->doc->makeShortcutIcon('be_user_uid,compareFlags','function',$this->MCONF['name'])); - } + } + // Setting up the buttons and markers for docheader + $docHeaderButtons = $this->getButtons(); + //$markers['CSH'] = $docHeaderButtons['csh']; + $markers['FUNC_MENU'] = t3lib_BEfunc::getFuncMenu(0,'SET[function]',$this->MOD_SETTINGS['function'],$this->MOD_MENU['function']); + $markers['CONTENT'] = $this->content; + + // Build the for the module + $this->content = $this->doc->startPage('Backend User Administration'); + $this->content.= $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers); + $this->content.= $this->doc->endPage(); + $this->content = $this->doc->insertStylesAndJS($this->content); } /** @@ -1200,17 +1204,40 @@ * @return [type] ... */ 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' => '', + 'save' => '' + ); + // CSH + //$buttons['csh'] = t3lib_BEfunc::cshItem('_MOD_web_func', '', $GLOBALS['BACK_PATH']); + + // Shortcut + if ($GLOBALS['BE_USER']->mayMakeShortcut()) { + $buttons['shortcut'] = $this->doc->makeShortcutIcon('be_user_uid,compareFlags','function', $this->MCONF['name']); + } + + // Save + if($this->MOD_SETTINGS['function'] == 'compare' && !t3lib_div::_GP('be_user_uid')) { + $buttons['save'] = 'doc->backPath,'gfx/savedok.gif','').' title="Update" value="Update" />'; + } + return $buttons; + } - /*************************** * * OTHER FUNCTIONS: @@ -1291,7 +1318,6 @@ $menu[]=' '; } $outCode = 'Group by:
'.implode('
',$menu); - $outCode.='
'; $content = $this->doc->section('Group and Compare Users',$outCode,0,1); Index: typo3/templates/beuser.html =================================================================== --- typo3/templates/beuser.html (revision 0) +++ typo3/templates/beuser.html (revision 0) @@ -0,0 +1,33 @@ + +
+ +
+
+
###BUTTONLIST_LEFT###
+
###BUTTONLIST_RIGHT######FUNC_MENU###
+
+
+
+
+
+
+ +
+ ###CONTENT### +
+
+ + + + + +
###BUTTONS###
+ + + +###SAVE### + + + +###SHORTCUT### + \ No newline at end of file