[FEATURE] Make use of .t3-table in EXT: lowlevel 26/24426/2
authorFelix Kopp <felix-source@phorax.com>
Sun, 6 Oct 2013 13:46:04 +0000 (15:46 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sun, 6 Oct 2013 20:02:30 +0000 (22:02 +0200)
Use table.t3-table of #52558 in EXT: lowlevel.

Change-Id: Ibf259d8fe6e61e0b62ef58eb0651445c712cddcf
Resolves: #52560
Releases: 6.2
Reviewed-on: https://review.typo3.org/24426
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/lowlevel/Classes/View/DatabaseIntegrityView.php
typo3/sysext/lowlevel/dbint/locallang.xlf

index 99507f0..1d5b28d 100644 (file)
@@ -103,16 +103,15 @@ class DatabaseIntegrityView {
                        }
                </script>
                ';
-               $this->doc->table_TABLE = '<table border="0" cellspacing="0" cellpadding="0" class="typo3-dblist" style="width:400px!important;">
-                       <colgroup><col width="24"><col width="300"><col width="76"></colgroup>';
+               $this->doc->table_TABLE = '<table class="t3-table">
+                       <colgroup><col width="24"><col><col width="150"></colgroup>';
                $this->doc->tableLayout = array(
                        '0' => array(
-                               'defCol' => array('<td class="t3-row-header"><img src="' . $this->doc->backPath . 'clear.gif" width="10" height="1" alt="" /></td><td valign="top" class="t3-row-header"><strong>', '</strong></td>')
+                               'tr' => array('<thead><tr>', '</tr></thead>'),
+                               'defCol' => array('<th>', '</th>')
                        ),
                        'defRow' => array(
-                               '0' => array('<td valign="top">', '</td>'),
-                               '1' => array('<td valign="top">', '</td>'),
-                               'defCol' => array('<td><img src="' . $this->doc->backPath . 'clear.gif" width="15" height="1" alt="" /></td><td valign="top">', '</td>')
+                               'defCol' => array('<td>', '</td>')
                        )
                );
        }
@@ -407,9 +406,10 @@ class DatabaseIntegrityView {
                $admin->backPath = $GLOBALS['BACK_PATH'];
                $admin->genTree(0, '');
                $this->content .= $this->doc->header($GLOBALS['LANG']->getLL('records'));
+
                // Pages stat
                $codeArr = array();
-               $codeArr['tableheader'] = array('', $GLOBALS['LANG']->getLL('count'));
+               $codeArr['tableheader'] = array('', '', $GLOBALS['LANG']->getLL('count'));
                $i++;
                $codeArr[$i][] = \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIconForRecord('pages', array());
                $codeArr[$i][] = $GLOBALS['LANG']->getLL('total_pages');
@@ -424,10 +424,11 @@ class DatabaseIntegrityView {
                $codeArr[$i][] = \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIconForRecord('pages', array('deleted' => 1));
                $codeArr[$i][] = $GLOBALS['LANG']->getLL('deleted_pages');
                $codeArr[$i][] = count($admin->recStats['deleted']['pages']);
-               $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('pages'), $this->doc->table($codeArr), FALSE, TRUE);
+               $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('pages'), $this->doc->table($codeArr), TRUE, TRUE);
+
                // Doktype
                $codeArr = array();
-               $codeArr['tableheader'] = array($GLOBALS['LANG']->getLL('doktype_value'), $GLOBALS['LANG']->getLL('count'));
+               $codeArr['tableheader'] = array('', $GLOBALS['LANG']->getLL('doktype_value'), $GLOBALS['LANG']->getLL('count'));
                $doktype = $GLOBALS['TCA']['pages']['columns']['doktype']['config']['items'];
                if (is_array($doktype)) {
                        foreach ($doktype as $n => $setup) {
@@ -437,8 +438,9 @@ class DatabaseIntegrityView {
                                        $codeArr[$n][] = intval($admin->recStats['doktype'][$setup[1]]);
                                }
                        }
-                       $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('doktype'), $this->doc->table($codeArr), FALSE, TRUE);
+                       $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('doktype'), $this->doc->table($codeArr), TRUE, TRUE);
                }
+
                // Tables and lost records
                $id_list = '-1,0,' . implode(',', array_keys($admin->page_idArray));
                $id_list = rtrim($id_list, ',');
@@ -451,9 +453,9 @@ class DatabaseIntegrityView {
                        $id_list = rtrim($id_list, ',');
                        $admin->lostRecords($id_list);
                }
