From bd46c557ca0f82f52378596600da718c47e89ef9 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 24 Oct 2004 20:01:23 +0000 Subject: [PATCH] XHTML fixes --- includes/HTMLForm.php | 2 +- includes/SpecialUserlevels.php | 54 +++++++++++++++++----------------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index bae40cba9b..a13831f7a2 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -68,7 +68,7 @@ class HTMLForm { function textareabox ( $varname, $value='', $size=20 ) { $value = isset( $_POST[$varname] ) ? $_POST[$varname] : $value; return '
\n"; } /* diff --git a/includes/SpecialUserlevels.php b/includes/SpecialUserlevels.php index ef710336e0..f68b2813af 100644 --- a/includes/SpecialUserlevels.php +++ b/includes/SpecialUserlevels.php @@ -150,21 +150,21 @@ class UserlevelsForm extends HTMLForm { global $wgOut; // group selection - $wgOut->addHTML( "
action\" method=\"post\">" ); + $wgOut->addHTML( "action\" method=\"post\">\n" ); $wgOut->addHTML( $this->fieldset( 'lookup-group', $this->HTMLSelectGroups('group-edit', array(0 => $this->mRequest->getVal($this->mName.'-group-edit')) ) . - ' ' . - '
' + ' ' . + '
' )); - $wgOut->addHTML( "
" ); + $wgOut->addHTML( "\n" ); // user selection - $wgOut->addHTML( "
action\" method=\"post\">" ); + $wgOut->addHTML( "action\" method=\"post\">\n" ); $wgOut->addHTML( $this->fieldset( 'lookup-user', $this->textbox( 'user-editname' ) . - '' + '' )); - $wgOut->addHTML( '
' ); + $wgOut->addHTML( "\n" ); } /** @@ -188,15 +188,15 @@ class UserlevelsForm extends HTMLForm { $gDescription = $g->getDescription(); - $wgOut->addHTML( "
action\" method=\"post\">". - ''); + $wgOut->addHTML( "action\" method=\"post\">\n". + ''); $wgOut->addHTML( $this->fieldset( $fieldname, $this->textbox( 'editgroup-name', $gName ) . $this->textareabox( 'editgroup-description', $gDescription ) . '
'. $this->HTMLSelectRights($g->getRights()). - '
'. - '' + ''."\n". + '' )); $wgOut->addHTML( "
\n" ); @@ -223,17 +223,17 @@ class UserlevelsForm extends HTMLForm { $groups = $user->getGroups(); - $wgOut->addHTML( "
action\" method=\"post\">". - ''); + $wgOut->addHTML( "action\" method=\"post\">\n". + ''); $wgOut->addHTML( $this->fieldset( 'editusergroup', - wfMsg('editing', $this->mRequest->getVal('user-editname')).'.
' . + wfMsg('editing', $this->mRequest->getVal('user-editname')).".
\n" . '
'. $this->HTMLSelectGroups('groupsmember', $groups,true,6). ''. $this->HTMLSelectGroups('groupsavailable', $groups,true,6,true). - '
'. - '

'.wfMsg('userlevels-groupshelp').'

'. - '' + ''."\n". + '

'.wfMsg('userlevels-groupshelp').'

'."\n". + '' )); $wgOut->addHTML( "
\n" ); } @@ -254,39 +254,39 @@ class UserlevelsForm extends HTMLForm { $out = wfMsg($selectname); $out .= ''; + $out .= "\n"; return $out; } function HTMLSelectRights($selected='') { global $wgAvailableRights; - $out = ''; $groupRights = explode(',',$selected); foreach($wgAvailableRights as $right) { // check box when right exist - if(in_array($right, $groupRights)) { $selected = 'selected'; } + if(in_array($right, $groupRights)) { $selected = 'selected="selected" '; } else { $selected = ''; } - $out .= ''; + $out .= '\n"; } - $out .= ''; + $out .= "\n"; return $out; } } -- 2.20.1