Project

General

Profile

Bug #18154 ยป 20080207_RFC_7433.diff

Administrator Admin, 2008-02-07 09:52

View differences:

typo3/stylesheet.css (working copy)
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-setup-mod-index-php { padding: 0; margin: 0; overflow: hidden; height: 100%; }
/****************************************
typo3/sysext/setup/mod/index.php (working copy)
// Create instance of object for output of data
$this->doc = t3lib_div::makeInstance('template');
$this->doc->divClass = 'typo3-fullDoc';
$this->doc->backPath = $BACK_PATH;
$this->doc->setModuleTemplate('templates/setup.html');
$this->doc->docType = 'xhtml_trans';
$this->doc->JScodeLibArray['dyntabmenu'] = $this->doc->getDynTabMenuJScode();
......
// Start page:
$menuItems = array();
$this->doc->loadJavascriptLib('md5.js');
$this->content .= $this->doc->startPage($LANG->getLL('UserSettings'));
$this->content .= $this->doc->header($LANG->getLL('UserSettings').' - '.$BE_USER->user['realName'].' ['.$BE_USER->user['username'].']');
// Load available backend modules
$this->loadModules = t3lib_div::makeInstance('t3lib_loadModules');
$this->loadModules->observeWorkspaces = TRUE;
$this->loadModules->load($TBE_MODULES);
$this->content .= $this->doc->header($LANG->getLL('UserSettings').' - '.$BE_USER->user['realName'].' ['.$BE_USER->user['username'].']');
// If password is updated, output whether it failed or was OK.
if ($this->PASSWORD_UPDATED) {
......
$this->content .= $this->doc->spacer(20);
$this->content .= $this->doc->section('','
<input type="hidden" name="simUser" value="'.$this->simUser.'" />
<input type="submit" name="submit" value="'.$LANG->getLL('save').'" />
<input type="submit" name="data[setValuesToDefault]" value="'.$LANG->getLL('setToStandard').'" onclick="return confirm(\''.$LANG->getLL('setToStandardQuestion').'\');" />'.
t3lib_BEfunc::cshItem('_MOD_user_setup', 'reset', $BACK_PATH,'|')
);
......
// Notice
$this->content .= $this->doc->spacer(30);
$this->content .= $this->doc->section('', $LANG->getLL('activateChanges'));
// CSH general:
$this->content .= '<br/><br/>'.t3lib_BEfunc::cshItem('_MOD_user_setup', '', $BACK_PATH, '|');
// shortcut
$this->content .= $this->doc->spacer(30);
$this->content .= $this->doc->makeShortcutIcon('','',$this->MCONF['name']);
// Setting up the buttons and markers for docheader
$docHeaderButtons = $this->getButtons();
$markers['CSH'] = $docHeaderButtons['csh'];
$markers['CONTENT'] = $this->content;
// Build the <body> for the module
$this->content = $this->doc->startPage($LANG->getLL('UserSettings'));
$this->content.= $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers);
$this->content.= $this->doc->endPage();
$this->content = $this->doc->insertStylesAndJS($this->content);
}
/**
......
* @return void
*/
function printContent() {
$this->content.= $this->doc->endPage();
echo $this->content;
exit;
}
/**
* 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() {
global $LANG, $BACK_PATH, $BE_USER;
$buttons = array(
'csh' => '',
'save' => '',
'shortcut' => '',
);
//CSH
$buttons['csh'] = t3lib_BEfunc::cshItem('_MOD_user_setup', '', $BACK_PATH, '|');
// Save
$buttons['save'] = '<input type="image" class="c-inputButton" name="submit" value="' . $LANG->getLL('save') . '"' . t3lib_iconWorks::skinImg($BACK_PATH, 'gfx/savedok.gif','') . ' title="' . $LANG->getLL('save') . '" />';
if ($BE_USER->mayMakeShortcut()) {
// Shortcut
$buttons['shortcut'] = $this->doc->makeShortcutIcon('','',$this->MCONF['name']);
}
return $buttons;
}
......
/******************************
*
* Helper functions
typo3/templates/setup.html (revision 0)
<!-- ###FULLDOC### begin -->
<div class="typo3-fullDoc">
<!-- Page header with buttons, path details and csh -->
<div id="typo3-docheader">
<div id="typo3-docheader-row1">
<div class="buttonsleft">###BUTTONLIST_LEFT###</div>
<div class="buttonsright">###BUTTONLIST_RIGHT###</div>
</div>
<div id="typo3-docheader-row2">
<div class="pagepath">###CSH###</div>
<div class="infooptions"></div>
</div>
</div>
<!-- Content of module, for instance listing, info or editing -->
<div id="typo3-docbody">
###CONTENT###
</div>
</div>
<!-- ###FULLDOC### end -->
<!-- Grouping the icons on top -->
<!-- ###BUTTON_GROUP_WRAP### -->
<div class="buttongroup">###BUTTONS###</div>
<!-- ###BUTTON_GROUP_WRAP### -->
<!-- ###BUTTON_GROUPS_LEFT### -->
<!-- ###BUTTON_GROUP1### -->###SAVE###<!-- ###BUTTON_GROUP1### -->
<!-- ###BUTTON_GROUPS_LEFT### -->
<!-- ###BUTTON_GROUPS_RIGHT### -->
<!-- ###BUTTON_GROUP1### -->###SHORTCUT###<!-- ###BUTTON_GROUP1### -->
<!-- ###BUTTON_GROUPS_RIGHT### -->
    (1-1/1)