[FEATURE] Make use of .t3-table in EXT: tstemplate 28/24428/2
authorFelix Kopp <felix-source@phorax.com>
Sun, 6 Oct 2013 16:58:59 +0000 (18:58 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 6 Oct 2013 20:06:26 +0000 (22:06 +0200)
Use table.t3-table of #52558 in EXT: tstemplate.

Change-Id: I7b01427f8761c951df7ecf62cbeb0e307d325c84
Resolves: #52561
Related: #49592
Releases: 6.2
Reviewed-on: https://review.typo3.org/24428
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/tstemplate/Classes/Controller/TemplateAnalyzerModuleFunctionController.php
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateInformationModuleFunctionController.php
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateModuleController.php
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateObjectBrowserModuleFunctionController.php
typo3/sysext/tstemplate/ts/locallang.xlf

index 2fdf815..31a061f 100644 (file)
@@ -99,6 +99,8 @@ class TemplateAnalyzerModuleFunctionController extends \TYPO3\CMS\Backend\Module
         * @todo Define visibility
         */
        public function main() {
+               $theOutput = '';
+
                // Initializes the module. Done in this function because we may need to re-initialize if data is submitted!
                // Checking for more than one template an if, set a menu...
                $manyTemplatesMenu = $this->pObj->templateMenu();
@@ -106,11 +108,16 @@ class TemplateAnalyzerModuleFunctionController extends \TYPO3\CMS\Backend\Module
                if ($manyTemplatesMenu) {
                        $template_uid = $this->pObj->MOD_SETTINGS['templatesOnPage'];
                }
+
                // BUGBUG: Should we check if the uset may at all read and write template-records???
                $existTemplate = $this->initialize_editor($this->pObj->id, $template_uid);
+
                // initialize
                if ($existTemplate) {
-                       $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('currentTemplate', TRUE), \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIconForRecord('sys_template', $GLOBALS['tplRow']) . '<strong>' . $this->pObj->linkWrapTemplateTitle($GLOBALS['tplRow']['title']) . '</strong>' . htmlspecialchars((trim($GLOBALS['tplRow']['sitetitle']) ? ' (' . $GLOBALS['tplRow']['sitetitle'] . ')' : '')));
+                       $theOutput .= $this->pObj->doc->section(
+                               $GLOBALS['LANG']->getLL('currentTemplate', TRUE),
+                               \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIconForRecord('sys_template', $GLOBALS['tplRow']) . '<strong>' . $this->pObj->linkWrapTemplateTitle($GLOBALS['tplRow']['title']) . '</strong>' . htmlspecialchars((trim($GLOBALS['tplRow']['sitetitle']) ? ' (' . $GLOBALS['tplRow']['sitetitle'] . ')' : ''))
+                       );
                }
                if ($manyTemplatesMenu) {
                        $theOutput .= $this->pObj->doc->section('', $manyTemplatesMenu);
@@ -120,17 +127,17 @@ class TemplateAnalyzerModuleFunctionController extends \TYPO3\CMS\Backend\Module
                $pointer = count($GLOBALS['tmpl']->hierarchyInfo);
                $GLOBALS['tmpl']->hierarchyInfoArr = $GLOBALS['tmpl']->ext_process_hierarchyInfo(array(), $pointer);
                $hierarArr = array();
-               $head = '<tr class="t3-row-header">';
-               $head .= '<td>' . $GLOBALS['LANG']->getLL('title', TRUE) . '</td>';
-               $head .= '<td>' . $GLOBALS['LANG']->getLL('rootlevel', TRUE) . '</td>';
-               $head .= '<td>' . $GLOBALS['LANG']->getLL('clearSetup', TRUE) . '</td>';
-               $head .= '<td>' . $GLOBALS['LANG']->getLL('clearConstants', TRUE) . '</td>';
-               $head .= '<td>' . $GLOBALS['LANG']->getLL('pid', TRUE) . '</td>';
-               $head .= '<td>' . $GLOBALS['LANG']->getLL('rootline', TRUE) . '</td>';
-               $head .= '<td>' . $GLOBALS['LANG']->getLL('nextLevel', TRUE) . '</td>';
-               $head .= '</tr>';
+               $head = '<thead><tr>';
+               $head .= '<th>' . $GLOBALS['LANG']->getLL('title', TRUE) . '</th>';
+               $head .= '<th>' . $GLOBALS['LANG']->getLL('rootlevel', TRUE) . '</th>';
+               $head .= '<th>' . $GLOBALS['LANG']->getLL('clearSetup', TRUE) . '</th>';
+               $head .= '<th>' . $GLOBALS['LANG']->getLL('clearConstants', TRUE) . '</th>';
+               $head .= '<th>' . $GLOBALS['LANG']->getLL('pid', TRUE) . '</th>';
+               $head .= '<th>' . $GLOBALS['LANG']->getLL('rootline', TRUE) . '</th>';
+               $head .= '<th>' . $GLOBALS['LANG']->getLL('nextLevel', TRUE) . '</th>';
+               $head .= '</tr></thead>';
                $hierar = implode(array_reverse($GLOBALS['tmpl']->ext_getTemplateHierarchyArr($GLOBALS['tmpl']->hierarchyInfoArr, '', array(), 1)), '');
-               $hierar = '<table id="ts-analyzer" cellpadding="0" cellspacing="0">' . $head . $hierar . '</table>';
+               $hierar = '<table class="t3-table" id="ts-analyzer">' . $head . $hierar . '</table>';
                $theOutput .= $this->pObj->doc->spacer(5);
                $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('templateHierarchy', TRUE), $hierar, 0, 1);
                $urlParameters = array(
@@ -152,7 +159,7 @@ class TemplateAnalyzerModuleFunctionController extends \TYPO3\CMS\Backend\Module
                        $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('constants', TRUE), '', 0, 1);
                        $theOutput .= $this->pObj->doc->sectionEnd();
                        $theOutput .= '
-                               <table class="ts-typoscript" border="0" cellpadding="1" cellspacing="0">
+                               <table class="t3-table ts-typoscript">
                        ';
                        // Don't know why -2 and not 0... :-) But works.
                        $GLOBALS['tmpl']->ext_lineNumberOffset = -2;
@@ -164,9 +171,11 @@ class TemplateAnalyzerModuleFunctionController extends \TYPO3\CMS\Backend\Module
                                if ($cVal == \TYPO3\CMS\Core\Utility\GeneralUtility::_GET('template') || \TYPO3\CMS\Core\Utility\GeneralUtility::_GET('template') == 'all') {
                                        $theOutput .= '
                                                <tr>
-                                                       </td><td class="bgColor2"><strong>' . htmlspecialchars($GLOBALS['tmpl']->templateTitles[$cVal]) . '</strong></td></tr>
+                                                       <td><strong>' . htmlspecialchars($GLOBALS['tmpl']->templateTitles[$cVal]) . '</strong></td>
+                                               </tr>
                                                <tr>
-                                                       <td class="bgColor2"><table border="0" cellpadding="0" cellspacing="0" class="bgColor0" width="100%"><tr><td nowrap="nowrap">' . $GLOBALS['tmpl']->ext_outputTS(array($val), $this->pObj->MOD_SETTINGS['ts_analyzer_checkLinenum'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkComments'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkCrop'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkSyntax'], 0) . '</td></tr></table>
+                                                       <td>
+                                                               <table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td nowrap="nowrap">' . $GLOBALS['tmpl']->ext_outputTS(array($val), $this->pObj->MOD_SETTINGS['ts_analyzer_checkLinenum'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkComments'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkCrop'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkSyntax'], 0) . '</td></tr></table>
                                                        </td>
                                                </tr>
                                        ';
