- $this->addRow( wfMsg( 'resultsperpage' ), "<input type='text' name='wpSearch' value=\"$this->mSearch\" size='4' />" ) .
- $this->addRow( wfMsg( 'contextlines' ), "<input type='text' name='wpSearchLines' value=\"$this->mSearchLines\" size='4' />" ) .
- $this->addRow( wfMsg( 'contextchars' ), "<input type='text' name='wpSearchChars' value=\"$this->mSearchChars\" size='4' />" ) .
+ $this->addRow(
+ '<label for="wpSearch">' . wfMsg( 'resultsperpage' ) . '</label>',
+ "<input type='text' name='wpSearch' id='wpSearch' value=\"$this->mSearch\" size='4' />"
+ ) .
+ $this->addRow(
+ '<label for="wpSearchLines">' . wfMsg( 'contextlines' ) . '</label>',
+ "<input type='text' name='wpSearchLines' id='wpSearchLines' value=\"$this->mSearchLines\" size='4' />"
+ ) .
+ $this->addRow(
+ '<label for="wpSearchChars">' . wfMsg( 'contextchars' ) . '</label>',
+ "<input type='text' name='wpSearchChars' id='wpSearchChars' value=\"$this->mSearchChars\" size='4' />"
+ ) .