-               $this->doc->table_TABLE = '<table border="0" cellspacing="0" cellpadding="0" class="typo3-dblist" style="width:700px!important;">';
                $codeArr = array();
                $codeArr['tableheader'] = array(
+                       '',
                        $GLOBALS['LANG']->getLL('label'),
                        $GLOBALS['LANG']->getLL('tablename'),
                        $GLOBALS['LANG']->getLL('total_lost'),
@@ -510,24 +512,27 @@ class DatabaseIntegrityView {
                $fkey_arrays = $admin->getGroupFields('');
                $admin->selectNonEmptyRecordsWithFkeys($fkey_arrays);
                $fileTest = $admin->testFileRefs();
+
                $code = '';
                if (is_array($fileTest['noReferences'])) {
                        foreach ($fileTest['noReferences'] as $val) {
                                $code .= '<nobr>' . $val[0] . '/<strong>' . $val[1] . '</strong></nobr><br>';
                        }
                } else {
-                       $code = $GLOBALS['LANG']->getLL('no_files_found');
+                       $code = '<p>' . $GLOBALS['LANG']->getLL('no_files_found') . '</p>';
                }
-               $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('files_no_ref'), $code, FALSE, TRUE);
+               $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('files_no_ref'), $code, TRUE, TRUE);
+
                $code = '';
                if (is_array($fileTest['moreReferences'])) {
                        foreach ($fileTest['moreReferences'] as $val) {
                                $code .= '<nobr>' . $val[0] . '/<strong>' . $val[1] . '</strong>: ' . $val[2] . ' ' . $GLOBALS['LANG']->getLL('references') . '</nobr><br>' . $val[3] . '<br><br>';
                        }
                } else {
-                       $code = $GLOBALS['LANG']->getLL('no_files_found');
+                       $code = '<p>' . $GLOBALS['LANG']->getLL('no_files_found') . '</p>';
                }
-               $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('files_many_ref'), $code, FALSE, TRUE);
+               $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('files_many_ref'), $code, TRUE, TRUE);
+
                $code = '';
                if (is_array($fileTest['noFile'])) {
                        ksort($fileTest['noFile']);
@@ -535,11 +540,12 @@ class DatabaseIntegrityView {
                                $code .= '<nobr>' . $val[0] . '/<strong>' . $val[1] . '</strong> ' . $GLOBALS['LANG']->getLL('isMissing') . ' </nobr><br>' . $GLOBALS['LANG']->getLL('referencedFrom') . $val[2] . '<br><br>';
                        }
                } else {
-                       $code = $GLOBALS['LANG']->getLL('no_files_found');
+                       $code = '<p>' . $GLOBALS['LANG']->getLL('no_files_found') . '</p>';
                }
