MDL-34575: fixed string typo and string duplication for label

This commit is contained in:
Rossiani Wijaya 2012-08-08 11:37:40 +08:00
parent 1445fd1337
commit 25f8e4f241
2 changed files with 3 additions and 3 deletions

View file

@ -107,7 +107,7 @@ foreach ($users as $k => $v) {
if(!$user = $DB->get_record('user', array('id'=>$v))) { if(!$user = $DB->get_record('user', array('id'=>$v))) {
continue; continue;
} }
$checkbox = html_writer::label(get_string('selectnotestate', 'note'), 'menustates', false, array('class' => 'accesshide')); $checkbox = html_writer::label(get_string('selectnotestate', 'notes'), 'menustates', false, array('class' => 'accesshide'));
$checkbox .= html_writer::select($state_names, 'states[' . $k . ']', empty($states[$k]) ? NOTES_STATE_PUBLIC : $states[$k], false, array('id' => 'menustates')); $checkbox .= html_writer::select($state_names, 'states[' . $k . ']', empty($states[$k]) ? NOTES_STATE_PUBLIC : $states[$k], false, array('id' => 'menustates'));
$table->data[] = array( $table->data[] = array(
'<input type="hidden" name="userid['.$k.']" value="'.$v.'" />'. fullname($user, true), '<input type="hidden" name="userid['.$k.']" value="'.$v.'" />'. fullname($user, true),

View file

@ -812,8 +812,8 @@
} }
if (has_capability('moodle/site:viewparticipants', $context) && $totalcount > ($perpage*3)) { if (has_capability('moodle/site:viewparticipants', $context) && $totalcount > ($perpage*3)) {
echo '<form action="index.php" class="searchform"><div><input type="hidden" name="id" value="'.$course->id.'" />'.get_string('search').':&nbsp;'."\n"; echo '<form action="index.php" class="searchform"><div><input type="hidden" name="id" value="'.$course->id.'" />';
echo '<label class="accesshide" for="search">' . get_string('search', 'search') . '</label>'; echo '<label for="search">' . get_string('search', 'search') . ' </label>';
echo '<input type="text" id="search" name="search" value="'.s($search).'" />&nbsp;<input type="submit" value="'.get_string('search').'" /></div></form>'."\n"; echo '<input type="text" id="search" name="search" value="'.s($search).'" />&nbsp;<input type="submit" value="'.get_string('search').'" /></div></form>'."\n";
} }