original_string: public function display_regrade_confirmation($elementname, $changelevel, $value) {
          $html = html_writer::start_tag('div', array('class' => 'gradingform_guide-regrade', 'role' => 'alert'));
          if ($changelevel<=2) {
              $html .= get_string('regrademessage1', 'gradingform_guide');
              $selectoptions = array(
                  0 => get_string('regradeoption0', 'gradingform_guide'),
                  1 => get_string('regradeoption1', 'gradingform_guide')
              );
              $html .= html_writer::select($selectoptions, $elementname.'[regrade]', $value, false);
          } else {
              $html .= get_string('regrademessage5', 'gradingform_guide');
              $html .= html_writer::empty_tag('input', array('name' => $elementname.'[regrade]', 'value' => 1, 'type' => 'hidden'));
          }
          $html .= html_writer::end_tag('div');
          return $html;
      }
code: public function display_regrade_confirmation($elementname, $changelevel, $value) {
          $html = html_writer::start_tag('div', array('class' => 'gradingform_guide-regrade', 'role' => 'alert'));
          if ($changelevel<=2) {
              $html .= get_string('regrademessage1', 'gradingform_guide');
              $selectoptions = array(
                  0 => get_string('regradeoption0', 'gradingform_guide'),
                  1 => get_string('regradeoption1', 'gradingform_guide')
              );
              $html .= html_writer::select($selectoptions, $elementname.'[regrade]', $value, false);
          } else {
              $html .= get_string('regrademessage5', 'gradingform_guide');
              $html .= html_writer::empty_tag('input', array('name' => $elementname.'[regrade]', 'value' => 1, 'type' => 'hidden'));
          }
          $html .= html_writer::end_tag('div');
          return $html;
      }
code_tokens: public function display_regrade_confirmation ( $ elementname , $ changelevel , $ value ) { $ html = html_writer :: start_tag ( 'div' , array ( 'class' => 'gradingform_guide-regrade' , 'role' => 'alert' ) ) ; if ( $ changelevel <= 2 ) { $ html .= get_string ( 'regrademessage1' , 'gradingform_guide' ) ; $ selectoptions = array ( 0 => get_string ( 'regradeoption0' , 'gradingform_guide' ) , 1 => get_string ( 'regradeoption1' , 'gradingform_guide' ) ) ; $ html .= html_writer :: select ( $ selectoptions , $ elementname . '[regrade]' , $ value , false ) ; } else { $ html .= get_string ( 'regrademessage5' , 'gradingform_guide' ) ; $ html .= html_writer :: empty_tag ( 'input' , array ( 'name' => $ elementname . '[regrade]' , 'value' => 1 , 'type' => 'hidden' ) ) ; } $ html .= html_writer :: end_tag ( 'div' ) ; return $ html ; }
docstring: Displays a confirmation message after a regrade has occured
  
  @param string $elementname
  @param int $changelevel
  @param int $value The regrade option that was used
  @return string
docstring_tokens: Displays a confirmation message after a regrade has occured