From: Raimond Spekking Date: Mon, 17 Mar 2008 23:25:00 +0000 (+0000) Subject: * Add a nice fieldset around the input form X-Git-Tag: 1.31.0-rc.0~49038 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=62d77f26407c9bc94e953316ff09f2d18c4516d8;p=lhc%2Fweb%2Fwiklou.git * Add a nice fieldset around the input form * Found CSS classes for aligning in shared.css -> use them! --- 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;