+ protected function showFormBeforeText() {
+ global $wgOut;
+ $wgOut->addHTML( "
+<input type='hidden' value=\"" . htmlspecialchars( $this->section ) . "\" name=\"wpSection\" />
+<input type='hidden' value=\"{$this->starttime}\" name=\"wpStarttime\" />\n
+<input type='hidden' value=\"{$this->edittime}\" name=\"wpEdittime\" />\n
+<input type='hidden' value=\"{$this->scrolltop}\" name=\"wpScrolltop\" id=\"wpScrolltop\" />\n" );
+ }
+
+ protected function showTextbox1( $classes ) {
+ $attribs = array( 'tabindex' => 1 );
+
+ if ( $this->wasDeletedSinceLastEdit() )
+ $attribs['type'] = 'hidden';
+ if ( !empty($classes) )
+ $attribs['class'] = implode(' ',$classes);
+
+ $this->showTextbox( $this->textbox1, 'wpTextbox1', $attribs );
+ }
+
+ protected function showTextbox2() {
+ $this->showTextbox( $this->textbox2, 'wpTextbox2', array( 'tabindex' => 6 ) );
+ }
+
+ protected function showTextbox( $content, $name, $attribs = array() ) {
+ global $wgOut, $wgUser;
+
+ $wikitext = $this->safeUnicodeOutput( $content );
+ if ( $wikitext !== '' ) {
+ // Ensure there's a newline at the end, otherwise adding lines
+ // is awkward.
+ // But don't add a newline if the ext is empty, or Firefox in XHTML
+ // mode will show an extra newline. A bit annoying.
+ $wikitext .= "\n";
+ }
+
+ $attribs['accesskey'] = ',';
+ $attribs['id'] = $name;
+
+ if ( $wgUser->getOption( 'editwidth' ) )
+ $attribs['style'] = 'width: 100%';
+
+ $wgOut->addHTML( Xml::textarea(
+ $name,
+ $wikitext,
+ $wgUser->getIntOption( 'cols' ), $wgUser->getIntOption( 'rows' ),
+ $attribs ) );
+ }