@@ -187,7 +196,7 @@ class TemplateAnalyzerModuleFunctionController extends \TYPO3\CMS\Backend\Module
                        $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('setup', TRUE), '', 0, 1);
                        $theOutput .= $this->pObj->doc->sectionEnd();
                        $theOutput .= '
-                               <table class="ts-typoscript" border="0" cellpadding="1" cellspacing="0">
+                               <table class="t3-table ts-typoscript">
                        ';
                        $GLOBALS['tmpl']->ext_lineNumberOffset = 0;
                        $GLOBALS['tmpl']->ext_lineNumberOffset_mode = 'setup';
@@ -197,9 +206,9 @@ class TemplateAnalyzerModuleFunctionController extends \TYPO3\CMS\Backend\Module
                                if (current($GLOBALS['tmpl']->clearList_setup) == \TYPO3\CMS\Core\Utility\GeneralUtility::_GET('template') || \TYPO3\CMS\Core\Utility\GeneralUtility::_GET('template') == 'all') {
                                        $theOutput .= '
                                                <tr>
-                                                       <td class="bgColor2"><strong>' . htmlspecialchars($GLOBALS['tmpl']->templateTitles[current($GLOBALS['tmpl']->clearList_setup)]) . '</strong></td></tr>
+                                                       <td><strong>' . htmlspecialchars($GLOBALS['tmpl']->templateTitles[current($GLOBALS['tmpl']->clearList_setup)]) . '</strong></td></tr>
                                                <tr>
-                                                       <td class="bgColor2"><table border="0" cellpadding="0" cellspacing="0" class="bgColor0" width="100%"><tr><td nowrap="nowrap">' . $GLOBALS['tmpl']->ext_outputTS(array($val), $this->pObj->MOD_SETTINGS['ts_analyzer_checkLinenum'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkComments'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkCrop'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkSyntax'], 0) . '</td></tr></table>
+                                                       <td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td nowrap="nowrap">' . $GLOBALS['tmpl']->ext_outputTS(array($val), $this->pObj->MOD_SETTINGS['ts_analyzer_checkLinenum'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkComments'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkCrop'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkSyntax'], 0) . '</td></tr></table>
                                                        </td>
                                                </tr>
                                        ';
