From 62d77f26407c9bc94e953316ff09f2d18c4516d8 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Mon, 17 Mar 2008 23:25:00 +0000 Subject: [PATCH] * Add a nice fieldset around the input form * Found CSS classes for aligning in shared.css -> use them! --- includes/SpecialAllpages.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/includes/SpecialAllpages.php b/includes/SpecialAllpages.php index 8375d071e9..35326b2d70 100644 --- a/includes/SpecialAllpages.php +++ b/includes/SpecialAllpages.php @@ -60,32 +60,34 @@ class SpecialAllpages { * @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 .= " - " . + " . Xml::label( wfMsg( $this->nsfromMsg ), 'nsfrom' ) . " - " . + " . Xml::input( 'from', 20, $from, array( 'id' => 'nsfrom' ) ) . " - " . + " . Xml::label( wfMsg( 'namespace' ), 'namespace' ) . " - " . - Xml::namespaceSelector( $namespace, null ) . + " . + Xml::namespaceSelector( $namespace, null ) . ' ' . Xml::submitButton( wfMsg( 'allpagessubmit' ) ) . " "; $out .= Xml::closeElement( 'table' ); + $out .= Xml::closeElement( 'fieldset' ); $out .= Xml::closeElement( 'form' ); $out .= Xml::closeElement( 'div' ); return $out; -- 2.20.1