* @param string $from Article name we are starting listing at.
*/
function namespaceForm ( $namespace = NS_MAIN, $from = '' ) {
- global $wgScript, $wgContLang;
+ global $wgScript;
$t = SpecialPage::getTitleFor( $this->name );
- $align = $wgContLang->isRtl() ? 'left' : 'right';
$out = Xml::openElement( 'div', array( 'class' => 'namespaceoptions' ) );
$out .= Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) );
$out .= Xml::hidden( 'title', $t->getPrefixedText() );
+ $out .= Xml::openElement( 'fieldset' );
+ $out .= Xml::element( 'legend', null, wfMsg( 'allpages' ) );
$out .= Xml::openElement( 'table', array( 'id' => 'nsselect', 'class' => 'allpages' ) );
$out .= "<tr>
- <td align='$align'>" .
+ <td class='mw-label'>" .
Xml::label( wfMsg( $this->nsfromMsg ), 'nsfrom' ) .
"</td>
- <td>" .
+ <td class='mw-input'>" .
Xml::input( 'from', 20, $from, array( 'id' => 'nsfrom' ) ) .
"</td>
</tr>
<tr>
- <td align='$align'>" .
+ <td class='mw-label'>" .
Xml::label( wfMsg( 'namespace' ), 'namespace' ) .
"</td>
- <td>" .
- Xml::namespaceSelector( $namespace, null ) .
+ <td class='mw-input'>" .
+ Xml::namespaceSelector( $namespace, null ) . ' ' .
Xml::submitButton( wfMsg( 'allpagessubmit' ) ) .
"</td>
</tr>";
$out .= Xml::closeElement( 'table' );
+ $out .= Xml::closeElement( 'fieldset' );
$out .= Xml::closeElement( 'form' );
$out .= Xml::closeElement( 'div' );
return $out;