index ac177fa..b45cc55 100644 (file)
@@ -59,7 +59,7 @@ class TypoScriptTemplateInformationModuleFunctionController extends \TYPO3\CMS\B
                        'id' => $this->pObj->id
                );
                $aHref = BackendUtility::getModuleUrl('web_ts', $urlParameters);
-               $ret .= '<a href="' . htmlspecialchars(($aHref . '&e[' . $field . ']=1')) . '">' . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-document-open', array('title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xlf:editField', TRUE))) . '<strong>' . $label . '&nbsp;&nbsp;</strong></a>';
+               $ret .= '<a href="' . htmlspecialchars(($aHref . '&e[' . $field . ']=1')) . '">' . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-document-open', array('title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xlf:editField', TRUE))) . '<strong>' . $label . '</strong></a>';
                $ret .= '</td><td width="80%" class="bgColor4">' . $data . '&nbsp;</td></tr>';
                return $ret;
        }
@@ -392,7 +392,7 @@ class TypoScriptTemplateInformationModuleFunctionController extends \TYPO3\CMS\B
                        $outCode .= $this->tableRow($GLOBALS['LANG']->getLL('description'), nl2br(htmlspecialchars($tplRow['description'])), 'description');
                        $outCode .= $this->tableRow($GLOBALS['LANG']->getLL('constants'), sprintf($GLOBALS['LANG']->getLL('editToView'), trim($tplRow[constants]) ? count(explode(LF, $tplRow[constants])) : 0), 'constants');
                        $outCode .= $this->tableRow($GLOBALS['LANG']->getLL('setup'), sprintf($GLOBALS['LANG']->getLL('editToView'), trim($tplRow[config]) ? count(explode(LF, $tplRow[config])) : 0), 'config');
-                       $outCode = '<table class="t3-table-info">' . $outCode . '</table>';
+                       $outCode = '<table class="t3-table">' . $outCode . '</table>';
                        // Edit all icon:
                        $outCode .= '<br /><a href="#" onClick="' . BackendUtility::editOnClick((rawurlencode('&createExtension=0') . '&amp;edit[sys_template][' . $tplRow['uid'] . ']=edit'), $BACK_PATH, '') . '"><strong>' . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-document-open', array('title' => $GLOBALS['LANG']->getLL('editTemplateRecord'))) . $GLOBALS['LANG']->getLL('editTemplateRecord') . '</strong></a>';
                        $theOutput .= $this->pObj->doc->section('', $outCode);
