Index: trunk/phase3/includes/SpecialAllpages.php |
— | — | @@ -60,32 +60,34 @@ |
61 | 61 | * @param string $from Article name we are starting listing at. |
62 | 62 | */ |
63 | 63 | function namespaceForm ( $namespace = NS_MAIN, $from = '' ) { |
64 | | - global $wgScript, $wgContLang; |
| 64 | + global $wgScript; |
65 | 65 | $t = SpecialPage::getTitleFor( $this->name ); |
66 | | - $align = $wgContLang->isRtl() ? 'left' : 'right'; |
67 | 66 | |
68 | 67 | $out = Xml::openElement( 'div', array( 'class' => 'namespaceoptions' ) ); |
69 | 68 | $out .= Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ); |
70 | 69 | $out .= Xml::hidden( 'title', $t->getPrefixedText() ); |
| 70 | + $out .= Xml::openElement( 'fieldset' ); |
| 71 | + $out .= Xml::element( 'legend', null, wfMsg( 'allpages' ) ); |
71 | 72 | $out .= Xml::openElement( 'table', array( 'id' => 'nsselect', 'class' => 'allpages' ) ); |
72 | 73 | $out .= "<tr> |
73 | | - <td align='$align'>" . |
| 74 | + <td class='mw-label'>" . |
74 | 75 | Xml::label( wfMsg( $this->nsfromMsg ), 'nsfrom' ) . |
75 | 76 | "</td> |
76 | | - <td>" . |
| 77 | + <td class='mw-input'>" . |
77 | 78 | Xml::input( 'from', 20, $from, array( 'id' => 'nsfrom' ) ) . |
78 | 79 | "</td> |
79 | 80 | </tr> |
80 | 81 | <tr> |
81 | | - <td align='$align'>" . |
| 82 | + <td class='mw-label'>" . |
82 | 83 | Xml::label( wfMsg( 'namespace' ), 'namespace' ) . |
83 | 84 | "</td> |
84 | | - <td>" . |
85 | | - Xml::namespaceSelector( $namespace, null ) . |
| 85 | + <td class='mw-input'>" . |
| 86 | + Xml::namespaceSelector( $namespace, null ) . ' ' . |
86 | 87 | Xml::submitButton( wfMsg( 'allpagessubmit' ) ) . |
87 | 88 | "</td> |
88 | 89 | </tr>"; |
89 | 90 | $out .= Xml::closeElement( 'table' ); |
| 91 | + $out .= Xml::closeElement( 'fieldset' ); |
90 | 92 | $out .= Xml::closeElement( 'form' ); |
91 | 93 | $out .= Xml::closeElement( 'div' ); |
92 | 94 | return $out; |