Project

General

Profile

Feature #18879 » 0008567_v2.patch

Administrator Admin, 2008-05-31 20:36

View differences:

typo3/db_list.php (working copy)
// Loading module configuration:
$this->modTSconfig = t3lib_BEfunc::getModTSconfig($this->id,'mod.'.$this->MCONF['name']);
// initialize settings from page TSconfig
$this->MOD_SETTINGS['bigControlPanel'] = $this->modTSconfig['properties']['enableExtendedView'];
$this->MOD_SETTINGS['clipBoard'] = $this->modTSconfig['properties']['enableClipBoard'];
$this->MOD_SETTINGS['localization'] = $this->modTSconfig['properties']['enableLocalizationView'];
// Clean up settings:
$this->MOD_SETTINGS = t3lib_BEfunc::getModuleData($this->MOD_MENU, t3lib_div::_GP('SET'), $this->MCONF['name']);
}
......
$dblist->allowedNewTables = t3lib_div::trimExplode(',', $this->modTSconfig['properties']['allowedNewTables'], 1);
$dblist->deniedNewTables = t3lib_div::trimExplode(',', $this->modTSconfig['properties']['deniedNewTables'], 1);
$dblist->newWizards=$this->modTSconfig['properties']['newWizards']?1:0;
$dblist->disableSearchBox = $this->modTSconfig['properties']['disableSearchBox']?1:0;
$dblist->disableBigControlPanelCheckbox = $this->modTSconfig['properties']['disableBigControlPanelCheckbox']?1:0;
$dblist->disableClipBoardCheckbox = $this->modTSconfig['properties']['disableClipBoardCheckbox']?1:0;
$dblist->disableLocalizationCheckbox = $this->modTSconfig['properties']['disableLocalizationCheckbox']?1:0;
$dblist->pageRow = $this->pageinfo;
$dblist->counter++;
$dblist->MOD_MENU = array('bigControlPanel' => '', 'clipBoard' => '', 'localization' => '');
......
$this->body.=$dblist->fieldSelectBox($dblist->table);
}
// Adding checkbox options for extended listing and clipboard display:
// Adding checkbox options for extended listing and clipboard display:
$this->body.='
<!--
......
<div id="typo3-listOptions">
<form action="" method="post">';
$this->body.=t3lib_BEfunc::getFuncCheck($this->id,'SET[bigControlPanel]',$this->MOD_SETTINGS['bigControlPanel'],'db_list.php',($this->table?'&table='.$this->table:''),'id="checkLargeControl"').' <label for="checkLargeControl">'.$LANG->getLL('largeControl',1).'</label><br />';
if ($dblist->showClipboard) {
if (!$dblist->disableBigControlPanelCheckbox) {
$this->body.=t3lib_BEfunc::getFuncCheck($this->id,'SET[bigControlPanel]',$this->MOD_SETTINGS['bigControlPanel'],'db_list.php',($this->table?'&table='.$this->table:''),'id="checkLargeControl"').' <label for="checkLargeControl">'.$LANG->getLL('largeControl',1).'</label><br />';
}
if ($dblist->showClipboard && !$dblist->disableClipBoardCheckbox) {
$this->body.=t3lib_BEfunc::getFuncCheck($this->id,'SET[clipBoard]',$this->MOD_SETTINGS['clipBoard'],'db_list.php',($this->table?'&table='.$this->table:''),'id="checkShowClipBoard"').' <label for="checkShowClipBoard">'.$LANG->getLL('showClipBoard',1).'</label><br />';
}
$this->body.=t3lib_BEfunc::getFuncCheck($this->id,'SET[localization]',$this->MOD_SETTINGS['localization'],'db_list.php',($this->table?'&table='.$this->table:''),'id="checkLocalization"').' <label for="checkLocalization">'.$LANG->getLL('localization',1).'</label><br />';
if (!$dblist->disableLocalizationCheckbox) {
$this->body.=t3lib_BEfunc::getFuncCheck($this->id,'SET[localization]',$this->MOD_SETTINGS['localization'],'db_list.php',($this->table?'&table='.$this->table:''),'id="checkLocalization"').' <label for="checkLocalization">'.$LANG->getLL('localization',1).'</label><br />';
}
$this->body.='
</form>
</div>';
......
$this->body.= t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'list_clipboard', $GLOBALS['BACK_PATH']);
}
// Search box:
$this->body.=$dblist->getSearchBox();
// Display search box, if not disabled:
if (!$dblist->disableSearchBox) {
$this->body.=$dblist->getSearchBox();
}
// Display sys-notes, if any are found:
$this->body.=$dblist->showSysNotesForPage();
(2-2/3)