Fixed bug #14760: Use labels for search in list view (Thanks to Georg Ringer)
authorJeff Segars <jsegars@alumni.rice.edu>
Mon, 21 Jun 2010 16:50:01 +0000 (16:50 +0000)
committerJeff Segars <jsegars@alumni.rice.edu>
Mon, 21 Jun 2010 16:50:01 +0000 (16:50 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@8008 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.db_list.inc

index feefe22..9ae601c 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
 
        * Fixed bug #14804: Updated extension icons for system extensions (Thanks to Jigal van Hemert)
        * Followup to #10424: Old version (3.x) screenshots in CSH - removed label reference to version 3.6 (Thanks to Philipp Gampe)
+       * Fixed bug #14760: Use labels for search in list view (Thanks to Georg Ringer)
 
 2010-06-21  Stanislas Rolland  <typo3@sjbr.ca>
 
index 83bc3e8..4b7d55f 100644 (file)
@@ -335,12 +335,12 @@ class recordList extends t3lib_recordList {
                                -->
                                <table border="0" cellpadding="0" cellspacing="0" class="bgColor4" id="typo3-dblist-search">
                                        <tr>
-                                               <td>'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.enterSearchString',1).'<input type="text" name="search_field" value="'.htmlspecialchars($this->searchString).'"'.$GLOBALS['TBE_TEMPLATE']->formWidth(10).' /></td>
-                                               <td>'.$lMenu.'</td>
-                                               <td><input type="submit" name="search" value="'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.search',1).'" /></td>
+                                               <td><label for="search_field">' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.enterSearchString', 1) . '</label><input type="text" name="search_field" id="search_field" value="' . htmlspecialchars($this->searchString) . '"' . $GLOBALS['TBE_TEMPLATE']->formWidth(10) . ' /></td>
+                                               <td>' . $lMenu . '</td>
+                                               <td><input type="submit" name="search" value="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.search', 1) . '" /></td>
                                        </tr>
                                        <tr>
-                                               <td colspan="3">'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.showRecords',1).':<input type="text" name="showLimit" value="'.htmlspecialchars($this->showLimit?$this->showLimit:'').'"'.$GLOBALS['TBE_TEMPLATE']->formWidth(4).' /></td>
+                                               <td colspan="3"><label for="showLimit">' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.showRecords', 1) . '</label>:<input type="text" name="showLimit" id="showLimit" value="' . htmlspecialchars($this->showLimit ? $this->showLimit : '') . '"' . $GLOBALS['TBE_TEMPLATE']->formWidth(4) . ' /></td>
                                        </tr>
                                </table>
                        '.$formElements[1];