-               $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('files_no_file'), $code, FALSE, TRUE);
-               $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('select_db'), $admin->testDBRefs($admin->checkSelectDBRefs), FALSE, TRUE);
-               $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('group_db'), $admin->testDBRefs($admin->checkGroupDBRefs), FALSE, TRUE);
+
+               $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('files_no_file'), $code, TRUE, TRUE);
+               $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('select_db'), $admin->testDBRefs($admin->checkSelectDBRefs), TRUE, TRUE);
+               $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('group_db'), $admin->testDBRefs($admin->checkGroupDBRefs), TRUE, TRUE);
        }
 
        /**
index e36684a..dcb931a 100644 (file)
                                <source>XML Export</source>
                        </trans-unit>
                        <trans-unit id="clickToUpdateRefIndex" xml:space="preserve">
-                               <source>Click here to update reference index:</source>
+                               <source>Click here to update reference index</source>
                        </trans-unit>
                        <trans-unit id="updateNow" xml:space="preserve">
                                <source>Update now!</source>
                        </trans-unit>
                        <trans-unit id="clickToTestRefIndex" xml:space="preserve">
-                               <source>Click here to test reference index:</source>
+                               <source>Click here to test reference index</source>
                        </trans-unit>
                        <trans-unit id="referenceIndex_description" xml:space="preserve">
                                <source>TYPO3's reference index keeps track of the relations between records. As it can happen that the reference index contains outdated values, you can check and update it here.</source>
                                <source>You can also run the check as a shell script using CLI if the processing takes longer than the PHP max_execution_time allows.</source>
                        </trans-unit>
                        <trans-unit id="checkScript_check_description" xml:space="preserve">
-                               <source>To check the reference index use:</source>
+                               <source>To check the reference index use</source>
                        </trans-unit>
                        <trans-unit id="checkScript_check_example" xml:space="preserve">
                                <source>php /path/to/your/typo3/cli_dispatch.phpsh lowlevel_refindex -c</source>
                        </trans-unit>
                        <trans-unit id="checkScript_update_description" xml:space="preserve">
-                               <source>To update the reference index use:</source>
+                               <source>To update the reference index use</source>
                        </trans-unit>
                        <trans-unit id="checkScript_update_example" xml:space="preserve">
                                <source>php /path/to/your/typo3/cli_dispatch.phpsh lowlevel_refindex -e</source>
@@ -91,7 +91,7 @@
                                <source>If you run these commands from the command line, make sure that a BE user with the name _cli_lowlevel exists.</source>
                        </trans-unit>
                        <trans-unit id="checkScript_moreDetails" xml:space="preserve">
-                               <source>For more details see:</source>
+                               <source>For more details see</source>
                        </trans-unit>
                        <trans-unit id="updateRefIndex" xml:space="preserve">
                                <source>Update reference index</source>
                                <source>Show even deleted entries (with undelete buttons)</source>
                        </trans-unit>
                        <trans-unit id="searchOptions" xml:space="preserve">
-                               <source>Search options:</source>
+                               <source>Search options</source>
                        </trans-unit>
                        <trans-unit id="result" xml:space="preserve">
-                               <source>Result:</source>
+                               <source>Result</source>
                        </trans-unit>
                        <trans-unit id="tables" xml:space="preserve">
-                               <source>Tables:</source>
+                               <source>Tables</source>
                        </trans-unit>
                        <trans-unit id="references" xml:space="preserve">
-                               <source>references:</source>
+                               <source>references</source>
                        </trans-unit>
                        <trans-unit id="isMissing" xml:space="preserve">
                                <source>is missing!</source>
                        </trans-unit>
                        <trans-unit id="referencedFrom" xml:space="preserve">
-                               <source>Referenced from:</source>
+                               <source>Referenced from</source>
                        </trans-unit>
                        <trans-unit id="enterRegexPattern" xml:space="preserve">
-                               <source>Enter regex pattern:</source>
+                               <source>Enter regex pattern</source>
                        </trans-unit>
                        <trans-unit id="searchButton" xml:space="preserve">
                                <source>Search</source>
                                <source>being checked...</source>
                        </trans-unit>
                        <trans-unit id="directories" xml:space="preserve">
-                               <source>Dirs:</source>
+                               <source>Dirs</source>
                        </trans-unit>
                        <trans-unit id="directoriesTooDeep" xml:space="preserve">
-                               <source>ERROR: Directories deeper than the following number of levels:</source>
+                               <source>ERROR: Directories deeper than the following number of levels</source>
                        </trans-unit>
                        <trans-unit id="files" xml:space="preserve">
-                               <source>Files:</source>
+                               <source>Files</source>
                        </trans-unit>
                        <trans-unit id="matchingFiles" xml:space="preserve">
-                               <source>Matching files:</source>
+                               <source>Matching files</source>
                        </trans-unit>
                        <trans-unit id="notChecked" xml:space="preserve">
                                <source>not checked.</source>
                        </trans-unit>
                        <trans-unit id="searchingForFilenames" xml:space="preserve">
-                               <source>Searching for filenames:</source>
+                               <source>Searching for filenames</source>
                        </trans-unit>
                        <trans-unit id="fixLostRecord" xml:space="preserve">
                                <source>Click to move this lost record to rootlevel (pid=0)</source>
                        </trans-unit>
                        <trans-unit id="doktype" xml:space="preserve">
-                               <source>Document types:</source>
+                               <source>Document types</source>
                        </trans-unit>
                        <trans-unit id="doktype_value" xml:space="preserve">
                                <source>Document types (value)</source>
                        </trans-unit>
                        <trans-unit id="pages" xml:space="preserve">
-                               <source>Pages:</source>
+                               <source>Pages</source>
                        </trans-unit>
                        <trans-unit id="total_pages" xml:space="preserve">
-                               <source>Total number of pages:</source>
+                               <source>Total number of pages</source>
                        </trans-unit>
                        <trans-unit id="deleted_pages" xml:space="preserve">
-                               <source>Marked-deleted pages:</source>
+                               <source>Marked-deleted pages</source>
                        </trans-unit>
                        <trans-unit id="hidden_pages" xml:space="preserve">
-                               <source>Hidden pages:</source>
+                               <source>Hidden pages</source>
                        </trans-unit>
                        <trans-unit id="count" xml:space="preserve">
                                <source>Count</source>
                                <source>This will analyse the content of the tables and check if there are 'empty' relations between records or if files are missing from their expected position.</source>
                        </trans-unit>
                        <trans-unit id="files_many_ref" xml:space="preserve">
-                               <source>Files referenced from more than one record:</source>
+                               <source>Files referenced from more than one record</source>
                        </trans-unit>
                        <trans-unit id="no_files_found" xml:space="preserve">
                                <source>No files found.</source>
                        </trans-unit>
                        <trans-unit id="files_no_ref" xml:space="preserve">
-                               <source>Files with no references at all (delete them!):</source>
+                               <source>Files with no references at all (delete them!)</source>
                        </trans-unit>
                        <trans-unit id="files_no_file" xml:space="preserve">
-                               <source>Missing files:</source>
+                               <source>Missing files</source>
                        </trans-unit>
                        <trans-unit id="select_db" xml:space="preserve">
-                               <source>Select fields:</source>
+                               <source>Select fields</source>
                        </trans-unit>
                        <trans-unit id="group_db" xml:space="preserve">
-                               <source>Group fields:</source>
+                               <source>Group fields</source>
                        </trans-unit>
                        <trans-unit id="tree" xml:space="preserve">
-                               <source>The Page Tree:</source>
+                               <source>The Page Tree</source>
                        </trans-unit>
                        <trans-unit id="tree_description" xml:space="preserve">
                                <source>This shows all pages in the system in one large tree. Beware that this will probably result in a very long document which will also take some time for the server to compute!</source>