Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -2979,6 +2979,7 @@ |
2980 | 2980 | 'table_pager_first', |
2981 | 2981 | 'table_pager_last', |
2982 | 2982 | 'table_pager_limit', |
| 2983 | + 'table_pager_limit_label', |
2983 | 2984 | 'table_pager_limit_submit', |
2984 | 2985 | 'table_pager_empty', |
2985 | 2986 | ), |
Index: trunk/phase3/includes/specials/SpecialListfiles.php |
— | — | @@ -173,21 +173,28 @@ |
174 | 174 | function getForm() { |
175 | 175 | global $wgRequest, $wgScript, $wgMiserMode; |
176 | 176 | $search = $wgRequest->getText( 'ilsearch' ); |
177 | | - |
178 | | - $s = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript, 'id' => 'mw-listfiles-form' ) ) . |
179 | | - Xml::openElement( 'fieldset' ) . |
180 | | - Xml::element( 'legend', null, wfMsg( 'listfiles' ) ) . |
181 | | - Xml::tags( 'label', null, wfMsgHtml( 'table_pager_limit', $this->getLimitSelect() ) ); |
182 | | - |
| 177 | + $inputForm = array(); |
| 178 | + $inputForm['table_pager_limit_label'] = $this->getLimitSelect(); |
183 | 179 | if ( !$wgMiserMode ) { |
184 | | - $s .= "<br />\n" . |
185 | | - Xml::inputLabel( wfMsg( 'listfiles_search_for' ), 'ilsearch', 'mw-ilsearch', 20, $search ); |
| 180 | + $inputForm['listfiles_search_for'] = Html::input( 'ilsearch', $search, 'text', array( |
| 181 | + 'size' => '40', |
| 182 | + 'maxlength' => '255', |
| 183 | + 'id' => 'mw-ilsearch', |
| 184 | + ) ); |
186 | 185 | } |
187 | | - $s .= ' ' . |
188 | | - Xml::submitButton( wfMsg( 'table_pager_limit_submit' ) ) ."\n" . |
189 | | - $this->getHiddenFields( array( 'limit', 'ilsearch' ) ) . |
190 | | - Xml::closeElement( 'fieldset' ) . |
191 | | - Xml::closeElement( 'form' ) . "\n"; |
| 186 | + $inputForm['username'] = Html::input( 'username', $this->mUserName, 'text', array( |
| 187 | + 'size' => '40', |
| 188 | + 'maxlength' => '255', |
| 189 | + 'id' => 'mw-listfiles-username', |
| 190 | + ) ); |
| 191 | + $s = Html::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript, 'id' => 'mw-listfiles-form' ) ) . |
| 192 | + Xml::fieldset( wfMsg( 'listfiles' ) ) . |
| 193 | + Html::openElement( 'table', array( 'mw-listfiles-table' ) ) . |
| 194 | + Xml::buildForm( $inputForm, 'table_pager_limit_submit' ) . |
| 195 | + $this->getHiddenFields( array( 'limit', 'ilsearch', 'username' ) ) . |
| 196 | + Html::closeElement( 'table' ) . |
| 197 | + Html::closeElement( 'fieldset' ) . |
| 198 | + Html::closeElement( 'form' ) . "\n"; |
192 | 199 | return $s; |
193 | 200 | } |
194 | 201 | |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -4050,6 +4050,7 @@ |
4051 | 4051 | 'table_pager_first' => 'First page', |
4052 | 4052 | 'table_pager_last' => 'Last page', |
4053 | 4053 | 'table_pager_limit' => 'Show $1 items per page', |
| 4054 | +'table_pager_limit_label' => 'Items per page:', |
4054 | 4055 | 'table_pager_limit_submit' => 'Go', |
4055 | 4056 | 'table_pager_empty' => 'No results', |
4056 | 4057 | |