index 2ac3ddf..01288e3 100644 (file)
@@ -132,6 +132,7 @@ class TypoScriptTemplateModuleController extends \TYPO3\CMS\Backend\Module\BaseS
                        'FUNC_MENU' => '',
                        'CONTENT' => ''
                );
+
                // Access check...
                // The page will show only if there is a valid page and if this page may be viewed by the user
                $this->pageinfo = BackendUtility::readPageAccess($this->id, $this->perms_clause);
@@ -139,6 +140,7 @@ class TypoScriptTemplateModuleController extends \TYPO3\CMS\Backend\Module\BaseS
                $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:tstemplate/Resources/Private/Templates/tstemplate.html');
+
                if ($this->id && $this->access) {
                        $urlParameters = array(
                                'id' => $this->id,
@@ -146,6 +148,7 @@ class TypoScriptTemplateModuleController extends \TYPO3\CMS\Backend\Module\BaseS
                        );
                        $aHref = BackendUtility::getModuleUrl('web_ts', $urlParameters);
                        $this->doc->form = '<form action="' . htmlspecialchars($aHref) . '" method="post" enctype="' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['form_enctype'] . '" name="editForm">';
+
                        // JavaScript
                        $this->doc->JScode = '
                <script language="javascript" type="text/javascript">
@@ -172,9 +175,6 @@ class TypoScriptTemplateModuleController extends \TYPO3\CMS\Backend\Module\BaseS
                                TABLE#typo3-objectBrowser { width: 100%; margin-bottom: 24px; }
                                TABLE#typo3-objectBrowser A { text-decoration: none; }
                                TABLE#typo3-objectBrowser .comment { color: maroon; font-weight: bold; }
-                               TABLE#ts-analyzer { width: 100% }
-                               TABLE#ts-analyzer tr td {padding: 0 4px;}
-                               TABLE#ts-analyzer tr.t3-row-header td { padding: 2px 4px; font-weight:bold; color: #fff; }
                                .ts-typoscript { width: 100%; }
                                .tsob-menu label, .tsob-menu-row2 label, .tsob-conditions label { padding: 0 5px 0 0; vertical-align: text-top;}
                                .tsob-menu-row2 {margin-top: 10px;}
@@ -182,7 +182,6 @@ class TypoScriptTemplateModuleController extends \TYPO3\CMS\Backend\Module\BaseS
                                .tsob-search-submit {margin-left: 3px; margin-right: 3px;}
                                .tst-analyzer-options { margin:5px 0; }
                                .tst-analyzer-options label {padding-left:5px; vertical-align:text-top; }
-                               .bgColor0 {background-color:#fff; color: #000; }
                        ';
                        // Setting up the context sensitive menu:
                        $this->doc->getContextMenuCode();
@@ -194,12 +193,6 @@ class TypoScriptTemplateModuleController extends \TYPO3\CMS\Backend\Module\BaseS
                        $markers['FUNC_MENU'] = BackendUtility::getFuncMenu($this->id, 'SET[function]', $this->MOD_SETTINGS['function'], $this->MOD_MENU['function']);
                        $markers['CONTENT'] = $this->content;
                } else {
-                       // If no access or if ID == zero
-                       $this->doc->inDocStylesArray[] = '
-                               TABLE#ts-overview tr.t3-row-header { background-color: #A2AAB8; }
-                               TABLE#ts-overview tr td {padding: 2px;}
-                               TABLE#ts-overview tr.t3-row-header td { padding: 2px 4px; font-weight:bold; color: #fff; }
-                       ';
                        // Template pages:
                        $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('pages.uid, count(*) AS count, max(sys_template.root) AS root_max_val, min(sys_template.root) AS root_min_val', 'pages,sys_template', 'pages.uid=sys_template.pid' . BackendUtility::deleteClause('pages') . BackendUtility::versioningPlaceholderClause('pages') . BackendUtility::deleteClause('sys_template') . BackendUtility::versioningPlaceholderClause('sys_template'), 'pages.uid');
                        $templateArray = array();
@@ -208,25 +201,28 @@ class TypoScriptTemplateModuleController extends \TYPO3\CMS\Backend\Module\BaseS
                                $this->setInPageArray($pArray, BackendUtility::BEgetRootLine($row['uid'], 'AND 1=1'), $row);
                        }
                        $GLOBALS['TYPO3_DB']->sql_free_result($res);
-                       $lines = array();
-                       $lines[] = '<tr class="t3-row-header">
-                               <td nowrap>' . $GLOBALS['LANG']->getLL('pageName') . '</td>
-                               <td nowrap>' . $GLOBALS['LANG']->getLL('templates') . '</td>
-                               <td nowrap>' . $GLOBALS['LANG']->getLL('isRoot') . '</td>
-                               <td nowrap>' . $GLOBALS['LANG']->getLL('isExt') . '</td>
-                               </tr>';
-                       $lines = array_merge($lines, $this->renderList($pArray));
-                       $table = '<table border="0" cellpadding="0" cellspacing="1" id="ts-overview">' . implode('', $lines) . '</table>';
+
+                       $table = '<table class="t3-table" id="ts-overview">' .
+                                       '<thead>' .
+                                       '<tr>' .
+                                       '<th>' . $GLOBALS['LANG']->getLL('pageName') . '</th>' .
+                                       '<th>' . $GLOBALS['LANG']->getLL('templates') . '</th>' .
+                                       '<th>' . $GLOBALS['LANG']->getLL('isRoot') . '</th>' .
+                                       '<th>' . $GLOBALS['LANG']->getLL('isExt') . '</th>' .
+                                       '</tr>' .
+                                       '</thead>' .
+                                       '<tbody>' . implode('', $this->renderList($pArray)) . '</tbody>' .
+                                       '</table>';
+
                        $this->content = $this->doc->header($GLOBALS['LANG']->getLL('moduleTitle'));
-                       $this->content .= $this->doc->section('', '
-                       <br />
-                       ' . $GLOBALS['LANG']->getLL('overview') . '
-                       <br /><br />' . $table);
+                       $this->content .= $this->doc->section('', '<p class="lead">' . $GLOBALS['LANG']->getLL('overview') . '</p>' . $table);
+
                        // RENDER LIST of pages with templates, END
                        // Setting up the buttons and markers for docheader
                        $docHeaderButtons = $this->getButtons();
                        $markers['CONTENT'] = $this->content;
                }
+
                // Build the <body> for the module
                $this->content = $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers);
                // Renders the module page
