Project

General

Profile

Bug #18835 » configuration_module.diff

Administrator Admin, 2008-05-25 12:52

View differences:

typo3/sysext/lowlevel/config/index.php (working copy)
$arrayBrowser = t3lib_div::makeInstance('t3lib_arrayBrowser');
$this->content.= '<label for="checkFixedLgd">Crop lines:</label>&nbsp;&nbsp;' . t3lib_BEfunc::getFuncCheck(0, 'SET[fixedLgd]', $this->MOD_SETTINGS['fixedLgd'], '', '', 'id="checkFixedLgd"');
$this->content.= '<div class="lowlevel-config-options">' .
t3lib_BEfunc::getFuncCheck(0, 'SET[fixedLgd]', $this->MOD_SETTINGS['fixedLgd'], '', '', 'id="checkFixedLgd"') .
'<label for="checkFixedLgd">Crop lines</label>
</div>';
$this->content.= $this->doc->spacer(5);
switch($this->MOD_SETTINGS['function']) {
......
</div>
';
}
$this->content.= '<br/><table border="0" cellpadding="1" cellspacing="0"">';
$this->content.= '<tr>
// Search:
$this->content.= '<div class="lowlevel-config-search">
<label>Enter search phrase:</label>
<input type="text" name="search_field" value="'.htmlspecialchars($search_field).'"'.$GLOBALS['TBE_TEMPLATE']->formWidth(20).'>
<input type="submit" name="search" value="Search" />
'.t3lib_BEfunc::getFuncCheck(0,'SET[regexsearch]',$this->MOD_SETTINGS['regexsearch'],'','','id="checkRegexsearch"').'
<label for="checkRegexsearch">Use regular expression</label>
</div>';
// Config Tree:
$this->content .= '<table border="0" cellpadding="1" cellspacing="0"">';
$this->content .= '<tr>
<td><img src="clear.gif" width="1" height="1" alt="" /></td>
<td class="bgColor2">
<table border="0" cellpadding="0" cellspacing="0" class="bgColor5" width="100%"><tr><td nowrap="nowrap"><b>'.$label.'</b></td></tr></table>
</td>
</tr>';
$this->content.='<tr>
$this->content .='<tr>
<td></td>
<td class="bgColor2">
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#D9D5C9" width="100%"><tr><td nowrap="nowrap">'.$tree.'</td></tr></table>' .
<table border="0" cellpadding="0" cellspacing="0" class="bgColor4" width="100%"><tr><td nowrap="nowrap">'.$tree.'</td></tr></table>' .
'<img src="clear.gif" width="465" height="1" alt="" /></td>
</tr>
</table>
';
// Search:
$this->content.='<br>
<table border="0" cellpadding="1" cellspacing="0"">
<tr>
<td><img src="clear.gif" width="1" height="1" alt="" /></td>
<td class="bgColor2">
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#D9D5C9">
<tr>
<td>&nbsp;Enter search phrase:&nbsp;&nbsp;<input type="text" name="search_field" value="'.htmlspecialchars($search_field).'"'.$GLOBALS['TBE_TEMPLATE']->formWidth(20).'></td>
<td><input type="submit" name="search" value="Search" /></td>
</tr>
<tr>
<td>&nbsp;<label for="checkRegexsearch">Use ereg(), not stristr():</label>&nbsp;&nbsp;'.t3lib_BEfunc::getFuncCheck(0,'SET[regexsearch]',$this->MOD_SETTINGS['regexsearch'],'','','id="checkRegexsearch"').'</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
<br/>
';
// Setting up the buttons and markers for docheader
$docHeaderButtons = $this->getButtons();
$markers = array(
......
// Build the <body> for the module
$this->content = $this->doc->startPage('Configuration');
$this->doc->inDocStylesArray[] = '
.lowlevel-config-search {
margin-bottom:10px;
}
.lowlevel-config-options {
padding-left:6px;
}
.lowlevel-config-options label,
.lowlevel-config-search label {
padding: 0 6px; vertical-align:text-top;
}
';
$this->content.= $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers);
$this->content.= $this->doc->endPage();
$this->content = $this->doc->insertStylesAndJS($this->content);
(2-2/2)