@@ -519,16 +515,16 @@ page.10.value = HELLO WORLD!
                                        if (isset($pArray[$k . '_'])) {
                                                $lines[] = '<tr class="' . ($i++ % 2 == 0 ? 'bgColor4' : 'bgColor6') . '">
                                                        <td nowrap><img src="clear.gif" width="1" height="1" hspace=' . $c * 10 . ' align="top">' . '<a href="' . GeneralUtility::linkThisScript(array('id' => $k)) . '">' . IconUtility::getSpriteIconForRecord('pages', BackendUtility::getRecordWSOL('pages', $k), array('title' => ('ID: ' . $k))) . GeneralUtility::fixed_lgd_cs($pArray[$k], 30) . '</a></td>
-                                                       <td align="center">' . $pArray[($k . '_')]['count'] . '</td>
-                                                       <td align="center" class="bgColor5">' . ($pArray[$k . '_']['root_max_val'] > 0 ? IconUtility::getSpriteIcon('status-status-checked') : '&nbsp;') . '</td>
-                                                       <td align="center">' . ($pArray[$k . '_']['root_min_val'] == 0 ? IconUtility::getSpriteIcon('status-status-checked') : '&nbsp;') . '</td>
+                                                       <td>' . $pArray[($k . '_')]['count'] . '</td>
+                                                       <td>' . ($pArray[$k . '_']['root_max_val'] > 0 ? IconUtility::getSpriteIcon('status-status-checked') : '&nbsp;') . '</td>
+                                                       <td>' . ($pArray[$k . '_']['root_min_val'] == 0 ? IconUtility::getSpriteIcon('status-status-checked') : '&nbsp;') . '</td>
                                                        </tr>';
                                        } else {
                                                $lines[] = '<tr class="' . ($i++ % 2 == 0 ? 'bgColor4' : 'bgColor6') . '">
                                                        <td nowrap ><img src="clear.gif" width="1" height="1" hspace=' . $c * 10 . ' align=top>' . IconUtility::getSpriteIconForRecord('pages', BackendUtility::getRecordWSOL('pages', $k)) . GeneralUtility::fixed_lgd_cs($pArray[$k], 30) . '</td>
-                                                       <td align="center"></td>
-                                                       <td align="center" class="bgColor5"></td>
-                                                       <td align="center"></td>
+                                                       <td></td>
+                                                       <td></td>
+                                                       <td></td>
                                                        </tr>';
                                        }
                                        $lines = $this->renderList($pArray[$k . '.'], $lines, $c + 1);
index 2510f98..36859eb 100644 (file)
@@ -419,22 +419,27 @@ class TypoScriptTemplateObjectBrowserModuleFunctionController extends \TYPO3\CMS
                                $theOutput .= $flashMessage->render();
                        }
                        if (isset($this->pObj->MOD_SETTINGS['ts_browser_TLKeys_' . $bType][$theKey])) {
-                               $remove = '<td width="1%" nowrap><a href="' . htmlspecialchars(($aHref . '&addKey[' . $theKey . ']=0&SET[ts_browser_toplevel_' . $bType . ']=0')) . '"><strong>' . $GLOBALS['LANG']->getLL('removeKey') . '</strong></a></td>';
+                               $remove = '<th><a href="' . htmlspecialchars(($aHref . '&addKey[' . $theKey . ']=0&SET[ts_browser_toplevel_' . $bType . ']=0')) . '">' . $GLOBALS['LANG']->getLL('removeKey') . '</a></th>';
                        } else {
                                $remove = '';
                        }
                        $label = $theKey ? $theKey : ($bType == 'setup' ? $GLOBALS['LANG']->csConvObj->conv_case($GLOBALS['LANG']->charSet, $GLOBALS['LANG']->getLL('setupRoot'), 'toUpper') : $GLOBALS['LANG']->csConvObj->conv_case($GLOBALS['LANG']->charSet, $GLOBALS['LANG']->getLL('constantRoot'), 'toUpper'));
                        $theOutput .= $this->pObj->doc->spacer(15);
                        $theOutput .= $this->pObj->doc->sectionEnd();
-                       $theOutput .= '<table border="0" id="typo3-objectBrowser">
-                                       <tr class="t3-row-header">
-                                               <td nowrap="nowrap" width="99%"><strong>' . $label . '</strong></td>' . $remove . '
-                                       </tr>
-                                       <tr>
-                                               <td class="bgColor4" nowrap="nowrap">' . $tree . '</td>' . ($remove ? '<td></td>' : '') . '
-                                       </tr>
-                               </table>
-                       ';
+                       $theOutput .= '<table class="t3-table" id="typo3-objectBrowser">
+       <thead>
+               <tr>
+                       <th>' . $label . '</th>' .
+                       $remove .
+               '</tr>
+       </thead>
+       <tbody>
+               <tr>
+                       <td>' . $tree . '</td>' .
+                       ($remove ? '<td></td>' : '') . '
+               </tr>
+       </tbody>
+</table>';
                        // second row options
                        $menu = '<div class="tsob-menu-row2">';
                        $menu .= BackendUtility::getFuncCheck($this->pObj->id, 'SET[ts_browser_showComments]', $this->pObj->MOD_SETTINGS['ts_browser_showComments'], '', '', 'id="checkTs_browser_showComments"');
index 427b172..3d88921 100644 (file)
@@ -25,7 +25,7 @@
                                <source>Page name</source>
                        </trans-unit>
                        <trans-unit id="templates" xml:space="preserve">
-                               <source>Templates</source>
+                               <source>Templates</source>
                        </trans-unit>
                        <trans-unit id="isRoot" xml:space="preserve">
                                <source>Is Root?</source>